I’m getting this during “gradle build” with Gradle 1.6:
Unable to obtain resource from C:\Users\ask\.gradle\caches\artifacts-24\filestore\javax.xml\saaj-api.3\pom\c1a67ab98154ee9a2068b5d3c8b7dbfe120441d\s
aaj-api-1.3.pom: java.util.zip.ZipException: error in opening zip file
Unable to obtain resource from C:\Users\ask\.gradle\caches\artifacts-24\filestore\javax.xml\saaj-api.3\pom\c1a67ab98154ee9a2068b5d3c8b7dbfe120441d\s
aaj-api-1.3.pom: java.util.zip.ZipException: error in opening zip file
:webui:widgetset FAILED
I see this dependency in one of my build.gradle files:
compile(group: ‘javax.xml’, name: ‘saaj-api’, version: ‘1.3’, ext: ‘pom’) {
transitive = true
}
and here’s my webui/build.gradle script:
/*
Can also use this Vaadin plugin. See https://github.com/johndevs/gradle-vaadin-plugin#readme
apply from: 'http://plugins.jasoft.fi/vaadin.plugin'
vaadin {
version = vaadinVersion
widgetset = 'com.taskadapter.webui.widgetset.Vaadin1Widgetset'
}
*/
apply plugin: 'war'
dependencies {
compile "org.apache.httpcomponents:httpclient:$httpClientVersion"
compile "org.apache.httpcomponents:httpcore:$httpClientVersion"
compile "com.vaadin:vaadin-server:$vaadinVersion"
compile "com.vaadin:vaadin-client-compiled:$vaadinVersion"
compile "com.vaadin:vaadin-themes:$vaadinVersion"
compile 'org.vaadin.addons:googleanalyticstracker:2.0.0'
// for widgetset compilation
compile "com.vaadin:vaadin-client-compiler:$vaadinVersion"
compile libraries.slf4j
compile project(":common")
compile project(":mainapp")
compile project(":webshared")
compile project(":connectors:connector-msp")
compile project(":connectors-editors:basecamp-editor")
compile project(":connectors-editors:github-editor")
compile project(":connectors-editors:jira-editor")
compile project(":connectors-editors:mantis-editor")
compile project(":connectors-editors:msp-editor")
compile project(":connectors-editors:redmine-editor")
testCompile project(":test-utilities")
}
dependencies{
compile group:'com.google.gwt',
name:'gwt-user',
version:'2.5.0'
compile group:'com.google.gwt',
name:'gwt-dev',
version:'2.5.0'
}
ext {
webAppDirName = "src/main/webapp"
vaadinDir = webAppDirName + '/VAADIN'
gwtBuildDir = vaadinDir + '/widgetsets'
widgetsetClass = 'com.taskadapter.webui.widgetset.Vaadin1Widgetset'
}
task widgetset << {
// Create widgetset directory (if needed)
def created = (new File(gwtBuildDir)).mkdirs()
// Compile
ant.java(classname: 'com.google.gwt.dev.Compiler', failOnError: 'yes', /*fork: 'true', */ maxmemory: '1000m')
{
classpath {
pathElement(path: configurations.compile.asPath)
pathElement(path: sourceSets.main.runtimeClasspath.asPath)
sourceSets.main.java.srcDirs.each {
pathelement(location: it.absolutePath)
}
}
arg(line: '-war ' + gwtBuildDir)
arg(line: '-logLevel INFO')
arg(line: '-style OBF')
arg(line: '-localWorkers 2')
arg(line: widgetsetClass)
//
jvmarg(value: '-Djava.awt.headless=true')
//
jvmarg(value: '-XX:MaxPermSize=256M')
//
jvmarg(value: '-Xmx500M')
}
}
// Require widgetset compilation before WAR is built
war.dependsOn widgetset