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

Prepare DTKit 2 API for removal of JAXB and Java 11 requirement

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • dtkit-plugin
    • None
    • 3.0.1

      JAXB was removed from Java 9+. In 2.164, JAXB was detached into the JAXB API plugin, which means that any plugin with a Jenkins baseline prior to 2.164 will get JAXB on its classpath via the detached plugin mechanism. Any plugin with a Jenkins baseline greater than or equal to 2.164 will get JAXB on its classpath if and only if it declares a plugin-to-plugin dependency on JAXB (recommended) or embeds JAXB into its own .jpi via a direct or transitive dependency.

      A systematic search of the plugin corpus was conducted on May 9, 2022; this search revealed that this plugin has a baseline greater than or equal to 2.164, a direct or transitive usage of JAXB, no plugin-to-plugin dependency on JAXB, and no copy of JAXB in the .jpi. For compatibility with Java 11, this plugin must declare an explicit dependency on the JAXB API plugin as follows:

      <dependency>
        <groupId>io.jenkins.plugins</groupId>
        <artifactId>jaxb</artifactId>
        <version>2.3.6-1</version>
      </dependency>
      

      This plugin's identified usage of JAXB is as follows:

      Plugin dtkit-api:3.0.0 using javax/xml/bind/annotation/adapters/XmlAdapter via org/jenkinsci/lib/dtkit/model/AbstractOutputMetric$Adapter.class
      Plugin dtkit-api:3.0.0 using javax/xml/bind/annotation/adapters/XmlAdapter via org/jenkinsci/lib/dtkit/model/xml/AnyTypeAdapter.class
      Plugin dtkit-api:3.0.0 using javax/xml/bind/annotation/adapters/XmlJavaTypeAdapter via org/jenkinsci/lib/dtkit/model/InputMetric.class
      Plugin dtkit-api:3.0.0 using javax/xml/bind/annotation/adapters/XmlJavaTypeAdapter via org/jenkinsci/lib/dtkit/model/OutputMetric.class
      Plugin dtkit-api:3.0.0 using javax/xml/bind/annotation/XmlAccessorType via org/jenkinsci/lib/dtkit/model/InputMetric.class
      Plugin dtkit-api:3.0.0 using javax/xml/bind/annotation/XmlAccessType via org/jenkinsci/lib/dtkit/model/InputMetric.class
      Plugin dtkit-api:3.0.0 using javax/xml/bind/annotation/XmlElement via org/jenkinsci/lib/dtkit/model/InputMetric.class
      Plugin dtkit-api:3.0.0 using javax/xml/bind/annotation/XmlTransient via org/jenkinsci/lib/dtkit/model/InputMetric.class
      Plugin dtkit-api:3.0.0 using javax/xml/bind/annotation/XmlTransient via org/jenkinsci/lib/dtkit/model/InputMetricXSL.class
      Plugin dtkit-api:3.0.0 using javax/xml/bind/annotation/XmlTransient via org/jenkinsci/lib/dtkit/model/OutputMetric.class

            basil Basil Crow
            basil Basil Crow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: