You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@fineract.apache.org by ivange larry <iv...@gmail.com> on 2019/03/10 08:20:47 UTC

Unable to build Fineract 1.x as documented in README

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

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

Posted by Courage Angeh <co...@gmail.com>.
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 <iv...@gmail.com> 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 <aw...@apache.org> 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 <iv...@gmail.com>
> > 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 <aw...@apache.org>
> > 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 <ivangelarry@gmail.com
> >
> > > > wrote:
> > > >
> > > > > I am using the gradle wrapper that comes with the project
> > > > >
> > > > > On Sun, Mar 10, 2019 at 9:56 AM mua rachmann <
> muarachmann@gmail.com>
> > > > > 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 <
> > ivangelarry@gmail.com>
> > > > > > 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
> > > > >
> > > >
> > >
> > >
> > > --
> > > 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

Posted by Vishwas Babu <vi...@confluxtechnologies.com>.
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 <iv...@gmail.com> 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 <aw...@apache.org> 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 <iv...@gmail.com>
> > 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 <aw...@apache.org>
> > 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 <ivangelarry@gmail.com
> >
> > > > 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 <awasum@apache.org
> >
> > > > 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 <
> > ivangelarry@gmail.com
> > > >
> > > > > > wrote:
> > > > > >
> > > > > > > I am using the gradle wrapper that comes with the project
> > > > > > >
> > > > > > > On Sun, Mar 10, 2019 at 9:56 AM mua rachmann <
> > > muarachmann@gmail.com>
> > > > > > > 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 <
> > > > ivangelarry@gmail.com>
> > > > > > > > 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
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > 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
> > >
> >
>
>
> --
> 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

Posted by ivange larry <iv...@gmail.com>.
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 <mu...@gmail.com> 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 <iv...@gmail.com>
> 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
> > <http://localhost:8080/fineract-provider>* but all endpoints return 404
> > including *http://localhost:8080/fineract-provider
> > <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 <mu...@gmail.com>
> > 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

Posted by Mua Rachmann <mu...@gmail.com>.
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 <iv...@gmail.com> 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
> <http://localhost:8080/fineract-provider>* but all endpoints return 404
> including *http://localhost:8080/fineract-provider
> <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 <mu...@gmail.com>
> 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

Posted by ivange larry <iv...@gmail.com>.
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
<http://localhost:8080/fineract-provider>* but all endpoints return 404
including *http://localhost:8080/fineract-provider
<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 <mu...@gmail.com> 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

Posted by Mua Rachmann <mu...@gmail.com>.
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

Posted by ivange larry <iv...@gmail.com>.
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 <aw...@apache.org> 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 <iv...@gmail.com>
> 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 <aw...@apache.org>
> 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 <iv...@gmail.com>
> > > 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 <aw...@apache.org>
> > > 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 <
> ivangelarry@gmail.com
> > >
> > > > > wrote:
> > > > >
> > > > > > I am using the gradle wrapper that comes with the project
> > > > > >
> > > > > > On Sun, Mar 10, 2019 at 9:56 AM mua rachmann <
> > muarachmann@gmail.com>
> > > > > > 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 <
> > > ivangelarry@gmail.com>
> > > > > > > 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
> > > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > 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
> >
>


-- 
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

Posted by Awasum Yannick <aw...@apache.org>.
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 <iv...@gmail.com> 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 <aw...@apache.org> 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 <iv...@gmail.com>
> > 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 <aw...@apache.org>
> > 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 <ivangelarry@gmail.com
> >
> > > > wrote:
> > > >
> > > > > I am using the gradle wrapper that comes with the project
> > > > >
> > > > > On Sun, Mar 10, 2019 at 9:56 AM mua rachmann <
> muarachmann@gmail.com>
> > > > > 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 <
> > ivangelarry@gmail.com>
> > > > > > 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
> > > > >
> > > >
> > >
> > >
> > > --
> > > 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

Posted by ivange larry <iv...@gmail.com>.
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 <aw...@apache.org> 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 <iv...@gmail.com>
> 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 <aw...@apache.org>
> 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 <iv...@gmail.com>
> > > wrote:
> > >
> > > > I am using the gradle wrapper that comes with the project
> > > >
> > > > On Sun, Mar 10, 2019 at 9:56 AM mua rachmann <mu...@gmail.com>
> > > > 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 <
> ivangelarry@gmail.com>
> > > > > 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
> > > >
> > >
> >
> >
> > --
> > 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

Posted by Awasum Yannick <aw...@apache.org>.
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 <iv...@gmail.com> 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 <aw...@apache.org> 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 <iv...@gmail.com>
> > wrote:
> >
> > > I am using the gradle wrapper that comes with the project
> > >
> > > On Sun, Mar 10, 2019 at 9:56 AM mua rachmann <mu...@gmail.com>
> > > 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 <iv...@gmail.com>
> > > > 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
> > >
> >
>
>
> --
> 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

Posted by ivange larry <iv...@gmail.com>.
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 <aw...@apache.org> 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 <iv...@gmail.com>
> wrote:
>
> > I am using the gradle wrapper that comes with the project
> >
> > On Sun, Mar 10, 2019 at 9:56 AM mua rachmann <mu...@gmail.com>
> > 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 <iv...@gmail.com>
> > > 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
> >
>


-- 
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

Posted by Awasum Yannick <aw...@apache.org>.
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 <iv...@gmail.com> wrote:

> I am using the gradle wrapper that comes with the project
>
> On Sun, Mar 10, 2019 at 9:56 AM mua rachmann <mu...@gmail.com>
> 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 <iv...@gmail.com>
> > 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
>

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

Posted by ivange larry <iv...@gmail.com>.
Mua you're right. I was building from terminal but I had earlier imported
the project into InteliJ and it seems it modified the wrapper. I undone
InteliJ's changes and now downloading the 2.10 wrapper.

On Sun, Mar 10, 2019 at 10:07 AM ivange larry <iv...@gmail.com> wrote:

> I am using the gradle wrapper that comes with the project
>
> On Sun, Mar 10, 2019 at 9:56 AM mua rachmann <mu...@gmail.com>
> 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 <iv...@gmail.com>
>> 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
>


-- 
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

Posted by ivange larry <iv...@gmail.com>.
I am using the gradle wrapper that comes with the project

On Sun, Mar 10, 2019 at 9:56 AM mua rachmann <mu...@gmail.com> 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 <iv...@gmail.com>
> 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

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

Posted by mua rachmann <mu...@gmail.com>.
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 <iv...@gmail.com> 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
>