-
Notifications
You must be signed in to change notification settings - Fork 28
Enhance target JDK definition for JDK >= 9 #505
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
base: master
Are you sure you want to change the base?
Conversation
Defining maven.compiler.source and maven.compiler.target properties when running on JDK >= 9 has some side effects. Fixes apache#503
|
@slachiewicz @slawekjaranowski Note that those could be potentially moved to apache-parent if we want. Thoughts ? |
| <javaVersion>8</javaVersion> | ||
| <maven.compiler.source>${javaVersion}</maven.compiler.source> | ||
| <maven.compiler.target>${javaVersion}</maven.compiler.target> | ||
| <maven.compiler.source /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if it works on Maven 3 ....
Maybe we can do it in ASF parent?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if it works on Maven 3 ....
Maven 3 already requires JDK 17 to build.
I tested the PR on maven-compiler-plugin on the maven-compiler-plugin-3.x branch with success.
Maybe we can do it in ASF parent?
Yes, definitely. There's a higher risk of disruption and currently, the main target for this change is the master branch of maven-compiler-plugin, but I'm fine with moving it up if we want.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree to move up, looks safe
|
I've raised apache/maven-apache-parent#543 but we'll need to keep this PR. |
| <maven.compiler.source /> | ||
| <maven.compiler.target /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| <maven.compiler.source /> | |
| <maven.compiler.target /> |
is this the same now?
Having implicit or explicit default/undefined value is the same outcome, right?
Defining maven.compiler.source and maven.compiler.target properties when
running on JDK >= 9 has some side effects.
Fixes #503