Here is one way to achieve what you want:
subprojects.each { subproject ->
evaluationDependsOn(subproject.path)
}
task myjar(type: Jar, dependsOn: subprojects.assemble) {
baseName = 'fatjar'
subprojects.each { subproject ->
from subproject.configurations.archives.allArtifactFiles.collect {
zipTree(it) }
}
}
--
Peter Niederwieser
Developer, Gradle
http://www.gradle.org
Trainer & Consultant, Gradleware
http://www.gradleware.com
Creator, Spock Framework
http://spockframework.org
--
View this message in context:
http://gradle.1045684.n5.nabble.com/Creating-FatJar-of-multi-project-artifact-contents-from-root-project-tp4309981p4310517.html
Sent from the gradle-user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email