Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the JDK version range for jdk9 profile #250

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

amottier
Copy link
Contributor

The version range was: [9,11[ 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).

@amottier
Copy link
Contributor Author

Note that this PR requires #249 for the CI job to be successful.

Copy link
Contributor

@rouazana rouazana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the change and the explanation.

I let you rebase and we can merge if the pipeline is green.

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).
@amottier
Copy link
Contributor Author

Rebase is done @rouazana PR should be ready to be merged.

@rouazana rouazana merged commit 42ac09e into lsc-project:master Nov 15, 2023
1 check passed
@amottier amottier deleted the fix-jdk9-profile-activation branch November 15, 2023 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants