Only use "-release" parameter with javac 9+ by kwin · Pull Request #362 · codehaus-plexus/plexus-compiler (original) (raw)

Skip to content

Sign in

Appearance settings

View all features

View all solutions

View all resources

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Sign in

Sign up

Appearance settings

codehaus-plexus / plexus-compiler Public

Additional navigation options

Merged

kwin

merged 1 commit into

masterfrom

feature/set-release-conditionally

Feb 5, 2024

ConversationCommits (1)ChecksFiles changed

Merged

Only use "-release" parameter with javac 9+#362

kwin

merged 1 commit into

masterfrom

feature/set-release-conditionally

Conversation

@kwin

@kwin kwin commented

Feb 3, 2024

Copy link Copy Markdown

Contributor

This closes #140

@kwin

`[Only use "-release" parameter with javac 9+](/codehaus-plexus/plexus-compiler/pull/362/commits/69496455fcab14668a65ad9e6816247ba5cc6a75 "Only use "-release" parameter with javac 9+

This closes #140") `

[6949645](/codehaus-plexus/plexus-compiler/pull/362/commits/69496455fcab14668a65ad9e6816247ba5cc6a75)

This closes #140

@kwin kwin requested review fromgnodet and slawekjaranowski

February 3, 2024 10:16

slachiewicz

slachiewicz approved these changes Feb 3, 2024

View reviewed changes

slawekjaranowski

slawekjaranowski approved these changes Feb 3, 2024

View reviewed changes

@gnodet

gnodet commented

Feb 3, 2024

edited

Loading

Copy link Copy Markdown

Member

Does this mean you cannot have a single configuration that would target JDK 8 and built on both JDK 8 and JDK 11 ?

@kwin

kwin commented

Feb 3, 2024

Copy link Copy Markdown

Contributor Author

The other way around:
Right now you cannot use "release" with javac 8 (leads to an error), in the future it will be silently disregarded. This makes JDK9+ specific profiles like https://github.com/apache/maven-apache-parent/blob/4e05486793fa7938cb4de7eff04d54ceae05f9d3/pom.xml#L528-L538 obsolete.

gnodet reacted with thumbs up emoji

@slawekjaranowski slawekjaranowski added the enhancement label

Feb 5, 2024

@kwin kwin merged commit d8e98dd into master

Feb 5, 2024

@kwin kwin deleted the feature/set-release-conditionally branch

February 5, 2024 09:44

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

Sign up for free to join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@slawekjaranowski slawekjaranowski slawekjaranowski approved these changes

@slachiewicz slachiewicz slachiewicz approved these changes

@gnodet gnodet Awaiting requested review from gnodet

Assignees

No one assigned

Labels

enhancement

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

"release" parameter should only be set for javac version >= 9

4 participants

@kwin @gnodet @slawekjaranowski @slachiewicz