You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@fineract.apache.org by George Monic <gm...@gmail.com> on 2019/09/11 05:09:34 UTC

Building exception error

Hi Devs,

I'm facing with the major problem when I use any gradle task...

For instance when I run /gradlew -Penv=dev clean cleanEclipse eclipse

This is what I get...

FAILURE: Build failed with an exception.

* Where:

Build file '/home/monicy/platform/fineract-provider/build.gradle' line: 81


* What went wrong:

A problem occurred evaluating root project 'fineract-provider'.

> Could not get unknown property 'classesDir' for main classes of type
org.gradle.api.internal.tasks.DefaultSourceSetOutput.


* 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 6.0.

Use '--warning-mode all' to show the individual deprecation warnings.

See
https://docs.gradle.org/5.2.1/userguide/command_line_interface.html#sec:command_line_warnings


BUILD FAILED in 0s


I'm using gradle 2.10..


Any help will be appreciated..


Thanks and Regards.

Monicy

Re: Building exception error

Posted by George Monic <gm...@gmail.com>.
Thanks for the reply Michael,

I'm working on your advice, will let you know..

Thanks and much appreciated..

Monicy

On Wed, Sep 11, 2019 at 10:15 AM Michael Vorburger <mi...@vorburger.ch>
wrote:

> Monicy,
>
> On Wed, Sep 11, 2019 at 7:09 AM George Monic <gm...@gmail.com> wrote:
>
>> Hi Devs,
>>
>> I'm facing with the major problem when I use any gradle task...
>>
>> For instance when I run /gradlew -Penv=dev clean cleanEclipse eclipse
>>
>
> you're probably running ./gradlew ... ? Just asking to double check you
> don't run gradle, without the . at the start and the w at the end.
>
> The difference is that "gradle" runs your local version (wrong and
> unsupported) whereas "./gradlew" runs the "gradle wrapper" (correct and
> supported).
>
>
>> This is what I get...
>>
>> FAILURE: Build failed with an exception.
>>
>> * Where:
>>
>> Build file '/home/monicy/platform/fineract-provider/build.gradle' line: 81
>>
>>
>> * What went wrong:
>>
>> A problem occurred evaluating root project 'fineract-provider'.
>>
>> > Could not get unknown property 'classesDir' for main classes of type
>> org.gradle.api.internal.tasks.DefaultSourceSetOutput.
>>
>
> curious, because I get a completely different error when running
> "./gradlew -Penv=dev clean cleanEclipse eclipse", on the current develop
> branch (as of today's commit 71b456c2547e9f9c9d9ffb209c2fc28ceb823cd0 from
> https://github.com/apache/fineract/commits/develop) :
>
> * Where:
> Script
> '/home/vorburger/Mifos/fineract/fineract-provider/dev-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.
>
> This ^^^ problem disappears when dropping "-Penv=dev", so "./gradlew clean
> cleanEclipse eclipse" works for me (on current develop branch HEAD). Do you
> want to tr that? You don't need "-Penv=dev" - that's an old left over of
> something we need to clean up some time.
>
> * 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 6.0.
>>
>> Use '--warning-mode all' to show the individual deprecation warnings.
>>
>> See
>> https://docs.gradle.org/5.2.1/userguide/command_line_interface.html#sec:command_line_warnings
>>
>>
>> BUILD FAILED in 0s
>>
>>
>> I'm using gradle 2.10..
>>
>
> just FYI, because you launch "./gradlew" you're actually NOT using the
> Gradle v2.10 which you have installed locally, but
> https://docs.gradle.org/current/userguide/gradle_wrapper.html; note how
> in your output which you copy/pasted it actually shows you are running
> 5.2.1.  (You could actually uninstall your old 2.10, as far as Fineract is
> concerned.)
>
>>
>> Any help will be appreciated..
>>
>>
>> Thanks and Regards.
>>
>> Monicy
>>
>
> Hope this helped?
>
> Welcome to Apache Fineract, have fun and best of luck.
>
> Bet,
> M.
> _______________________
> Michael Vorburger
> http://www.vorburger.ch
>
>
>

Re: Building exception error

Posted by Michael Vorburger <mi...@vorburger.ch>.
Monicy,

On Wed, Sep 11, 2019 at 7:09 AM George Monic <gm...@gmail.com> wrote:

> Hi Devs,
>
> I'm facing with the major problem when I use any gradle task...
>
> For instance when I run /gradlew -Penv=dev clean cleanEclipse eclipse
>

you're probably running ./gradlew ... ? Just asking to double check you
don't run gradle, without the . at the start and the w at the end.

The difference is that "gradle" runs your local version (wrong and
unsupported) whereas "./gradlew" runs the "gradle wrapper" (correct and
supported).


> This is what I get...
>
> FAILURE: Build failed with an exception.
>
> * Where:
>
> Build file '/home/monicy/platform/fineract-provider/build.gradle' line: 81
>
>
> * What went wrong:
>
> A problem occurred evaluating root project 'fineract-provider'.
>
> > Could not get unknown property 'classesDir' for main classes of type
> org.gradle.api.internal.tasks.DefaultSourceSetOutput.
>

curious, because I get a completely different error when running "./gradlew
-Penv=dev clean cleanEclipse eclipse", on the current develop branch (as of
today's commit 71b456c2547e9f9c9d9ffb209c2fc28ceb823cd0 from
https://github.com/apache/fineract/commits/develop) :

* Where:
Script
'/home/vorburger/Mifos/fineract/fineract-provider/dev-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.

This ^^^ problem disappears when dropping "-Penv=dev", so "./gradlew clean
cleanEclipse eclipse" works for me (on current develop branch HEAD). Do you
want to tr that? You don't need "-Penv=dev" - that's an old left over of
something we need to clean up some time.

* 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 6.0.
>
> Use '--warning-mode all' to show the individual deprecation warnings.
>
> See
> https://docs.gradle.org/5.2.1/userguide/command_line_interface.html#sec:command_line_warnings
>
>
> BUILD FAILED in 0s
>
>
> I'm using gradle 2.10..
>

just FYI, because you launch "./gradlew" you're actually NOT using the
Gradle v2.10 which you have installed locally, but
https://docs.gradle.org/current/userguide/gradle_wrapper.html; note how in
your output which you copy/pasted it actually shows you are running 5.2.1.
(You could actually uninstall your old 2.10, as far as Fineract is
concerned.)

>
> Any help will be appreciated..
>
>
> Thanks and Regards.
>
> Monicy
>

Hope this helped?

Welcome to Apache Fineract, have fun and best of luck.

Bet,
M.
_______________________
Michael Vorburger
http://www.vorburger.ch