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

[JENKINS-57852] - Deprecate Java 7 targets support in Plugin POM #207

Conversation

oleg-nenashev
Copy link
Member

Follow-up to https://groups.google.com/forum/#!topic/jenkinsci-dev/SdMOMKs7XIQ
Should unblock #200 and other similar PRs

README.md Outdated Show resolved Hide resolved
src/it/sample-plugin/pom.xml Outdated Show resolved Hide resolved
Co-Authored-By: Jesse Glick <jglick@cloudbees.com>
@oleg-nenashev
Copy link
Member Author

thanks @jglick , quickhack 🤦‍♂

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
<activation>
<property>
<name>java.level</name>
<value>7</value>
Copy link
Member

Choose a reason for hiding this comment

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

There may be some plugins using 6 out there still, though I suppose they are not using a modern POM either…

Copy link
Member Author

Choose a reason for hiding this comment

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

There is no good way to do conditional profiles or to chain them. Hit the same in Java 11 support PRs. So I just did the check for Java 7, but can copy-paste if needed

Copy link
Member

Choose a reason for hiding this comment

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

I think it is good enough, just noting this.

src/it/not-newest-java-level/pom.xml Outdated Show resolved Hide resolved
oleg-nenashev and others added 2 commits June 6, 2019 08:17
</goals>
<configuration>
<tasks>
<echo>WARNING: Plugin POM defines java.level=${java.level} which is deprecated in the current Plugin POM version. See https://github.com/jenkinsci/plugin-pom/blob/master/README.md#java-support</echo>
Copy link
Member

Choose a reason for hiding this comment

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

As an aside, maybe for #133, we ought to be deprecating this property and introducing a new one which expects an actual Java specification version—thus 1.8, 11, etc.

Copy link
Member Author

Choose a reason for hiding this comment

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

Agreed

Copy link
Member

Choose a reason for hiding this comment

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

I agree this would properly be a good time to do it 😓

Copy link
Member

Choose a reason for hiding this comment

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

Maybe possible to combine the tasks? Have a profile issuing a warning with two different clauses if you have java.level defined at all, and introduce the new property defaulting to 1.${java.level}. Just a thought; it is not a blocker for this PR.

@oleg-nenashev
Copy link
Member Author

Will merge it taking the feedback in the mailing list

@oleg-nenashev oleg-nenashev merged commit cbbd382 into jenkinsci:master Jun 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants