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

PCT should update dependencyManagement

    XMLWordPrintable

Details

    Description

      The PCT updates the dependencies and test dependencies but it does not update the dependency management section of the pom file.

      Now consider a situation where a plugin `a` uses some test utilities from another plugin `b` but it does not have a direct dependency on `b`. To do that `a` can use a `test` scoped dependency of `b` `tests` artifact. In those circumstances, it makes sense for `a` to use a dependency management section to be sure that `b` version (transitively added by `b` tests artifact to the test classpath) is deterministic and under control.

      <dependencyManagement>
          <dependency>
              <artifactId>b</artifactId>
              ..........................
          </dependency>
      </dependencyManagement>
      <dependencies>
          <dependency>
              <artifactId>a</artifactId>
              <classifier>tests</classifier>
              <scope>test</scope>
          </dependency>
      </dependencies>
      

      Problem is that PCT does not update dependencyManagement so in this cases the final version of `b` in the test classpath is different from the version of `b` tests utilities used

      Attachments

        Activity

          People

            rarabaolaza Raul Arabaolaza
            rarabaolaza Raul Arabaolaza
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: