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

Require Java 11 or newer #60

Merged
merged 1 commit into from
Jul 11, 2023
Merged

Require Java 11 or newer #60

merged 1 commit into from
Jul 11, 2023

Conversation

basil
Copy link
Member

@basil basil commented Jul 11, 2023

Fixes #38. Migrates away from the Java 8 Javadoc API to the Java 9+ Javadoc API. I could not find any reference material online; this was all learned as I went.

Testing done

Ran the Mojo before and after this change against Jelly; verified that the generated taglibs looked right.

Submitter checklist

@basil basil added the internal label Jul 11, 2023
@basil basil requested a review from NotMyFault July 11, 2023 04:02
@basil
Copy link
Member Author

basil commented Jul 11, 2023

@NotMyFault Are you interested in helping me test this? Would be great to run core taglib generation against this change and verify that the taglibs look right (or at least no worse than before).


private String targetFileName = null;
private String encodingFormat;

public TagXMLDoclet (RootDoc root) throws Exception
private void main(DocletEnvironment root) throws Exception
Copy link
Member Author

Choose a reason for hiding this comment

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

Good luck trying to understand the changes to this file. The only migration guide that exists has almost zero information other than the package changes. I had to figure out all of the semantic changes by trial and error.

@NotMyFault
Copy link
Member

NotMyFault Are you interested in helping me test this? Would be great to run core taglib generation against this change and verify that the taglibs look right (or at least no worse than before).

Surely, I created https://github.com/NotMyFault/jenkins/tree/jellydoc-11 with an incremental of maven-stapler-plugin using an incremental of this PR.
To generate the site, I ran cd core/ ; mvn --show-version --batch-mode -DgenerateProjectInfo=false -DgenerateSitemap=false -e clean site:site:
Screenshot 2023-07-11 at 08 55 35

The generated page looks like https://reports.jenkins.io/core-taglib/jelly-taglib-ref.html

@basil
Copy link
Member Author

basil commented Jul 11, 2023

Great! So are we ready to move forward with this?

Copy link
Member

@NotMyFault NotMyFault left a comment

Choose a reason for hiding this comment

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

Great! So are we ready to move forward with this?

No objections from me to not move on 🚀

@@ -28,7 +28,7 @@ jobs:
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '8'
java-version: '11'
Copy link
Member

Choose a reason for hiding this comment

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

We probably can use 17 too, no?

Copy link
Member Author

Choose a reason for hiding this comment

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

We could, but that would be inconsistent with the Stapler and HPI Maven plugins.

@basil basil changed the title Drop support for Java 8 Require Java 11 or newer Jul 11, 2023
@basil basil merged commit 803feaa into jenkinsci:master Jul 11, 2023
@basil basil deleted the java11 branch July 11, 2023 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing compatibility with Java 17
2 participants