-
Bug
-
Resolution: Not A Defect
-
Major
-
Any development environment
I'm in the process of developing a plugin. I created a Maven project from io.jenkins.archetypes:empty-plugin. The created POM contains:
<properties> <java.level>8</java.level>
If I change this to 11 hell breaks loose because on line 485 in the parent POM org.jenkins-ci.plugins:plugin:4.28 there is:
<maxJdkVersion>1.${java.level}</maxJdkVersion>
and 1.11 is not a proper Java version. Hence it was not the best decision to define maxJdkVersion like this.
The latest org.jenkins-ci.plugins:plugin:pom:4.29 contains the same declaration on the same line 485.
The same applies to org.jenkins-ci.tools:maven-hpi-plugin:3.19, lines 292, 293.
[JENKINS-67022] Plugin development fails with java.level set to 11
Description |
Original:
I'm in the process of developing a plugin. I created a Maven project from {{io.jenkins.archetypes:empty-plugin}}. The created POM contains:
{code:xml} <properties> <java.level>8</java.level> {code} If I change this to {{11}} hell breaks loose because on line 485 in the parent POM {{org.jenkins-ci.plugins:plugin:4.28}} there is: {code:xml} <maxJdkVersion>1.${java.level}</maxJdkVersion> {code} and {{1.11}} is not a proper Java version. Hence it was not the best decision to define {{maxJdkVersion}} like this. |
New:
I'm in the process of developing a plugin. I created a Maven project from {{io.jenkins.archetypes:empty-plugin}}. The created POM contains:
{code:xml} <properties> <java.level>8</java.level> {code} If I change this to {{11}} hell breaks loose because on line 485 in the parent POM {{org.jenkins-ci.plugins:plugin:4.28}} there is: {code:xml} <maxJdkVersion>1.${java.level}</maxJdkVersion> {code} and {{1.11}} is not a proper Java version. Hence it was not the best decision to define {{maxJdkVersion}} like this. The latest {{org.jenkins-ci.plugins:plugin:pom:4.29}} contains the same declaration on the same line 485. |
Description |
Original:
I'm in the process of developing a plugin. I created a Maven project from {{io.jenkins.archetypes:empty-plugin}}. The created POM contains:
{code:xml} <properties> <java.level>8</java.level> {code} If I change this to {{11}} hell breaks loose because on line 485 in the parent POM {{org.jenkins-ci.plugins:plugin:4.28}} there is: {code:xml} <maxJdkVersion>1.${java.level}</maxJdkVersion> {code} and {{1.11}} is not a proper Java version. Hence it was not the best decision to define {{maxJdkVersion}} like this. The latest {{org.jenkins-ci.plugins:plugin:pom:4.29}} contains the same declaration on the same line 485. |
New:
I'm in the process of developing a plugin. I created a Maven project from {{io.jenkins.archetypes:empty-plugin}}. The created POM contains:
{code:xml} <properties> <java.level>8</java.level> {code} If I change this to {{11}} hell breaks loose because on line 485 in the parent POM {{org.jenkins-ci.plugins:plugin:4.28}} there is: {code:xml} <maxJdkVersion>1.${java.level}</maxJdkVersion> {code} and {{1.11}} is not a proper Java version. Hence it was not the best decision to define {{maxJdkVersion}} like this. The latest {{org.jenkins-ci.plugins:plugin:pom:4.29}} contains the same declaration on the same line 485. The same applies to {{org.jenkins-ci.tools:maven-hpi-plugin:3.19}}, lines 292, 293. |
Resolution | New: Not A Defect [ 7 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Summary | Original: Plugin development fails with Java 11 | New: Plugin development fails with java.level set to 11 |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Jenkins plugins can be developed with Java 11 but we retain java.level as 8 so that plugins developed with Java 11 can still be run on a Jenkins instance that is running Java 8. Greater than 50% of Jenkins controllers are still running Java 8. You want to be compatible with those controllers. Leave the java.level value at 8.