Skip to content

Commit

Permalink
Fix the JDK version range for jdk9 profile
Browse files Browse the repository at this point in the history
The version range was: `[9,11[` was leading to activation of `jdk9` profile when running on Java 11. This can be confirmed by running: `mvn help:active-profiles`.
Actually `[9,11[` is not a valid range definition according to https://maven.apache.org/ref/3.9.5/maven-artifact/apidocs/org/apache/maven/artifact/versioning/VersionRange.html#createFromVersionSpec(java.lang.String)
This change update the definition of version range to `[9,11)` that actually exclude Java 11 (`jdk11` will be activated in such situation).
  • Loading branch information
amottier committed Nov 14, 2023
1 parent eacf33d commit b6dd4cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@
<profile>
<id>jdk9</id>
<activation>
<jdk>[9,11[</jdk>
<jdk>[9,11)</jdk>
</activation>
<properties>
<module.opts>--illegal-access=permit --add-reads java.base=java.logging</module.opts>
Expand Down

0 comments on commit b6dd4cc

Please sign in to comment.