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

Publish org.jenkins-ci.ui:jenkins-js-libs:2.0.0

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • js-modules
    • None

      Hello, is it possible to publish the parent pom of handlebars so Gradle can resolve it?

       

      The new release of

      org.jenkins-ci.ui:handlebars:3.0.8

      has a parent pom of

      org.jenkins-ci.ui:jenkins-js-libs:2.0.0

      The parent pom isn't published, which causes Gradle to fail during resolution:

      > Could not resolve org.jenkins-ci.ui:handlebars:3.0.8.
           Required by:
               project : > org.jenkins-ci.main:jenkins-war:2.263.4
               project : > org.jenkins-ci.plugins.pipeline-stage-view:pipeline-stage-view:2.19
            > Could not resolve org.jenkins-ci.ui:handlebars:3.0.8.
               > Could not parse POM https://{repo}/org/jenkins-ci/ui/handlebars/3.0.8/handlebars-3.0.8.pom
                  > Could not find org.jenkins-ci.ui:jenkins-js-libs:2.0.0.
                    Searched in the following locations:
                      - https://{repo}/org/jenkins-ci/ui/jenkins-js-libs/2.0.0/jenkins-js-libs-2.0.0.pom
      
      

          [JENKINS-65210] Publish org.jenkins-ci.ui:jenkins-js-libs:2.0.0

          This is breaking our jobs that use Gradle to compile the Job DSL (for testing)

          Brandon Fryslie added a comment - This is breaking our jobs that use Gradle to compile the Job DSL (for testing)

          Steve Hill added a comment -

          brandonfryslie in these situations I usually get the POM from source and publish it elsewhere until it's available in the main repo. This may be useful for resolving your breaking builds.

          The missing version of the parent pom is available at the handlebars-3.0.8 tag of jenkinsci/js-libs. This can be downloaded and deployed to another maven repository. If you already have an internal hosted repository, that's a good spot.

          If this isn't feasible, you can also define a maven repository within the source repository like this:

          .
          ├── build.gradle
          ├── embedded-repo
          │   ├── org
          │   │   └── jenkins-ci
          │   │       └── ui
          │   │           └── jenkins-js-libs
          │   │               └── 2.0.0
          │   │                   └── jenkins-js-libs-2.0.0.pom
          

          And then define another maven repo in your build:

          repositories {
              maven {
                  name 'Embedded'
                  url 'embedded-repo'
                  metadataSources {
                      mavenPom()
                  }
                  content {
                      includeVersion 'org.jenkins-ci.ui', 'jenkins-js-libs', '2.0.0'
                  }
              }
          }

          It's not required to use the content filter, but I like it as an explicit reminder that this is a workaround.

          Steve Hill added a comment - brandonfryslie in these situations I usually get the POM from source and publish it elsewhere until it's available in the main repo. This may be useful for resolving your breaking builds. The missing version of the parent pom is available at the handlebars-3.0.8 tag of jenkinsci/js-libs . This can be downloaded and deployed to another maven repository. If you already have an internal hosted repository, that's a good spot. If this isn't feasible, you can also define a maven repository within the source repository like this: . ├── build.gradle ├── embedded-repo │   ├── org │   │   └── jenkins-ci │   │   └── ui │   │   └── jenkins-js-libs │   │   └── 2.0.0 │   │   └── jenkins-js-libs-2.0.0.pom And then define another maven repo in your build: repositories { maven { name 'Embedded' url 'embedded-repo' metadataSources { mavenPom() } content { includeVersion 'org.jenkins-ci.ui', 'jenkins-js-libs', '2.0.0' } } } It's not required to use the content filter , but I like it as an explicit reminder that this is a workaround.

            tfennelly Tom FENNELLY
            sghill Steve Hill
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: