Skip to content

Commit 6bf9f90

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

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

buildSrc/build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,16 @@ dependencies {
111111
api "commons-io:commons-io:${props.getProperty('commonsio')}"
112112
api "net.java.dev.jna:jna:5.14.0"
113113
api 'com.gradleup.shadow:shadow-gradle-plugin: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)