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

pipeline-rest-api bundles jackson2 rather than depending on jackson2 plugin

    XMLWordPrintable

    Details

    • Similar Issues:

      Attachments

        Activity

        Hide
        stephenconnolly Stephen Connolly added a comment -
        diff --git a/rest-api/pom.xml b/rest-api/pom.xml
        index 712ba73..4649846 100644
        --- a/rest-api/pom.xml
        +++ b/rest-api/pom.xml
        @@ -105,22 +105,10 @@
                     <artifactId>workflow-step-api</artifactId>
                     <version>2.10</version>
                 </dependency>
        -
        -        <!-- May be able to remove these due to core -->
        -        <dependency>
        -            <groupId>com.fasterxml.jackson.core</groupId>
        -            <artifactId>jackson-annotations</artifactId>
        -            <version>${jackson.version}</version>
        -        </dependency>
                 <dependency>
        -            <groupId>com.fasterxml.jackson.core</groupId>
        -            <artifactId>jackson-core</artifactId>
        -            <version>${jackson.version}</version>
        -        </dependency>
        -        <dependency>
        -            <groupId>com.fasterxml.jackson.core</groupId>
        -            <artifactId>jackson-databind</artifactId>
        -            <version>${jackson.version}</version>
        +            <groupId>org.jenkins-ci.plugins</groupId>
        +            <artifactId>jackson2-api</artifactId>
        +            <version>2.7.3</version>
                 </dependency>
                 <dependency>
        Show
        stephenconnolly Stephen Connolly added a comment - diff --git a/ rest -api/pom.xml b/ rest -api/pom.xml index 712ba73..4649846 100644 --- a/ rest -api/pom.xml +++ b/ rest -api/pom.xml @@ -105,22 +105,10 @@              <artifactId>workflow-step-api</artifactId>              <version>2.10</version>          </dependency> - -        <!-- May be able to remove these due to core --> -        <dependency> -            <groupId>com.fasterxml.jackson.core</groupId> -            <artifactId>jackson-annotations</artifactId> -            <version>${jackson.version}</version> -        </dependency>          <dependency> -            <groupId>com.fasterxml.jackson.core</groupId> -            <artifactId>jackson-core</artifactId> -            <version>${jackson.version}</version> -        </dependency> -        <dependency> -            <groupId>com.fasterxml.jackson.core</groupId> -            <artifactId>jackson-databind</artifactId> -            <version>${jackson.version}</version> +            <groupId>org.jenkins-ci.plugins</groupId> +            <artifactId>jackson2-api</artifactId> +            <version>2.7.3</version>          </dependency>          <dependency>
        Hide
        stephenconnolly Stephen Connolly added a comment -

        Basically if the following in the system groovy console 

        println(Jenkins.instance.pluginManager.whichPlugin(com.fasterxml.jackson.databind.ObjectMapper.class))

        does not produce Plugin:jackson2-api then whatever plugin it reports is wrong.

        Show
        stephenconnolly Stephen Connolly added a comment - Basically if the following in the system groovy console  println(Jenkins.instance.pluginManager.whichPlugin(com.fasterxml.jackson.databind.ObjectMapper.class)) does not produce Plugin:jackson2-api then whatever plugin it reports is wrong .
        Hide
        stephenconnolly Stephen Connolly added a comment -

        This is causing form validation errors due to no-such-method

        Show
        stephenconnolly Stephen Connolly added a comment - This is causing form validation errors due to no-such-method
        Hide
        svanoort Sam Van Oort added a comment -

        Released the tested fix with v2.9

        Show
        svanoort Sam Van Oort added a comment - Released the tested fix with v2.9
        Hide
        stephenconnolly Stephen Connolly added a comment -

        confirmed fixed on my instance

        Show
        stephenconnolly Stephen Connolly added a comment - confirmed fixed on my instance

          People

          • Assignee:
            svanoort Sam Van Oort
            Reporter:
            stephenconnolly Stephen Connolly
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: