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 <[email protected]> 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 <[email protected]> > 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 <[email protected]> > 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 <[email protected]> > > > wrote: > > > > > > > I am using the gradle wrapper that comes with the project > > > > > > > > On Sun, Mar 10, 2019 at 9:56 AM mua rachmann <[email protected]> > > > > 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 < > [email protected]> > > > > > 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
