gradle-consistent-versions icon indicating copy to clipboard operation
gradle-consistent-versions copied to clipboard

Gradle deprecation warnings - Configuration resolution from a different context

Open jprinet opened this issue 3 years ago • 0 comments

What happened?

using Gradle 7.2 and com.palantir.consistent-versions 2.0.0

when running checkUnusedConstraints task, I'm getting:

Resolution of the configuration MY_PROJECT was attempted from a context different than the project context. Have a look at the documentation to understand why this is a problem and how it can be resolved. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. See https://docs.gradle.org/7.2/userguide/viewing_debugging_dependencies.html#sub:resolving-unsafe-configuration-resolution-errors for more details.

This originates from https://github.com/palantir/gradle-consistent-versions/blob/1db198e6ef0413b6009571f2a1c5f9f73e637dc9/src/main/java/com/palantir/gradle/versions/CheckUnusedConstraintsTask.java#L171

What did you want to happen?

Not getting the warning in order to be able to upgrade to Gradle 8.0 later on

jprinet avatar Oct 26 '21 10:10 jprinet