[JIRA] (JENKINS-57341) Plugin archetype and tutorial do Java 7 and Java 8 but not Java 11

21 views
Skip to first unread message

mark.earl.waite@gmail.com (JIRA)

unread,
May 6, 2019, 8:23:02 AM5/6/19
to jenkinsc...@googlegroups.com
Mark Waite updated an issue
 
Jenkins / Improvement JENKINS-57341
Plugin archetype and tutorial do Java 7 and Java 8 but not Java 11
Change By: Mark Waite
Summary: Plugin archetype and tutorial do Java 7 , not and Java 8 or but not Java 11
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

mark.earl.waite@gmail.com (JIRA)

unread,
May 6, 2019, 8:23:03 AM5/6/19
to jenkinsc...@googlegroups.com
Mark Waite updated an issue
The Jenkins.io "[Create a plugin|https://jenkins.io/doc/developer/tutorial/create/]" tutorial uses the maven archetype to generate the "HelloWorld" plugin.  The resulting plugin won't compile with Java 11 because it is configured with {{java.version=7}}, {{jenkins.version=2.7.3}} and {{parent pom=3.4}}.   
  Since Jenkins officially support Java 8 and Java 11, the archetype should be updated to support Java 8 and Java 11 compilation.

It should be configured with {{java.version=8}}, {{jenkins.version=2.164.1}} and {{parent pom=3.43}} so that the resulting plugin can be compiled with either Java 8 or Java 11.

The example page also shows the wrong set of choices available when generating the archetype.

{noformat}
[INFO] No archetype defined. Using maven-archetype-quickstart (org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
Choose archetype:
1: remote -> io.jenkins.archetypes:empty-plugin (-)
2: remote -> io.jenkins.archetypes:hello-world-plugin (Skeleton of a Jenkins plugin with a POM and an example build step.)
3: remote -> io.jenkins.archetypes:global-configuration-plugin (Skeleton of a Jenkins plugin with a POM and an example piece of global configuration.)
4: remote -> io.jenkins.archetypes:global-shared-library (Uses the Jenkins Pipeline Unit mock library to test the usage of a Global Shared Library)
5: remote -> io.jenkins.archetypes:scripted-pipeline (Uses the Jenkins Pipeline Unit mock library to test the logic inside a Pipeline script.)
Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): : 2
Choose io.jenkins.archetypes:hello-world-plugin version:
1: 1.1
2: 1.2
3: 1.3
4: 1.4
Choose a number: 4: 4
[INFO] Using property: groupId = unused
Define value for property 'artifactId': demo
Define value for property 'version' 1.0-SNAPSHOT: :
[INFO] Using property: package = io.jenkins.plugins.sample
Confirm properties configuration:
groupId: unused
artifactId: demo
version: 1.0-SNAPSHOT
package: io.jenkins.plugins.sample
Y: : y
{noformat}

The tutorial should also be updated to refer to {{spotbugs}} rather than {{findbugs}}.  The project has switched static analysis to {{spotbugs}}.

mark.earl.waite@gmail.com (JIRA)

unread,
May 6, 2019, 8:23:03 AM5/6/19
to jenkinsc...@googlegroups.com
Mark Waite updated an issue
The Jenkins.io "[Create a plugin|https://jenkins.io/doc/developer/tutorial/create/]" tutorial uses the maven archetype to generate the "HelloWorld" plugin.  The resulting plugin won't compile with Java 11 because it is configured with {{java.version=7}}, {{jenkins.version=2.7.3}} and {{parent pom=3.4}}.  Since Jenkins officially support supports Java 8 and Java 11, the archetype should be updated to support Java 8 and Java 11 compilation.

mark.earl.waite@gmail.com (JIRA)

unread,
May 6, 2019, 8:25:02 AM5/6/19
to jenkinsc...@googlegroups.com
Mark Waite updated an issue
The Jenkins.io "[Create a plugin|https://jenkins.io/doc/developer/tutorial/create/]" tutorial uses the maven archetype to generate the "HelloWorld" plugin.  The resulting plugin won't compile with Java 11 because it is configured with {{java.version=7}}, {{jenkins.version=2.7.3}} and {{parent pom=3.4}}.  Since Jenkins officially supports Java 8 and Java 11, the archetype should be updated to support Java 8 and Java 11 compilation.


