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

EOL JENKINS-20679

    XMLWordPrintable

Details

    Description

      Previously Java versions strings were 1.x, so the plugin-pom hardcodes a java.level property of "8" like so:

      <source>1.${java.level}</source>

      See: https://github.com/jenkinsci/plugin-pom/blob/master/pom.xml#L604

      https://blog.codefx.org/java/java-9-migration-guide/#New-Version-Strings

      But that won't work if we need to use a version of 9+, where the version string is now just "9" etc

      In general we need multi-release JAR support here because if we change the way the java.level is handled then we don't inadvertently break Java 8 or earlier which expect the 1.x format.

      Attachments

        Activity

          svanoort Sam Van Oort created issue -
          svanoort Sam Van Oort made changes -
          Field Original Value New Value
          Epic Link JENKINS-40689 [ 177392 ]
          svanoort Sam Van Oort made changes -
          Summary Plugin-Pom Can't Handle New Java 9+ Version strings for java.level Plugin-Pom Uses Single Version String Hardcoded To Only Work With Java 8 or earlier
          svanoort Sam Van Oort made changes -
          Description Previously Java versions strings were 1.x, so the plugin-pom hardcodes a java.level property of "8" like so:

          <source>1.${java.level}</source>

          See: https://github.com/jenkinsci/plugin-pom/blob/master/pom.xml#L604

          https://blog.codefx.org/java/java-9-migration-guide/#New-Version-Strings

          But that won't work if we need to use a version of 9+, where the version string is now just "9" etc
          Previously Java versions strings were 1.x, so the plugin-pom hardcodes a java.level property of "8" like so:

          <source>1.${java.level}</source>

          See: https://github.com/jenkinsci/plugin-pom/blob/master/pom.xml#L604

          https://blog.codefx.org/java/java-9-migration-guide/#New-Version-Strings

          But that won't work if we need to use a version of 9+, where the version string is now just "9" etc

          In general we need multi-release JAR support here because if we change the way the java.level is handled *then* we don't inadvertently break Java 8 or earlier which expect the 1.x format.
          svanoort Sam Van Oort made changes -
          Summary Plugin-Pom Uses Single Version String Hardcoded To Only Work With Java 8 or earlier Plugin POM Uses Single Version String Hardcoded To Only Work With Java 8 or earlier
          miraha jang hyemi (Inactive) made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          miraha jang hyemi (Inactive) made changes -
          Status In Progress [ 3 ] In Review [ 10005 ]
          oleg_nenashev Oleg Nenashev made changes -
          Labels java10 java10_hackathon java10 java10_hackathon java11
          oleg_nenashev Oleg Nenashev made changes -
          Labels java10 java10_hackathon java11 java10 java10_hackathon java11 java11-devtools-compatibility
          oleg_nenashev Oleg Nenashev made changes -
          Assignee Oleg Nenashev [ oleg_nenashev ]
          batmat Baptiste Mathus made changes -
          Labels java10 java10_hackathon java11 java11-devtools-compatibility java10 java10_hackathon java11 java11-devtools-compatibility triaged
          markewaite Mark Waite made changes -
          Epic Link JENKINS-40689 [ 177392 ] JENKINS-67688 [ 214193 ]
          markewaite Mark Waite made changes -
          Status In Review [ 10005 ] In Progress [ 3 ]
          markewaite Mark Waite made changes -
          Status In Progress [ 3 ] Open [ 1 ]
          markewaite Mark Waite made changes -
          Assignee Oleg Nenashev [ oleg_nenashev ]
          timja Tim Jacomb made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          timja Tim Jacomb made changes -
          Status In Progress [ 3 ] In Review [ 10005 ]
          basil Basil Crow made changes -
          Labels java10 java10_hackathon java11 java11-devtools-compatibility triaged java11
          basil Basil Crow made changes -
          Status In Review [ 10005 ] In Progress [ 3 ]
          basil Basil Crow made changes -
          Summary Plugin POM Uses Single Version String Hardcoded To Only Work With Java 8 or earlier Rationalize plugin POM Java version API
          basil Basil Crow made changes -
          Issue Type Bug [ 1 ] Improvement [ 4 ]
          basil Basil Crow made changes -
          Assignee Basil Crow [ basil ]
          basil Basil Crow made changes -
          Summary Rationalize plugin POM Java version API EOL JENKINS-20679
          basil Basil Crow made changes -
          Status In Progress [ 3 ] Open [ 1 ]
          basil Basil Crow made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          basil Basil Crow made changes -
          Status In Progress [ 3 ] In Review [ 10005 ]
          basil Basil Crow made changes -
          Remote Link This issue links to "jenkinsci/jenkins#6549 (Web Link)" [ 27721 ]
          basil Basil Crow made changes -
          Remote Link This issue links to "jenkinsci/maven-hpi-plugin#341 (Web Link)" [ 27722 ]
          basil Basil Crow made changes -
          Remote Link This issue links to "jenkins-infra/update-center2#591 (Web Link)" [ 27723 ]
          basil Basil Crow made changes -
          Remote Link This issue links to "jenkinsci/plugin-pom#549 (Web Link)" [ 27764 ]
          basil Basil Crow made changes -
          Resolution Fixed [ 1 ]
          Status In Review [ 10005 ] Closed [ 6 ]

          People

            basil Basil Crow
            svanoort Sam Van Oort
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: