Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-67022

Plugin development fails with java.level set to 11

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • plugin-pom
    • 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

          Gerold Broser created issue -
          Gerold Broser made changes -
          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.
          Gerold Broser made changes -
          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.
          Mark Waite made changes -
          Resolution New: Not A Defect [ 7 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Mark Waite made changes -
          Summary Original: Plugin development fails with Java 11 New: Plugin development fails with java.level set to 11
          Mark Waite made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

            Unassigned Unassigned
            geri Gerold Broser
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: