-
Bug
-
Resolution: Fixed
-
Minor
-
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)
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.pomFAILURE: 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
[JENKINS-19942] gradle/groovy plugin cannot build test task
Description |
Original:
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 |
New:
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 | Original: linux |
New:
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 | New: gradle groovy plugin |
Description |
Original:
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 |
New:
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 |
Assignee | Original: Andrew Bayer [ abayer ] | New: Daniel Spilker [ daspilker ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Workflow | Original: JNJira [ 151463 ] | New: JNJira + In-Review [ 207015 ] |
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