Skip to content

Commit

Permalink
Do not use inferModulePath with Gradle version prior to 6.4
Browse files Browse the repository at this point in the history
  • Loading branch information
pepone committed Dec 7, 2023
1 parent b228224 commit 8b888aa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ subprojects {
}

// Only enable infer module path with Java 9 and up
java {
modularity.inferModulePath = targetJavaRelease.toInteger() > 8
if(GradleVersion.current() >= GradleVersion.version('6.4')) {
java {
modularity.inferModulePath = targetJavaRelease.toInteger() > 8
}
}

jar {
Expand Down

0 comments on commit 8b888aa

Please sign in to comment.