You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When several plugins request different incompatible versions of the same library, Gradle does not report this as an error. Instead the build fails with runtime a runtime error.
Expected Behavior
If several plugins depend on incompatible versions of the same library, Gradle should report this as an error.
Current Behavior
Gradle silently selects one version of the library which causes errors at build time.
When several plugins request different incompatible versions of the same library, Gradle does not report this as an error. Instead the build fails with runtime a runtime error.
Expected Behavior
If several plugins depend on incompatible versions of the same library, Gradle should report this as an error.
Current Behavior
Gradle silently selects one version of the library which causes errors at build time.
Context
This was reported as britter/maven-plugin-development#65 but it turned out to be plugin classpath issue. The reporter applied maven-plugin-development plugin together with several other plugins that depend on the
com.thoughtworks.qdox:qdox
module. maven-plugin-development plugin depends oncom.thoughtworks.qdox:qdox:2.0-M5
and defines this as a constraint: https://github.com/britter/maven-plugin-development/blob/f710c414301386ef52b477a738119b148a866e87/subprojects/plugin/build.gradle.kts#L58-L62. Several other plugins depend oncom.thoughtworks.qdox:qdox:1.12.1
. See https://scans.gradle.com/s/6zdhoqgumbhcs/build-dependencies?dependencies=qdox&expandAll&focusedDependency=WzEsMCwxNTgsWzEsMCxbMV1dXQ&focusedDependencyView=versionsThe only way to fix this is removing conflicting plugins from the using build.
The only way to fix this in maven-plugin-development is to relocate all plugin dependencies.
Steps to Reproduce
See britter/maven-plugin-development#65 (comment)
Your Environment
Build scan URL: https://scans.gradle.com/s/6zdhoqgumbhcs
The text was updated successfully, but these errors were encountered: