Skip to content

Commit 6c00f12

Browse files
committed
Force resolution to plexus-utils:3.5.1
The newer versions of plexus-utils are not compatible with Java 11. Also revert the name change of the shadow plugin. Signed-off-by: Andrew Ross <andrross@amazon.com>
1 parent 058d475 commit 6c00f12

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

buildSrc/build.gradle

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,17 @@ dependencies {
110110
api 'org.apache.rat:apache-rat:0.15'
111111
api "commons-io:commons-io:${props.getProperty('commonsio')}"
112112
api "net.java.dev.jna:jna:5.14.0"
113-
api 'com.gradleup.shadow:shadow-gradle-plugin:8.3.10'
113+
api 'com.github.johnrengelman:shadow:8.3.10'
114+
constraints {
115+
api('org.codehaus.plexus:plexus-utils:3.5.1') {
116+
because 'plexus-utils 4.x is incompatible with Java 11'
117+
}
118+
}
119+
configurations.all {
120+
resolutionStrategy {
121+
force 'org.codehaus.plexus:plexus-utils:3.5.1'
122+
}
123+
}
114124
api 'org.jdom:jdom2:2.0.6.1'
115125
api "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${props.getProperty('kotlin')}"
116126
api 'de.thetaphi:forbiddenapis:3.8'

0 commit comments

Comments
 (0)