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

remove obsolete libraries from jenkins.war

    Details

    • Type: Improvement
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Similar Issues:

      Description

      Now that Jenkins is using java8 there are a few libraries that should possibly be removed.

      There are 2 versions of Stax api (jdk8 ships with a stax api and most likely imp)
      javax.activation is part of JDK8 (and prior JDKS - Jenkins shipps with a patched version?)
      javax.annotation is shipped with jdk8 - but missing the SQL annotations - but it is not likley that Jenkins usses those and should be able to make do with the Resource/Resources and PreConstruct/PostConstruct).

      There may also be other libraries...

        Attachments

          Issue Links

            Activity

            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            CC Baptiste Mathus since it is in the Java 8 upgrade follow-ups EPIC

            Show
            oleg_nenashev Oleg Nenashev added a comment - CC Baptiste Mathus since it is in the Java 8 upgrade follow-ups EPIC
            Hide
            oleg_nenashev Oleg Nenashev added a comment - - edited

            Likely it will be closed as a part of the Java 11 GA release effort (maybe as won't fix)

            Show
            oleg_nenashev Oleg Nenashev added a comment - - edited Likely it will be closed as a part of the Java 11 GA release effort (maybe as won't fix)
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            javax.annotation is no longer used in the Jenkins core. https://plugins.jenkins.io/jaxb can be used to install the dependencies with Java 11 or above.

             

            James Nord do you want to see any additional changes in this ticket?

             

             

            Show
            oleg_nenashev Oleg Nenashev added a comment - javax.annotation is no longer used in the Jenkins core. https://plugins.jenkins.io/jaxb  can be used to install the dependencies with Java 11 or above.   James Nord do you want to see any additional changes in this ticket?    
            Hide
            teilo James Nord added a comment -

            stax/jax-b annotations should be good to go.

            JSR-305 should be replaced with spotbugs but that is a different ticket

            Feel free to close if they are gone.

            Show
            teilo James Nord added a comment - stax/jax-b annotations should be good to go. JSR-305 should be replaced with spotbugs but that is a different ticket Feel free to close if they are gone.
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            JENKINS-55973 was created for SpotBugs and annotations. Since it is not blocking Java 11 release per se, I am going to close this ticket as resolved

             

            Show
            oleg_nenashev Oleg Nenashev added a comment - JENKINS-55973  was created for SpotBugs and annotations. Since it is not blocking Java 11 release per se, I am going to close this ticket as resolved  

              People

              • Assignee:
                Unassigned
                Reporter:
                teilo James Nord
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: