Re: Unable to build Fineract 1.x as documented in README

2019-03-13 Thread ivange larry
Thanks Mua, you were right. I can access the endpoints now. Though I can't
access my own endpoint. I've created a new thread for that.

On Tue, Mar 12, 2019 at 11:22 PM Mua Rachmann  wrote:

> Hi Larry,
>
> Glad to know you could fix your problem. I would just reply what Vishwas
> said
>
>  After the installation, Fineract would be available on port
> 8443 (with only https supported) and NOT 8080. So a valid URL would be
> similar to
>
> https://localhost:8443/fineract-provider/api/v1/clients?tenantIdentifier=default
>
> Use this on a browser or rest Client and i think it should solve your
> issue.
>
> Cheers, Mua
>
> On Tue, Mar 12, 2019 at 10:51 PM ivange larry 
> wrote:
>
> > Thanks all. I was finally able to successfully build fineract 1.x. I had
> > added some files that didn't have the license header. So I added the
> > license header and everything worked fine.
> >
> > But I'm having another issue. I have started the application using
> > *./gradlew
> > tomcatRunWar *and it seems the application started successfully at
> > *http://localhost:8080/fineract-provider
> > * but all endpoints return 404
> > including *http://localhost:8080/fineract-provider
> > .*
> >
> > I have added a new resource *HealthCheckResource* which just has one GET
> > method listening to */healthCheck* and returns status 200. Just like
> every
> > other resource, this too is returning 404.
> >
> > Is there some configurations I need to do before running the app?
> >
> > Thanks,
> > Larry
> >
> >
> > On Mon, Mar 11, 2019 at 9:22 AM Mua Rachmann 
> > wrote:
> >
> > > Hi Larry,
> > >
> > > sorry to hear you are still having issues with the build.
> > > In my case, it was becasue i imported the project with IntelliJ and it
> > > modified the gradle wrapper
> > >
> > > - I recloned the repo to be sure i had the latest codes and this time
> > > didn't import the project just yet
> > > - I ran build rat which did successfully run
> > > - I ran build clean war which generated my war file
> > >
> > > After all these all is good. So i suggest you start from a clean fork
> and
> > > also your internet connection
> > > should be good. Sometimes it took a while for the build to download
> some
> > > stuffs and i thought it
> > > wasn't working.
> > >
> > > Cheers Mua.
> > >
> >
> >
> > --
> > GSoC 2016 @OpenMRS
> > GSoC 2017 @LibreHealth
> > GCI 2016 Mentor @OpenMRS
> > GCI Org Admin @OpenMRS
> >
>


-- 
GSoC 2016 @OpenMRS
GSoC 2017 @LibreHealth
GCI 2016 Mentor @OpenMRS
GCI Org Admin @OpenMRS


Re: Unable to build Fineract 1.x as documented in README

2019-03-12 Thread Mua Rachmann
Hi Larry,

Glad to know you could fix your problem. I would just reply what Vishwas
said

 After the installation, Fineract would be available on port
8443 (with only https supported) and NOT 8080. So a valid URL would be
similar to
https://localhost:8443/fineract-provider/api/v1/clients?tenantIdentifier=default

Use this on a browser or rest Client and i think it should solve your issue.

Cheers, Mua

On Tue, Mar 12, 2019 at 10:51 PM ivange larry  wrote:

> Thanks all. I was finally able to successfully build fineract 1.x. I had
> added some files that didn't have the license header. So I added the
> license header and everything worked fine.
>
> But I'm having another issue. I have started the application using
> *./gradlew
> tomcatRunWar *and it seems the application started successfully at
> *http://localhost:8080/fineract-provider
> * but all endpoints return 404
> including *http://localhost:8080/fineract-provider
> .*
>
> I have added a new resource *HealthCheckResource* which just has one GET
> method listening to */healthCheck* and returns status 200. Just like every
> other resource, this too is returning 404.
>
> Is there some configurations I need to do before running the app?
>
> Thanks,
> Larry
>
>
> On Mon, Mar 11, 2019 at 9:22 AM Mua Rachmann 
> wrote:
>
> > Hi Larry,
> >
> > sorry to hear you are still having issues with the build.
> > In my case, it was becasue i imported the project with IntelliJ and it
> > modified the gradle wrapper
> >
> > - I recloned the repo to be sure i had the latest codes and this time
> > didn't import the project just yet
> > - I ran build rat which did successfully run
> > - I ran build clean war which generated my war file
> >
> > After all these all is good. So i suggest you start from a clean fork and
> > also your internet connection
> > should be good. Sometimes it took a while for the build to download some
> > stuffs and i thought it
> > wasn't working.
> >
> > Cheers Mua.
> >
>
>
> --
> GSoC 2016 @OpenMRS
> GSoC 2017 @LibreHealth
> GCI 2016 Mentor @OpenMRS
> GCI Org Admin @OpenMRS
>


Re: Unable to build Fineract 1.x as documented in README

2019-03-12 Thread ivange larry
Thanks all. I was finally able to successfully build fineract 1.x. I had
added some files that didn't have the license header. So I added the
license header and everything worked fine.

But I'm having another issue. I have started the application using *./gradlew
tomcatRunWar *and it seems the application started successfully at
*http://localhost:8080/fineract-provider
* but all endpoints return 404
including *http://localhost:8080/fineract-provider
.*

I have added a new resource *HealthCheckResource* which just has one GET
method listening to */healthCheck* and returns status 200. Just like every
other resource, this too is returning 404.

Is there some configurations I need to do before running the app?

Thanks,
Larry


On Mon, Mar 11, 2019 at 9:22 AM Mua Rachmann  wrote:

> Hi Larry,
>
> sorry to hear you are still having issues with the build.
> In my case, it was becasue i imported the project with IntelliJ and it
> modified the gradle wrapper
>
> - I recloned the repo to be sure i had the latest codes and this time
> didn't import the project just yet
> - I ran build rat which did successfully run
> - I ran build clean war which generated my war file
>
> After all these all is good. So i suggest you start from a clean fork and
> also your internet connection
> should be good. Sometimes it took a while for the build to download some
> stuffs and i thought it
> wasn't working.
>
> Cheers Mua.
>


-- 
GSoC 2016 @OpenMRS
GSoC 2017 @LibreHealth
GCI 2016 Mentor @OpenMRS
GCI Org Admin @OpenMRS


Re: Unable to build Fineract 1.x as documented in README

2019-03-11 Thread Mua Rachmann
Hi Larry,

sorry to hear you are still having issues with the build.
In my case, it was becasue i imported the project with IntelliJ and it
modified the gradle wrapper

- I recloned the repo to be sure i had the latest codes and this time
didn't import the project just yet
- I ran build rat which did successfully run
- I ran build clean war which generated my war file

After all these all is good. So i suggest you start from a clean fork and
also your internet connection
should be good. Sometimes it took a while for the build to download some
stuffs and i thought it
wasn't working.

Cheers Mua.


Re: Unable to build Fineract 1.x as documented in README

2019-03-11 Thread Vishwas Babu
Hi Larry,

After the failure, the file at
file:/builds/ivange94/micro-finance-backend/build/reports/rat/rat-report.txt
logs details of the actual file(s) causing the issue (AFAIK rat-report.txt
file shouldn't be the issue). If these are generated files, you could make
a change to ensure that they are ignore from the build (similar to what
Yannick has done at https://github.com/apache/fineract/pull/545 ) and send
a pr for the same. This could be your started task on Fineract :)

Regards,
Vishwas



On Mon, Mar 11, 2019 at 12:31 AM ivange larry  wrote:

> Thanks all for the help so far but still not working.
>
> Deleting the file should fix that error.
>
>
> This is a generated file so deleting is of no effect as it'll be generated
> again in the next build.
>
> This happens when the the build tasks has been run before and later when
> > you run  the rat tasks. It begins failing.
>
>
> This happens wether or not I run the *rat* task first. When I just do
> *gradle
> build* it also runs the *rat *which fails with that error. When I do
> *gradle
> rat* before *gradle build* the same thing happens. I'm using containers and
> a new container is created on every build. So previous executions of gradle
> could hardly be the problem here.
>
> Larry, pull in this PR locally and see if that works:
> > https://github.com/apache/fineract/pull/545
>
>
> I applied this and it still didn't work. I even added this
>
> "**/reports/rat/rat-report.txt"
>
>
> to the ignored files but still same error.
>
> Is it safe to remove the *rat* task completely from the build?
>
> Thanks,
> Larry
>
> On Sun, Mar 10, 2019 at 11:54 PM Awasum Yannick  wrote:
>
> > I think the ./gradlew rat tasks is scanning the git ignore out folder
> which
> > contains some swagger files.
> >
> > This happens when the the build tasks has been run before and later when
> > you run  the rat tasks. It begins failing. Let me ignore the out folder
> in
> > rat config and send a quick PR, you pull and lets see if the thing works.
> >
> > Larry, pull in this PR locally and see if that works:
> > https://github.com/apache/fineract/pull/545
> >
> > Courage is right.
> >
> > On Sun, Mar 10, 2019 at 11:22 PM ivange larry 
> > wrote:
> >
> > > Hi Awasum and Mua,
> > >
> > > I could not downgrade my gradle in my local machine but I was able to
> get
> > > gradle 2.10 on our CI environment. I no longer get that error but the
> > build
> > > still fails with
> > >
> > > Download
> > > >
> > >
> >
> https://jcenter.bintray.com/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar
> > > > Download
> > > >
> > >
> >
> https://jcenter.bintray.com/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
> > > > Download
> > > >
> > https://jcenter.bintray.com/commons-io/commons-io/2.2/commons-io-2.2.jar
> > > > Download
> > > >
> > >
> >
> https://jcenter.bintray.com/org/apache/commons/commons-compress/1.10/commons-compress-1.10.jar
> > > > Download
> > > >
> > >
> >
> https://jcenter.bintray.com/commons-cli/commons-cli/1.2/commons-cli-1.2.jar
> > > > :rat FAILED
> > > > FAILURE: Build failed with an exception.
> > > > * What went wrong:
> > > > Execution failed for task ':rat'.
> > > > > Found 1 files with unapproved/unknown licenses. See
> > > >
> > >
> >
> file:/builds/ivange94/micro-finance-backend/build/reports/rat/rat-report.txt
> > > > * Try:
> > > > Run with --stacktrace option to get the stack trace. Run with --info
> or
> > > > --debug option to get more log output.
> > > > BUILD FAILED
> > > > Total time: 52.562 secs
> > > > ERROR: Job failed: exit code 1
> > >
> > >
> > > This time it's complaining about unapproved licenses. How do I get that
> > > fixed?
> > >
> > > Thanks,
> > > Larry
> > >
> > > On Sun, Mar 10, 2019 at 10:35 AM Awasum Yannick 
> > wrote:
> > >
> > > > Larry, that makes sense.
> > > >
> > > > Here is a link to an previous mail where Vishwas was helping me solve
> > > > the problem:
> > > >
> > > >
> > >
> >
> https://lists.apache.org/thread.html/1f01897413545729420c66355d3211d625ebbd245a98407220783bfc@%3Cdev.fineract.apache.org%3E
> > > >
> > > > And here is something related to IntelliJ problem you face:
> > > >
> > > >
> > >
> >
> https://lists.apache.org/thread.html/f4cb9364504a13f71ea7654082274c7ff80c48b19ff76e8cadf3cc7f@%3Cdev.fineract.apache.org%3E
> > > >
> > > >
> > > > On Sun, Mar 10, 2019 at 10:23 AM ivange larry  >
> > > > wrote:
> > > >
> > > > > Unfortunately, I cannot downgrade gradle as I have a lot of other
> > > > projects
> > > > > depending on it.
> > > > >
> > > > > I have removed the InteliJ changes from the wrapper and tried
> > building
> > > > > again but now I'm getting the second error I mentioned in my
> initial
> > > > email.
> > > > >
> > > > > Below is my terminal output to the command ./gradlew rat
> > > > >
> > > > > Listening for transport dt_socket at address: 8005
> > > > > > Downloading
> > > > > https://services.gradle.org/distributions/gradle-2.10-bin.zip
> > > > > >
> > > > > >
> > > > >
> 

Re: Unable to build Fineract 1.x as documented in README

2019-03-11 Thread ivange larry
Thanks all for the help so far but still not working.

Deleting the file should fix that error.


This is a generated file so deleting is of no effect as it'll be generated
again in the next build.

This happens when the the build tasks has been run before and later when
> you run  the rat tasks. It begins failing.


This happens wether or not I run the *rat* task first. When I just do *gradle
build* it also runs the *rat *which fails with that error. When I do *gradle
rat* before *gradle build* the same thing happens. I'm using containers and
a new container is created on every build. So previous executions of gradle
could hardly be the problem here.

Larry, pull in this PR locally and see if that works:
> https://github.com/apache/fineract/pull/545


I applied this and it still didn't work. I even added this

"**/reports/rat/rat-report.txt"


to the ignored files but still same error.

Is it safe to remove the *rat* task completely from the build?

Thanks,
Larry

On Sun, Mar 10, 2019 at 11:54 PM Awasum Yannick  wrote:

> I think the ./gradlew rat tasks is scanning the git ignore out folder which
> contains some swagger files.
>
> This happens when the the build tasks has been run before and later when
> you run  the rat tasks. It begins failing. Let me ignore the out folder in
> rat config and send a quick PR, you pull and lets see if the thing works.
>
> Larry, pull in this PR locally and see if that works:
> https://github.com/apache/fineract/pull/545
>
> Courage is right.
>
> On Sun, Mar 10, 2019 at 11:22 PM ivange larry 
> wrote:
>
> > Hi Awasum and Mua,
> >
> > I could not downgrade my gradle in my local machine but I was able to get
> > gradle 2.10 on our CI environment. I no longer get that error but the
> build
> > still fails with
> >
> > Download
> > >
> >
> https://jcenter.bintray.com/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar
> > > Download
> > >
> >
> https://jcenter.bintray.com/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
> > > Download
> > >
> https://jcenter.bintray.com/commons-io/commons-io/2.2/commons-io-2.2.jar
> > > Download
> > >
> >
> https://jcenter.bintray.com/org/apache/commons/commons-compress/1.10/commons-compress-1.10.jar
> > > Download
> > >
> >
> https://jcenter.bintray.com/commons-cli/commons-cli/1.2/commons-cli-1.2.jar
> > > :rat FAILED
> > > FAILURE: Build failed with an exception.
> > > * What went wrong:
> > > Execution failed for task ':rat'.
> > > > Found 1 files with unapproved/unknown licenses. See
> > >
> >
> file:/builds/ivange94/micro-finance-backend/build/reports/rat/rat-report.txt
> > > * Try:
> > > Run with --stacktrace option to get the stack trace. Run with --info or
> > > --debug option to get more log output.
> > > BUILD FAILED
> > > Total time: 52.562 secs
> > > ERROR: Job failed: exit code 1
> >
> >
> > This time it's complaining about unapproved licenses. How do I get that
> > fixed?
> >
> > Thanks,
> > Larry
> >
> > On Sun, Mar 10, 2019 at 10:35 AM Awasum Yannick 
> wrote:
> >
> > > Larry, that makes sense.
> > >
> > > Here is a link to an previous mail where Vishwas was helping me solve
> > > the problem:
> > >
> > >
> >
> https://lists.apache.org/thread.html/1f01897413545729420c66355d3211d625ebbd245a98407220783bfc@%3Cdev.fineract.apache.org%3E
> > >
> > > And here is something related to IntelliJ problem you face:
> > >
> > >
> >
> https://lists.apache.org/thread.html/f4cb9364504a13f71ea7654082274c7ff80c48b19ff76e8cadf3cc7f@%3Cdev.fineract.apache.org%3E
> > >
> > >
> > > On Sun, Mar 10, 2019 at 10:23 AM ivange larry 
> > > wrote:
> > >
> > > > Unfortunately, I cannot downgrade gradle as I have a lot of other
> > > projects
> > > > depending on it.
> > > >
> > > > I have removed the InteliJ changes from the wrapper and tried
> building
> > > > again but now I'm getting the second error I mentioned in my initial
> > > email.
> > > >
> > > > Below is my terminal output to the command ./gradlew rat
> > > >
> > > > Listening for transport dt_socket at address: 8005
> > > > > Downloading
> > > > https://services.gradle.org/distributions/gradle-2.10-bin.zip
> > > > >
> > > > >
> > > >
> > >
> >
> 

Re: Unable to build Fineract 1.x as documented in README

2019-03-10 Thread Awasum Yannick
I think the ./gradlew rat tasks is scanning the git ignore out folder which
contains some swagger files.

This happens when the the build tasks has been run before and later when
you run  the rat tasks. It begins failing. Let me ignore the out folder in
rat config and send a quick PR, you pull and lets see if the thing works.

Larry, pull in this PR locally and see if that works:
https://github.com/apache/fineract/pull/545

Courage is right.

On Sun, Mar 10, 2019 at 11:22 PM ivange larry  wrote:

> Hi Awasum and Mua,
>
> I could not downgrade my gradle in my local machine but I was able to get
> gradle 2.10 on our CI environment. I no longer get that error but the build
> still fails with
>
> Download
> >
> https://jcenter.bintray.com/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar
> > Download
> >
> https://jcenter.bintray.com/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
> > Download
> > https://jcenter.bintray.com/commons-io/commons-io/2.2/commons-io-2.2.jar
> > Download
> >
> https://jcenter.bintray.com/org/apache/commons/commons-compress/1.10/commons-compress-1.10.jar
> > Download
> >
> https://jcenter.bintray.com/commons-cli/commons-cli/1.2/commons-cli-1.2.jar
> > :rat FAILED
> > FAILURE: Build failed with an exception.
> > * What went wrong:
> > Execution failed for task ':rat'.
> > > Found 1 files with unapproved/unknown licenses. See
> >
> file:/builds/ivange94/micro-finance-backend/build/reports/rat/rat-report.txt
> > * Try:
> > Run with --stacktrace option to get the stack trace. Run with --info or
> > --debug option to get more log output.
> > BUILD FAILED
> > Total time: 52.562 secs
> > ERROR: Job failed: exit code 1
>
>
> This time it's complaining about unapproved licenses. How do I get that
> fixed?
>
> Thanks,
> Larry
>
> On Sun, Mar 10, 2019 at 10:35 AM Awasum Yannick  wrote:
>
> > Larry, that makes sense.
> >
> > Here is a link to an previous mail where Vishwas was helping me solve
> > the problem:
> >
> >
> https://lists.apache.org/thread.html/1f01897413545729420c66355d3211d625ebbd245a98407220783bfc@%3Cdev.fineract.apache.org%3E
> >
> > And here is something related to IntelliJ problem you face:
> >
> >
> https://lists.apache.org/thread.html/f4cb9364504a13f71ea7654082274c7ff80c48b19ff76e8cadf3cc7f@%3Cdev.fineract.apache.org%3E
> >
> >
> > On Sun, Mar 10, 2019 at 10:23 AM ivange larry 
> > wrote:
> >
> > > Unfortunately, I cannot downgrade gradle as I have a lot of other
> > projects
> > > depending on it.
> > >
> > > I have removed the InteliJ changes from the wrapper and tried building
> > > again but now I'm getting the second error I mentioned in my initial
> > email.
> > >
> > > Below is my terminal output to the command ./gradlew rat
> > >
> > > Listening for transport dt_socket at address: 8005
> > > > Downloading
> > > https://services.gradle.org/distributions/gradle-2.10-bin.zip
> > > >
> > > >
> > >
> >
> 

Re: Unable to build Fineract 1.x as documented in README

2019-03-10 Thread Courage Angeh
Hi Larry,

I think the rat gradle task you ran produced that report. And since that
report doesn't contain the Apache license it threw that error.

Deleting the file should fix that error.

On Sun, Mar 10, 2019, 6:22 PM ivange larry  wrote:

> Hi Awasum and Mua,
>
> I could not downgrade my gradle in my local machine but I was able to get
> gradle 2.10 on our CI environment. I no longer get that error but the build
> still fails with
>
> Download
> >
> https://jcenter.bintray.com/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar
> > Download
> >
> https://jcenter.bintray.com/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
> > Download
> > https://jcenter.bintray.com/commons-io/commons-io/2.2/commons-io-2.2.jar
> > Download
> >
> https://jcenter.bintray.com/org/apache/commons/commons-compress/1.10/commons-compress-1.10.jar
> > Download
> >
> https://jcenter.bintray.com/commons-cli/commons-cli/1.2/commons-cli-1.2.jar
> > :rat FAILED
> > FAILURE: Build failed with an exception.
> > * What went wrong:
> > Execution failed for task ':rat'.
> > > Found 1 files with unapproved/unknown licenses. See
> >
> file:/builds/ivange94/micro-finance-backend/build/reports/rat/rat-report.txt
> > * Try:
> > Run with --stacktrace option to get the stack trace. Run with --info or
> > --debug option to get more log output.
> > BUILD FAILED
> > Total time: 52.562 secs
> > ERROR: Job failed: exit code 1
>
>
> This time it's complaining about unapproved licenses. How do I get that
> fixed?
>
> Thanks,
> Larry
>
> On Sun, Mar 10, 2019 at 10:35 AM Awasum Yannick  wrote:
>
> > Larry, that makes sense.
> >
> > Here is a link to an previous mail where Vishwas was helping me solve
> > the problem:
> >
> >
> https://lists.apache.org/thread.html/1f01897413545729420c66355d3211d625ebbd245a98407220783bfc@%3Cdev.fineract.apache.org%3E
> >
> > And here is something related to IntelliJ problem you face:
> >
> >
> https://lists.apache.org/thread.html/f4cb9364504a13f71ea7654082274c7ff80c48b19ff76e8cadf3cc7f@%3Cdev.fineract.apache.org%3E
> >
> >
> > On Sun, Mar 10, 2019 at 10:23 AM ivange larry 
> > wrote:
> >
> > > Unfortunately, I cannot downgrade gradle as I have a lot of other
> > projects
> > > depending on it.
> > >
> > > I have removed the InteliJ changes from the wrapper and tried building
> > > again but now I'm getting the second error I mentioned in my initial
> > email.
> > >
> > > Below is my terminal output to the command ./gradlew rat
> > >
> > > Listening for transport dt_socket at address: 8005
> > > > Downloading
> > > https://services.gradle.org/distributions/gradle-2.10-bin.zip
> > > >
> > > >
> > >
> >
> ..
> > > > Unzipping
> 

Re: Unable to build Fineract 1.x as documented in README

2019-03-10 Thread ivange larry
Hi Awasum and Mua,

I could not downgrade my gradle in my local machine but I was able to get
gradle 2.10 on our CI environment. I no longer get that error but the build
still fails with

Download
> https://jcenter.bintray.com/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar
> Download
> https://jcenter.bintray.com/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
> Download
> https://jcenter.bintray.com/commons-io/commons-io/2.2/commons-io-2.2.jar
> Download
> https://jcenter.bintray.com/org/apache/commons/commons-compress/1.10/commons-compress-1.10.jar
> Download
> https://jcenter.bintray.com/commons-cli/commons-cli/1.2/commons-cli-1.2.jar
> :rat FAILED
> FAILURE: Build failed with an exception.
> * What went wrong:
> Execution failed for task ':rat'.
> > Found 1 files with unapproved/unknown licenses. See
> file:/builds/ivange94/micro-finance-backend/build/reports/rat/rat-report.txt
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or
> --debug option to get more log output.
> BUILD FAILED
> Total time: 52.562 secs
> ERROR: Job failed: exit code 1


This time it's complaining about unapproved licenses. How do I get that
fixed?

Thanks,
Larry

On Sun, Mar 10, 2019 at 10:35 AM Awasum Yannick  wrote:

> Larry, that makes sense.
>
> Here is a link to an previous mail where Vishwas was helping me solve
> the problem:
>
> https://lists.apache.org/thread.html/1f01897413545729420c66355d3211d625ebbd245a98407220783bfc@%3Cdev.fineract.apache.org%3E
>
> And here is something related to IntelliJ problem you face:
>
> https://lists.apache.org/thread.html/f4cb9364504a13f71ea7654082274c7ff80c48b19ff76e8cadf3cc7f@%3Cdev.fineract.apache.org%3E
>
>
> On Sun, Mar 10, 2019 at 10:23 AM ivange larry 
> wrote:
>
> > Unfortunately, I cannot downgrade gradle as I have a lot of other
> projects
> > depending on it.
> >
> > I have removed the InteliJ changes from the wrapper and tried building
> > again but now I'm getting the second error I mentioned in my initial
> email.
> >
> > Below is my terminal output to the command ./gradlew rat
> >
> > Listening for transport dt_socket at address: 8005
> > > Downloading
> > https://services.gradle.org/distributions/gradle-2.10-bin.zip
> > >
> > >
> >
> ..
> > > Unzipping
> > >
> >
> /Users/l4rry/.gradle/wrapper/dists/gradle-2.10-bin/baigpnfu14tdk6ztbfwcl8275/gradle-2.10-bin.zip
> > > to
> > >
> >
> /Users/l4rry/.gradle/wrapper/dists/gradle-2.10-bin/baigpnfu14tdk6ztbfwcl8275
> > > Set executable permissions for:
> > >
> >
> /Users/l4rry/.gradle/wrapper/dists/gradle-2.10-bin/baigpnfu14tdk6ztbfwcl8275/gradle-2.10/bin/gradle
> > > Download
> > > 

Re: Unable to build Fineract 1.x as documented in README

2019-03-10 Thread Awasum Yannick
Larry, that makes sense.

Here is a link to an previous mail where Vishwas was helping me solve
the problem:
https://lists.apache.org/thread.html/1f01897413545729420c66355d3211d625ebbd245a98407220783bfc@%3Cdev.fineract.apache.org%3E

And here is something related to IntelliJ problem you face:
https://lists.apache.org/thread.html/f4cb9364504a13f71ea7654082274c7ff80c48b19ff76e8cadf3cc7f@%3Cdev.fineract.apache.org%3E


On Sun, Mar 10, 2019 at 10:23 AM ivange larry  wrote:

> Unfortunately, I cannot downgrade gradle as I have a lot of other projects
> depending on it.
>
> I have removed the InteliJ changes from the wrapper and tried building
> again but now I'm getting the second error I mentioned in my initial email.
>
> Below is my terminal output to the command ./gradlew rat
>
> Listening for transport dt_socket at address: 8005
> > Downloading
> https://services.gradle.org/distributions/gradle-2.10-bin.zip
> >
> >
> ..
> > Unzipping
> >
> /Users/l4rry/.gradle/wrapper/dists/gradle-2.10-bin/baigpnfu14tdk6ztbfwcl8275/gradle-2.10-bin.zip
> > to
> >
> /Users/l4rry/.gradle/wrapper/dists/gradle-2.10-bin/baigpnfu14tdk6ztbfwcl8275
> > Set executable permissions for:
> >
> /Users/l4rry/.gradle/wrapper/dists/gradle-2.10-bin/baigpnfu14tdk6ztbfwcl8275/gradle-2.10/bin/gradle
> > Download
> > https://jcenter.bintray.com/com/google/guava/guava/17.0/guava-17.0.jar
> > :rat FAILED
> > FAILURE: Build failed with an exception.
> > * What went wrong:
> > Execution failed for task ':rat'.
> > > Found 3 files with unapproved/unknown licenses. See
> >
> file:/Users/l4rry/workspace/micro-finance-backend/build/reports/rat/rat-report.txt
> > * Try:
> > Run with --stacktrace option to get the stack trace. Run with --info or
> > --debug option to get more log output.
> > BUILD FAILED
> > Total time: 4 mins 15.156 secs
>
>
>
>
> On Sun, Mar 10, 2019 at 10:18 AM Awasum Yannick  wrote:
>
> > Larry and Mua Welcome.
> >
> > I think Mua is mostly right.
> >
> > For me I just downgraded my Gradle version to 2.10 and use the gradle
> > command directly and not using the wrapper. It seems the wrapper works
> for
> > some people but not for me.
> > I dont know why.
> >
> > You might install gradle version 2.10 and set it as default then run
> > `gradle clean build` and lets see.
> >
> > Fineract 1.x needs alot of fixes to get it stable again. Contributions
> are
> > welcome.
> >
> > Mua please to make your mails readable, give spaces between paragraphs
> like
> > i have done to make things easily readable. See how Larry wrote.
> >
> > Thanks for all your contributions and keep up the good work.
> >
> > Regards.
> > Awasum Yannick
> >
> > On Sun, Mar 10, 2019 at 10:07 AM 

Re: Unable to build Fineract 1.x as documented in README

2019-03-10 Thread ivange larry
Unfortunately, I cannot downgrade gradle as I have a lot of other projects
depending on it.

I have removed the InteliJ changes from the wrapper and tried building
again but now I'm getting the second error I mentioned in my initial email.

Below is my terminal output to the command ./gradlew rat

Listening for transport dt_socket at address: 8005
> Downloading https://services.gradle.org/distributions/gradle-2.10-bin.zip
>
> ..
> Unzipping
> /Users/l4rry/.gradle/wrapper/dists/gradle-2.10-bin/baigpnfu14tdk6ztbfwcl8275/gradle-2.10-bin.zip
> to
> /Users/l4rry/.gradle/wrapper/dists/gradle-2.10-bin/baigpnfu14tdk6ztbfwcl8275
> Set executable permissions for:
> /Users/l4rry/.gradle/wrapper/dists/gradle-2.10-bin/baigpnfu14tdk6ztbfwcl8275/gradle-2.10/bin/gradle
> Download
> https://jcenter.bintray.com/com/google/guava/guava/17.0/guava-17.0.jar
> :rat FAILED
> FAILURE: Build failed with an exception.
> * What went wrong:
> Execution failed for task ':rat'.
> > Found 3 files with unapproved/unknown licenses. See
> file:/Users/l4rry/workspace/micro-finance-backend/build/reports/rat/rat-report.txt
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or
> --debug option to get more log output.
> BUILD FAILED
> Total time: 4 mins 15.156 secs




On Sun, Mar 10, 2019 at 10:18 AM Awasum Yannick  wrote:

> Larry and Mua Welcome.
>
> I think Mua is mostly right.
>
> For me I just downgraded my Gradle version to 2.10 and use the gradle
> command directly and not using the wrapper. It seems the wrapper works for
> some people but not for me.
> I dont know why.
>
> You might install gradle version 2.10 and set it as default then run
> `gradle clean build` and lets see.
>
> Fineract 1.x needs alot of fixes to get it stable again. Contributions are
> welcome.
>
> Mua please to make your mails readable, give spaces between paragraphs like
> i have done to make things easily readable. See how Larry wrote.
>
> Thanks for all your contributions and keep up the good work.
>
> Regards.
> Awasum Yannick
>
> On Sun, Mar 10, 2019 at 10:07 AM ivange larry 
> wrote:
>
> > I am using the gradle wrapper that comes with the project
> >
> > On Sun, Mar 10, 2019 at 9:56 AM mua rachmann 
> > wrote:
> >
> > > Hi Larry,
> > > I had the same issue on Mac OS - 10.11 and this is probably happening
> > cause
> > > of the higher gradle version you have of which the providedCompile()
> is a
> > > deprecated function.
> > > The project expects Gradle 2.10 i guess so a quick walk around will be
> to
> > > downgrade the gradle version or rather just run ./gradlew that is
> > included
> > > in the projects directory from a terminal. It will pick up the 

Re: Unable to build Fineract 1.x as documented in README

2019-03-10 Thread Awasum Yannick
Larry and Mua Welcome.

I think Mua is mostly right.

For me I just downgraded my Gradle version to 2.10 and use the gradle
command directly and not using the wrapper. It seems the wrapper works for
some people but not for me.
I dont know why.

You might install gradle version 2.10 and set it as default then run
`gradle clean build` and lets see.

Fineract 1.x needs alot of fixes to get it stable again. Contributions are
welcome.

Mua please to make your mails readable, give spaces between paragraphs like
i have done to make things easily readable. See how Larry wrote.

Thanks for all your contributions and keep up the good work.

Regards.
Awasum Yannick

On Sun, Mar 10, 2019 at 10:07 AM ivange larry  wrote:

> I am using the gradle wrapper that comes with the project
>
> On Sun, Mar 10, 2019 at 9:56 AM mua rachmann 
> wrote:
>
> > Hi Larry,
> > I had the same issue on Mac OS - 10.11 and this is probably happening
> cause
> > of the higher gradle version you have of which the providedCompile() is a
> > deprecated function.
> > The project expects Gradle 2.10 i guess so a quick walk around will be to
> > downgrade the gradle version or rather just run ./gradlew that is
> included
> > in the projects directory from a terminal. It will pick up the default
> > gradle. I guess this happened cause of your editor. In my case i use
> > intelliJ and it installed gradle 5 which was way too high for the
> project.
> > You might also try this ./gradlew wrapper --gradle-version 2.10
> >
> > Mua
> >
> > On Sun, Mar 10, 2019 at 9:21 AM ivange larry 
> > wrote:
> >
> > > I have cloned https://github.com/apache/fineract and trying to build
> and
> > > run integration tests as documented in it's README but every gradle
> tasks
> > > fails with the error
> > >
> > > FAILURE: Build failed with an exception.
> > > > * Where:
> > > > Script
> > > >
> > >
> >
> '/Users/l4rry/workspace/micro-finance-backend/fineract-provider/dependencies.gradle'
> > > > line: 30
> > > > * What went wrong:
> > > > A problem occurred evaluating script.
> > > > > Could not find method providedCompile() for arguments [] on object
> of
> > > > type
> > > >
> > >
> >
> org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
> > > > * Try:
> > > > Run with --stacktrace option to get the stack trace. Run with --info
> or
> > > > --debug option to get more log output. Run with --scan to get full
> > > insights.
> > > > * Get more help at https://help.gradle.org
> > > > Deprecated Gradle features were used in this build, making it
> > > incompatible
> > > > with Gradle 5.0.
> > > > Use '--warning-mode all' to show the individual deprecation warnings.
> > > > See
> > > >
> > >
> >
> https://docs.gradle.org/4.10/userguide/command_line_interface.html#sec:command_line_warnings
> > >
> > >
> > > This reports an error on line 30 of the file dependencies.gradle.  The
> > > error is about this method providedCompile()
> > >
> > >
> > > providedCompile(
> > > > //  [group: 'javax.servlet', name: 'servlet-api',
> version:
> > > '2.5'],
> > > > )
> > >
> > >
> > > If I delete that method, I get another error message with any gradle
> > task.
> > >
> > > ➜  micro-finance-backend git:(pesabooks) ✗ ./gradlew clean war
> > > > > Task :rat FAILED
> > > > FAILURE: Build failed with an exception.
> > > > * What went wrong:
> > > > Execution failed for task ':rat'.
> > > > > Found 3 files with unapproved/unknown licenses. See
> > >
> >
> file:/Users/l4rry/workspace/micro-finance-backend/build/reports/rat/rat-report.txt
> > > > * Try:
> > > > Run with --stacktrace option to get the stack trace. Run with --info
> or
> > > --debug option to get more log output. Run with --scan to get full
> > insights.
> > > > * Get more help at https://help.gradle.org
> > > > Deprecated Gradle features were used in this build, making it
> > > incompatible with Gradle 5.0.
> > > > Use '--warning-mode all' to show the individual deprecation warnings.
> > >
> > >
> > > I have Java 8u191 and MacOS 10.12.6. And all gradlew task are run with
> > > the gradlew wrapper.
> > >
> > > Thanks,
> > > Larry
> > >
> >
>
>
> --
> GSoC 2016 @OpenMRS
> GSoC 2017 @LibreHealth
> GCI 2016 Mentor @OpenMRS
> GCI Org Admin @OpenMRS
>


Unable to build Fineract 1.x as documented in README

2019-03-10 Thread ivange larry
I have cloned https://github.com/apache/fineract and trying to build and
run integration tests as documented in it's README but every gradle tasks
fails with the error

FAILURE: Build failed with an exception.
> * Where:
> Script
> '/Users/l4rry/workspace/micro-finance-backend/fineract-provider/dependencies.gradle'
> line: 30
> * What went wrong:
> A problem occurred evaluating script.
> > Could not find method providedCompile() for arguments [] on object of
> type
> org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or
> --debug option to get more log output. Run with --scan to get full insights.
> * Get more help at https://help.gradle.org
> Deprecated Gradle features were used in this build, making it incompatible
> with Gradle 5.0.
> Use '--warning-mode all' to show the individual deprecation warnings.
> See
> https://docs.gradle.org/4.10/userguide/command_line_interface.html#sec:command_line_warnings


This reports an error on line 30 of the file dependencies.gradle.  The
error is about this method providedCompile()


providedCompile(
> //  [group: 'javax.servlet', name: 'servlet-api', version: '2.5'],
> )


If I delete that method, I get another error message with any gradle task.

➜  micro-finance-backend git:(pesabooks) ✗ ./gradlew clean war
> > Task :rat FAILED
> FAILURE: Build failed with an exception.
> * What went wrong:
> Execution failed for task ':rat'.
> > Found 3 files with unapproved/unknown licenses. See 
> > file:/Users/l4rry/workspace/micro-finance-backend/build/reports/rat/rat-report.txt
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or 
> --debug option to get more log output. Run with --scan to get full insights.
> * Get more help at https://help.gradle.org
> Deprecated Gradle features were used in this build, making it incompatible 
> with Gradle 5.0.
> Use '--warning-mode all' to show the individual deprecation warnings.


I have Java 8u191 and MacOS 10.12.6. And all gradlew task are run with
the gradlew wrapper.

Thanks,
Larry