【发布时间】:2019-03-07 12:51:06
【问题描述】:
我希望 tagoup jar 作为我的一个读取 html 的测试用例的依赖项。
在我的 build.gradle 中我做了这些更改
asciidoctorj {
version = '1.5.4'
}
repositories {
maven {
url "http://mvn-nexus.my.company:8081/nexus/content/groups/public/"
}
mavenCentral()
}
compile(
'org.codehaus.groovy:groovy-all:2.4.14',
'org.codehaus.groovy.modules.http-builder:http-builder:0.7',
'org.apache.httpcomponents:httpclient:4.5.2',
'org.apache.httpcomponents:httpmime:4.5.2',
'commons-cli:commons-cli:1.2',
'ant:ant:1.7.0',
'com.cloudbees:groovy-cps:1.19',
'org.codehaus.gpars:gpars:1.2.1'
)
testCompile(
'junit:junit:4.12',
'org.codehaus.groovy:groovy-all:2.4.14',
'org.spockframework:spock-core:1.1-groovy-2.4',
'org.mockito:mockito-core:2.12.0',
'com.athaydes:spock-reports:1.4.0',
'org.slf4j:slf4j-api:1.7.13',
'org.slf4j:slf4j-simple:1.7.13',
'com.lesfurets:jenkins-pipeline-unit:1.0',
'org.ccil.cowan.tagsoup:1.2.1'
)
varsCompile sourceSets.main.output
}
但是在构建此项目时,我的 jenkins 构建中出现以下错误
- 出了什么问题:
无法解析配置“:testCompileClasspath”的所有文件。
找不到 org.ccil.cowan.tagsoup:0.9.7:。 要求: 项目:
我错过了什么?
【问题讨论】:
标签: jenkins gradle build.gradle