The preceding tutorial, "[Preparing for Plugin Development|https://jenkins.io/doc/developer/tutorial/prepare/]" should use the Java 8 download from the AdoptOpenJDK project rather than using the Oracle JDK.  Oracle JDK 8 is no longer free for commercial use, while AdoptOpenJDK is free for commercial use.

mark.earl.waite@gmail.com (JIRA)

unread,
May 6, 2019, 9:38:02 AM5/6/19
to jenkinsc...@googlegroups.com
Mark Waite updated an issue
Change By: Mark Waite
Labels: java11-devtools-compatibility

o.v.nenashev@gmail.com (JIRA)

unread,
May 6, 2019, 11:22:01 AM5/6/19
to jenkinsc...@googlegroups.com
Oleg Nenashev updated an issue
Change By: Oleg Nenashev
Labels: java11 java11 -devtools-compatibility

mark.earl.waite@gmail.com (JIRA)

unread,
May 6, 2019, 11:47:02 AM5/6/19
to jenkinsc...@googlegroups.com
Mark Waite started work on Improvement JENKINS-57341
 
Change By: Mark Waite
Status: Open In Progress

mark.earl.waite@gmail.com (JIRA)

unread,
May 6, 2019, 11:47:02 AM5/6/19
to jenkinsc...@googlegroups.com

fjfernandez@cloudbees.com (JIRA)

unread,
May 7, 2019, 4:15:03 AM5/7/19
to jenkinsc...@googlegroups.com
Francisco Fernández updated an issue
Change By: Francisco Fernández
Labels: java11 java11-devtools-compatibility triaged

mark.earl.waite@gmail.com (JIRA)

unread,
May 20, 2019, 3:23:02 PM5/20/19
to jenkinsc...@googlegroups.com
Mark Waite assigned an issue to Unassigned
Change By: Mark Waite
Assignee: Mark Waite

jglick@cloudbees.com (JIRA)

unread,
Jun 19, 2019, 1:50:02 PM6/19/19
to jenkinsc...@googlegroups.com
Jesse Glick commented on Improvement JENKINS-57341
 
Re: Plugin archetype and tutorial do Java 7 and Java 8 but not Java 11

Archetype changes released as 1.5. Typically the index gets rebuilt once a week, on Sundays IIRC.

mark.earl.waite@gmail.com (JIRA)

unread,
Jun 19, 2019, 2:08:02 PM6/19/19
to jenkinsc...@googlegroups.com

mark.earl.waite@gmail.com (JIRA)

unread,
Jun 19, 2019, 2:08:02 PM6/19/19
to jenkinsc...@googlegroups.com

jglick@cloudbees.com (JIRA)

unread,
Jun 19, 2019, 4:27:02 PM6/19/19
to jenkinsc...@googlegroups.com
 
Re: Plugin archetype and tutorial do Java 7 and Java 8 but not Java 11

Mark Waite acc. to the issue description, you also needed to update the tutorial or something?

mark.earl.waite@gmail.com (JIRA)

unread,
Jun 19, 2019, 4:37:02 PM6/19/19
to jenkinsc...@googlegroups.com

mark.earl.waite@gmail.com (JIRA)

unread,
Jun 19, 2019, 4:37:02 PM6/19/19
to jenkinsc...@googlegroups.com

mark.earl.waite@gmail.com (JIRA)

unread,
Jun 19, 2019, 4:37:02 PM6/19/19
to jenkinsc...@googlegroups.com

mark.earl.waite@gmail.com (JIRA)

unread,
Jun 19, 2019, 4:38:02 PM6/19/19
to jenkinsc...@googlegroups.com
Mark Waite commented on Improvement JENKINS-57341
 
Re: Plugin archetype and tutorial do Java 7 and Java 8 but not Java 11

Thanks for the reminder Jesse Glick! I'll submit the pull request for the tutorial after the index rebuild makes the changes visible to me.

mark.earl.waite@gmail.com (JIRA)

unread,
Jun 27, 2019, 7:21:02 AM6/27/19
to jenkinsc...@googlegroups.com
 

Confirmed resolved with version 1.5 of the plugin archetype

Change By: Mark Waite
Status: In Review Resolved
Resolution: Fixed

mark.earl.waite@gmail.com (JIRA)

unread,
Jun 27, 2019, 7:21:02 AM6/27/19
to jenkinsc...@googlegroups.com

mark.earl.waite@gmail.com (JIRA)

unread,
Jun 27, 2019, 7:21:03 AM6/27/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages