Gradle build under Gradle 8 has inconsistent configuration
cyrille-artho opened this issue · comments
When using
./gradlew build -info
, we get a number of warnings like this one:
The configuration classpath is both consumable and declarable. This combination is incorrect, only one of these flags should be set.
This should be fixed so future versions of Gradle will not cause undetermined behavior.
It should display consumable
because it's used to specify the dependencies that the project needs to build and run correctly.
Do you know how to declare a task as consumable
? The only information I could find was to create a separate local build with a local maven archive, which seems to be rather complicated to achieve something that worked out of the box in older versions of Gradle.
I'll check for other options in official documentation of Gradle and update it.
This issue is fixed in gradle version 8.4
and I have tested this in my system
I have created the PR to fix this : #423
Reference Link : gradle/gradle#24197
Thanks a lot for looking into this, no wonder that the warnings never went away no matter what we changed. I've merged your PR.