-
-
Notifications
You must be signed in to change notification settings - Fork 77
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-53788] - Add profile to workaround javadoc crash on JDK 11.0.2 #173
[JENKINS-53788] - Add profile to workaround javadoc crash on JDK 11.0.2 #173
Conversation
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.
This is a fix for https://issues.jenkins-ci.org/browse/JENKINS-53788 . Would be nice to also ignore previous JDK versions, but profiles do not easily support it
Not sure this is the same actually, the error I'm seeing in a few places is visible on this build for instance.
|
<plugin> | ||
<artifactId>maven-javadoc-plugin</artifactId> | ||
<configuration> | ||
<source>${java.level}</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 do not get it. Should this not just be the default?
diff --git a/pom.xml b/pom.xml
index 1fc3cdd..e44fcef 100644
--- a/pom.xml
+++ b/pom.xml
@@ -379,6 +379,7 @@
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.0.1</version>
<configuration>
+ <source>${java.level}</source>
<quiet>true</quiet>
<links>
<link>http://javadoc.jenkins.io/</link>
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.
This is currently only needed, and ever was, on JDK 11.0.2. It started failing in CI recently once the JDK was bumped from 11.0.1 to 11.0.2, and this is deemed fixed in JDK 11.0.3, so I don't think it should be needed.
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.
The fact that builds might have worked without this is interesting but my point is that this setting should have been configured on this mojo in all cases from the start, and that this was forgotten was only discovered thanks to this bug.
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.
As per the evaluation by Jonathan Gibbons:
If this really is a JDK8-era program, use the javadoc option --source 8 or --release 8.
Cf. for details https://bugs.openjdk.java.net/browse/JDK-8212233 Seen among many repos these days. Known already to be blocking * jenkinsci/workflow-job-plugin#126 * jenkinsci/chucknorris-plugin#19 ...
256aa39
to
4081a4d
Compare
Released as 3.40 |
* will fix the javadoc issue, cf. jenkinsci/plugin-pom#173 * bumping to more recent powermock and mockito to be Java 11 compatible
Picking up jenkinsci/plugin-pom#173 Also fix actual Javadoc error on JDK 11: <tt> is not allowed anymore
Picking up jenkinsci/plugin-pom#173 Also fix actual Javadoc error on JDK 11: <tt> is not allowed anymore
Cf. for details https://bugs.openjdk.java.net/browse/JDK-8212233
Seen among many repos these days.
Known already to be blocking
...
cc @jenkinsci/java11-support
Deployed as
3.40-20190308.114139-1
. Demonstration of the fix upcoming.