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

gradle/groovy plugin cannot build test task

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • gradle-jpi-plugin
    • linux
      OpenJDK Runtime Environment (IcedTea6 1.12.6) (6b27-1.12.6-1ubuntu0.12.04.2)
      OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

    Description

      create a new gradle/groovy plugin

      gent --name=<proj> kiy0taka/jenkins-plugin
      cd <proj>
      ./gradlew server

      change the coreVersion to 1.534

      run ./gradlew clean test

      this is the error

      XXXXXXXXXXX~/java/test2$ ./gradlew clean test
      :clean
      :localizer
      :stapler
      :compileJava
      warning: Supported source version 'RELEASE_6' from annotation processor 'jenkins.PluginSubtypeMarker' less than -source '1.7'
      warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.jsr269.ConstructorProcessor' less than -source '1.7'
      warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.jsr269.ExportedBeanAnnotationProcessor' less than -source '1.7'
      warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.jsr269.QueryParameterAnnotationProcessor' less than -source '1.7'
      warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.jsr269.RequirePOSTAnnotationProcessor' less than -source '1.7'
      warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.jsr269.WebMethodAnnotationProcessor' less than -source '1.7'
      warning: No SupportedSourceVersion annotation found on org.kohsuke.wpc.ProcessorImpl, returning RELEASE_6.
      warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.wpc.ProcessorImpl' less than -source '1.7'
      warning: Supported source version 'RELEASE_6' from annotation processor 'org.jvnet.hudson.annotation_indexer.AnnotationProcessorImpl' less than -source '1.7'
      warning: Supported source version 'RELEASE_6' from annotation processor 'net.java.sezpoz.impl.Indexer6' less than -source '1.7'
      Note: org.jenkinsci.plugins.HelloWorldBuilder.DescriptorImpl indexed under hudson.Extension
      10 warnings
      :compileGroovy
      :processResources
      :classes
      :generate-test-hpl
      :compileTestJava UP-TO-DATE
      :compileTestGroovy
      Deprecated: relying on packaging to define the extension of the main artifact is deprecated, and will not be supported in a future version of Gradle.
      Download http://repo1.maven.org/maven2/org/jsoup/jsoup/1.7.1/jsoup-1.7.1.pom

      FAILURE: Build failed with an exception.

      • What went wrong:
        Could not resolve all dependencies for configuration ':testCompile'.
        > Could not find group:org.tmatesoft.sqljet, module:sqljet, version:1.1.0.
        Required by:
        org.jenkins-ci.plugins:test2:0.0.1-SNAPSHOT > org.jenkins-ci.main:jenkins-test-harness:1.534 > org.jenkins-ci.plugins:subversion:1.45 > org.jenkins-ci.svnkit:svnkit:1.7.6-jenkins-1
        > Could not find group:de.regnis.q.sequence, module:sequence-library, version:1.0.1.
        Required by:
        org.jenkins-ci.plugins:test2:0.0.1-SNAPSHOT > org.jenkins-ci.main:jenkins-test-harness:1.534 > org.jenkins-ci.plugins:subversion:1.45 > org.jenkins-ci.svnkit:svnkit:1.7.6-jenkins-1

      I tried clearing the gradle cache and retrying and got the same error

      Attachments

        Activity

          jeremym Jeremy Marshall created issue -
          jeremym Jeremy Marshall made changes -
          Field Original Value New Value
          Description create a new gradle/groovy plugin

          gent --name=<proj> kiy0taka/jenkins-plugin
          cd <proj>
          ./gradlew server

          change the coreVersion to 1.534

          run ./gradlew clean test

          this is the error

          XXXXXXXXXXX~/java/test2$ ./gradlew clean test
          :clean
          :localizer
          :stapler
          :compileJava
          warning: Supported source version 'RELEASE_6' from annotation processor 'jenkins.PluginSubtypeMarker' less than -source '1.7'
          warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.jsr269.ConstructorProcessor' less than -source '1.7'
          warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.jsr269.ExportedBeanAnnotationProcessor' less than -source '1.7'
          warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.jsr269.QueryParameterAnnotationProcessor' less than -source '1.7'
          warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.jsr269.RequirePOSTAnnotationProcessor' less than -source '1.7'
          warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.jsr269.WebMethodAnnotationProcessor' less than -source '1.7'
          warning: No SupportedSourceVersion annotation found on org.kohsuke.wpc.ProcessorImpl, returning RELEASE_6.
          warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.wpc.ProcessorImpl' less than -source '1.7'
          warning: Supported source version 'RELEASE_6' from annotation processor 'org.jvnet.hudson.annotation_indexer.AnnotationProcessorImpl' less than -source '1.7'
          warning: Supported source version 'RELEASE_6' from annotation processor 'net.java.sezpoz.impl.Indexer6' less than -source '1.7'
          Note: org.jenkinsci.plugins.HelloWorldBuilder.DescriptorImpl indexed under hudson.Extension
          10 warnings
          :compileGroovy
          :processResources
          :classes
          :generate-test-hpl
          :compileTestJava UP-TO-DATE
          :compileTestGroovy
          Deprecated: relying on packaging to define the extension of the main artifact is deprecated, and will not be supported in a future version of Gradle.
          Download http://repo1.maven.org/maven2/org/jsoup/jsoup/1.7.1/jsoup-1.7.1.pom

          FAILURE: Build failed with an exception.

          * What went wrong:
          Could not resolve all dependencies for configuration ':testCompile'.
          > Could not find group:org.tmatesoft.sqljet, module:sqljet, version:1.1.0.
            Required by:
                org.jenkins-ci.plugins:test2:0.0.1-SNAPSHOT > org.jenkins-ci.main:jenkins-test-harness:1.534 > org.jenkins-ci.plugins:subversion:1.45 > org.jenkins-ci.svnkit:svnkit:1.7.6-jenkins-1
          > Could not find group:de.regnis.q.sequence, module:sequence-library, version:1.0.1.
            Required by:
                org.jenkins-ci.plugins:test2:0.0.1-SNAPSHOT > org.jenkins-ci.main:jenkins-test-harness:1.534 > org.jenkins-ci.plugins:subversion:1.45 > org.jenkins-ci.svnkit:svnkit:1.7.6-jenkins-1
          create a new gradle/groovy plugin

          gent --name=<proj> kiy0taka/jenkins-plugin
          cd <proj>
          ./gradlew server

          change the coreVersion to 1.534

          run ./gradlew clean test

          this is the error

          XXXXXXXXXXX~/java/test2$ ./gradlew clean test
          :clean
          :localizer
          :stapler
          :compileJava
          warning: Supported source version 'RELEASE_6' from annotation processor 'jenkins.PluginSubtypeMarker' less than -source '1.7'
          warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.jsr269.ConstructorProcessor' less than -source '1.7'
          warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.jsr269.ExportedBeanAnnotationProcessor' less than -source '1.7'
          warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.jsr269.QueryParameterAnnotationProcessor' less than -source '1.7'
          warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.jsr269.RequirePOSTAnnotationProcessor' less than -source '1.7'
          warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.jsr269.WebMethodAnnotationProcessor' less than -source '1.7'
          warning: No SupportedSourceVersion annotation found on org.kohsuke.wpc.ProcessorImpl, returning RELEASE_6.
          warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.wpc.ProcessorImpl' less than -source '1.7'
          warning: Supported source version 'RELEASE_6' from annotation processor 'org.jvnet.hudson.annotation_indexer.AnnotationProcessorImpl' less than -source '1.7'
          warning: Supported source version 'RELEASE_6' from annotation processor 'net.java.sezpoz.impl.Indexer6' less than -source '1.7'
          Note: org.jenkinsci.plugins.HelloWorldBuilder.DescriptorImpl indexed under hudson.Extension
          10 warnings
          :compileGroovy
          :processResources
          :classes
          :generate-test-hpl
          :compileTestJava UP-TO-DATE
          :compileTestGroovy
          Deprecated: relying on packaging to define the extension of the main artifact is deprecated, and will not be supported in a future version of Gradle.
          Download http://repo1.maven.org/maven2/org/jsoup/jsoup/1.7.1/jsoup-1.7.1.pom

          FAILURE: Build failed with an exception.

          * What went wrong:
          Could not resolve all dependencies for configuration ':testCompile'.
          > Could not find group:org.tmatesoft.sqljet, module:sqljet, version:1.1.0.
            Required by:
                org.jenkins-ci.plugins:test2:0.0.1-SNAPSHOT > org.jenkins-ci.main:jenkins-test-harness:1.534 > org.jenkins-ci.plugins:subversion:1.45 > org.jenkins-ci.svnkit:svnkit:1.7.6-jenkins-1
          > Could not find group:de.regnis.q.sequence, module:sequence-library, version:1.0.1.
            Required by:
                org.jenkins-ci.plugins:test2:0.0.1-SNAPSHOT > org.jenkins-ci.main:jenkins-test-harness:1.534 > org.jenkins-ci.plugins:subversion:1.45 > org.jenkins-ci.svnkit:svnkit:1.7.6-jenkins-1


          I tried clearing the gradle cache and retrying and got the same error
          Environment linux linux
          OpenJDK Runtime Environment (IcedTea6 1.12.6) (6b27-1.12.6-1ubuntu0.12.04.2)
          OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
          Labels gradle groovy plugin
          jeremym Jeremy Marshall made changes -
          Description create a new gradle/groovy plugin

          gent --name=<proj> kiy0taka/jenkins-plugin
          cd <proj>
          ./gradlew server

          change the coreVersion to 1.534

          run ./gradlew clean test

          this is the error

          XXXXXXXXXXX~/java/test2$ ./gradlew clean test
          :clean
          :localizer
          :stapler
          :compileJava
          warning: Supported source version 'RELEASE_6' from annotation processor 'jenkins.PluginSubtypeMarker' less than -source '1.7'
          warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.jsr269.ConstructorProcessor' less than -source '1.7'
          warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.jsr269.ExportedBeanAnnotationProcessor' less than -source '1.7'
          warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.jsr269.QueryParameterAnnotationProcessor' less than -source '1.7'
          warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.jsr269.RequirePOSTAnnotationProcessor' less than -source '1.7'
          warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.jsr269.WebMethodAnnotationProcessor' less than -source '1.7'
          warning: No SupportedSourceVersion annotation found on org.kohsuke.wpc.ProcessorImpl, returning RELEASE_6.
          warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.wpc.ProcessorImpl' less than -source '1.7'
          warning: Supported source version 'RELEASE_6' from annotation processor 'org.jvnet.hudson.annotation_indexer.AnnotationProcessorImpl' less than -source '1.7'
          warning: Supported source version 'RELEASE_6' from annotation processor 'net.java.sezpoz.impl.Indexer6' less than -source '1.7'
          Note: org.jenkinsci.plugins.HelloWorldBuilder.DescriptorImpl indexed under hudson.Extension
          10 warnings
          :compileGroovy
          :processResources
          :classes
          :generate-test-hpl
          :compileTestJava UP-TO-DATE
          :compileTestGroovy
          Deprecated: relying on packaging to define the extension of the main artifact is deprecated, and will not be supported in a future version of Gradle.
          Download http://repo1.maven.org/maven2/org/jsoup/jsoup/1.7.1/jsoup-1.7.1.pom

          FAILURE: Build failed with an exception.

          * What went wrong:
          Could not resolve all dependencies for configuration ':testCompile'.
          > Could not find group:org.tmatesoft.sqljet, module:sqljet, version:1.1.0.
            Required by:
                org.jenkins-ci.plugins:test2:0.0.1-SNAPSHOT > org.jenkins-ci.main:jenkins-test-harness:1.534 > org.jenkins-ci.plugins:subversion:1.45 > org.jenkins-ci.svnkit:svnkit:1.7.6-jenkins-1
          > Could not find group:de.regnis.q.sequence, module:sequence-library, version:1.0.1.
            Required by:
                org.jenkins-ci.plugins:test2:0.0.1-SNAPSHOT > org.jenkins-ci.main:jenkins-test-harness:1.534 > org.jenkins-ci.plugins:subversion:1.45 > org.jenkins-ci.svnkit:svnkit:1.7.6-jenkins-1


          I tried clearing the gradle cache and retrying and got the same error
          create a new gradle/groovy plugin

          gent --name=<proj> kiy0taka/jenkins-plugin
          cd <proj>
          ./gradlew server

          change the coreVersion to 1.534

          run ./gradlew clean test

          this is the error

          {quote}
          XXXXXXXXXXX~/java/test2$ ./gradlew clean test
          :clean
          :localizer
          :stapler
          :compileJava
          warning: Supported source version 'RELEASE_6' from annotation processor 'jenkins.PluginSubtypeMarker' less than -source '1.7'
          warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.jsr269.ConstructorProcessor' less than -source '1.7'
          warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.jsr269.ExportedBeanAnnotationProcessor' less than -source '1.7'
          warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.jsr269.QueryParameterAnnotationProcessor' less than -source '1.7'
          warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.jsr269.RequirePOSTAnnotationProcessor' less than -source '1.7'
          warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.jsr269.WebMethodAnnotationProcessor' less than -source '1.7'
          warning: No SupportedSourceVersion annotation found on org.kohsuke.wpc.ProcessorImpl, returning RELEASE_6.
          warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.wpc.ProcessorImpl' less than -source '1.7'
          warning: Supported source version 'RELEASE_6' from annotation processor 'org.jvnet.hudson.annotation_indexer.AnnotationProcessorImpl' less than -source '1.7'
          warning: Supported source version 'RELEASE_6' from annotation processor 'net.java.sezpoz.impl.Indexer6' less than -source '1.7'
          Note: org.jenkinsci.plugins.HelloWorldBuilder.DescriptorImpl indexed under hudson.Extension
          10 warnings
          :compileGroovy
          :processResources
          :classes
          :generate-test-hpl
          :compileTestJava UP-TO-DATE
          :compileTestGroovy
          Deprecated: relying on packaging to define the extension of the main artifact is deprecated, and will not be supported in a future version of Gradle.
          Download http://repo1.maven.org/maven2/org/jsoup/jsoup/1.7.1/jsoup-1.7.1.pom

          FAILURE: Build failed with an exception.

          * What went wrong:
          Could not resolve all dependencies for configuration ':testCompile'.
          > Could not find group:org.tmatesoft.sqljet, module:sqljet, version:1.1.0.
            Required by:
                org.jenkins-ci.plugins:test2:0.0.1-SNAPSHOT > org.jenkins-ci.main:jenkins-test-harness:1.534 > org.jenkins-ci.plugins:subversion:1.45 > org.jenkins-ci.svnkit:svnkit:1.7.6-jenkins-1
          > Could not find group:de.regnis.q.sequence, module:sequence-library, version:1.0.1.
            Required by:
                org.jenkins-ci.plugins:test2:0.0.1-SNAPSHOT > org.jenkins-ci.main:jenkins-test-harness:1.534 > org.jenkins-ci.plugins:subversion:1.45 > org.jenkins-ci.svnkit:svnkit:1.7.6-jenkins-1
          {quote}

          I tried clearing the gradle cache and retrying and got the same error
          daspilker Daniel Spilker made changes -
          Assignee abayer [ abayer ] Daniel Spilker [ daspilker ]

          The problem is that the Gradle JPI plugin sets up the build to use http://repo.jenkins-ci.org/releases/. But the Jenkins Maven Parent POM (org.jenkins-ci.main:pom) uses http://repo.jenkins-ci.org/public/ which contains more artifacts. So the Gradle build does not see many artifacts which are neither in Maven Central nor in the Jenkins releases repo.

          Pull request with a fix: https://github.com/jenkinsci/gradle-jpi-plugin/pull/13/files

          daspilker Daniel Spilker added a comment - The problem is that the Gradle JPI plugin sets up the build to use http://repo.jenkins-ci.org/releases/ . But the Jenkins Maven Parent POM (org.jenkins-ci.main:pom) uses http://repo.jenkins-ci.org/public/ which contains more artifacts. So the Gradle build does not see many artifacts which are neither in Maven Central nor in the Jenkins releases repo. Pull request with a fix: https://github.com/jenkinsci/gradle-jpi-plugin/pull/13/files
          daspilker Daniel Spilker made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]

          Fixed in 0.6.0.

          daspilker Daniel Spilker added a comment - Fixed in 0.6.0.
          daspilker Daniel Spilker made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 151463 ] JNJira + In-Review [ 207015 ]

          People

            daspilker Daniel Spilker
            jeremym Jeremy Marshall
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: