Gradle v2.9(我知道是旧的,但是我们正在升级为并行项目)。现在...
我在论坛上查看了类似的帖子,但答案对我不起作用。
我有这个build.gradle文件
Dim colFiles as Collection
Set colFiles = GetMatches("C:\something\", "*RENS_RES*.xlsx")
尝试构建项目时出现此构建错误
apply plugin: 'java'
version=parent.rest_common_version
jar {
manifest {
attributes 'artifactId': artifactId,
'groupId': project.group,
'version': project.version
}
baseName artifactId
}
eclipse {
project {
natures 'org.springsource.ide.eclipse.gradle.core.nature',
'org.eclipse.jdt.core.javanature'
}
}
publishing {
publications {
restCommon(MavenPublication){
artifactId artifactId
from components.java
}
}
}
configurations.compile.exclude group: 'velocity', module: 'velocity'
configurations.compile.exclude group: 'javax.servlet', module: 'servlet-api'
configurations.compile.exclude group: 'org.eclipse.jetty.orbit', module: 'javax.servlet'
configurations.compile.exclude group: 'org.springframework.boot'
// this is line 34
configurations.all*.exclude group: 'com.vaadin.external.google', module: 'android-json'
configurations.compile.exclude group: 'bouncycastle'
configurations.compile.exclude group: 'org.bouncycastle', module: 'bcpkix-jdk15on'
configurations.compile.exclude group: 'org.bouncycastle', module: 'bcmail-jdk15on'
configurations.compile.exclude group: 'org.bouncycastle', module: 'bcprov-jdk15'
dependencies {
// compile project(':zift-core')
// compile project(':ZiftRESTClient')
compile "com.zift:rest-client:$ziftrestclient_version"
compile 'javax.servlet:javax.servlet-api:3.1.0'
compile('org.apache.tika:tika-parsers:1.11'){
exclude group: "org.ow2.asm", module: "asm"
exclude group: "org.bouncycastle", module: "bcprov-jdk15on"
exclude group: "org.bouncycastle", module: "bcmail-jdk15on"
exclude group: "c3p0", module: "c3p0"
}
// These are the versions of Bouncycastle JARs needed by ZiftSAML
compile ("org.bouncycastle:bcmail-jdk15:1.38") {
force = true
}
compile ("org.bouncycastle:bctsp-jdk15:1.38") {
force = true
}
compile 'org.slf4j:slf4j-api:1.7.25'
testCompile "com.zift.test:zift-test-util:1.0.53"
testCompile "org.codehaus.groovy:groovy:2.4.15"
testCompile "org.codehaus.groovy:groovy-nio:2.4.15"
testCompile "org.codehaus.groovy:groovy-json:2.4.15"
testCompile "org.codehaus.groovy:groovy-xml:2.4.15"
// For REST Stub generator
testCompile 'commons-cli:commons-cli:1.2'
testCompile 'org.json:json:20140107'
testCompile 'org.reflections:reflections:0.9.10'
testCompile 'org.apache.velocity:velocity:1.7'
testCompile 'org.easymock:easymock:3.+'
}
有什么想法吗?