Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

places all built jar files into the 'dist' directory from all the sub…

…projects
  • Loading branch information...
commit 0910b21448dff083886182c7bf09e5f9954d4d94 1 parent 0e1ecf1
@graemerocher graemerocher authored
Showing with 12 additions and 4 deletions.
  1. +12 −4 gradle/assemble.gradle
View
16 gradle/assemble.gradle
@@ -1,6 +1,5 @@
import org.apache.tools.ant.filters.ReplaceTokens
-
dependencyCache = {
def cacheLocation = new File(gradle.gradleUserHomeDir, "cache")
copy {
@@ -23,11 +22,20 @@ dependencyCache = {
}
-task libs {
+task libs(dependsOn: getTasksByName("jar", true)) {
doFirst dependencyCache
destinationDir = 'dist'
- dependsOn { distJars.all }
+ doLast {
+ subprojects.each { project ->
+ copy {
+ from( project.libsDir ) {
+ includes "*-${version}.jar"
+ }
+ into 'dist'
+ }
+ }
+ }
}
@@ -98,7 +106,7 @@ distSpec = copySpec {
}
}
-task zipDist(type: Zip,dependsOn: getTasksByName("jar", true)) {
+task zipDist(type: Zip,dependsOn:libs) {
from distSpec
doFirst dependencyCache
}
Please sign in to comment.
Something went wrong with that request. Please try again.