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 <ivangela...@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 <awa...@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 <ivangela...@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 <awa...@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 <ivangela...@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 <awa...@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 <
> > ivangela...@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 <
> > > muarachm...@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 <
> > > > ivangela...@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
>

Reply via email to