I want to have two projects: one which generates static resources from GWT compiler and puts output into a JAR and a second project which consumes the JAR and places it’s content exploded into a new location within the second projects JAR.
I almost got it working but I’m getting the JAR file here and not the CONTENTS of the JAR file. I realize I need to use zipTree() but I can’t figure out the syntax (I included a second example ZIP file below that does roughly what I want that works):
Project A:
jar {
from gwtCompile
}
Project B:
jar {
dependsOn ":vaadin:VaadinWidgetset:gwtCompile", 'generateCss'
into('META-INF/resources/VAADIN/widgetsets') {
from project(':vaadin:VaadinWidgetset').jar.outputs.files
}
into('META-INF/resources') {
from zipTree('lib/font-awesome-3.2.1.zip')
}
}
I tried
from zipTree(project(':vaadin:VaadinWidgetset').jar.outputs.files.singleFile)
but that just results in:
The specified zip file ZIP ‘X:\workspaces\PQM\vaadin7\vaadin\VaadinWidgetset\build\libs\VaadinWidgetset-4.0.0-SNAPSHOT.jar’ does not exist and will be silently ignored. This behaviour has been deprecated and is scheduled to be removed in Gradle 2.0
Any ideas?
Thanks