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
>

Reply via email to