fixed build order in build.gradle
authorYaniv Rodenski <roadan@gmail.com>
Thu, 19 Apr 2018 11:43:50 +0000 (21:43 +1000)
committerYaniv Rodenski <roadan@gmail.com>
Thu, 19 Apr 2018 11:43:50 +0000 (21:43 +1000)
build.gradle
executor/build.gradle
leader/build.gradle

index 7bcecd4..820865b 100644 (file)
@@ -26,7 +26,6 @@ project(':common')
 project(':executor')
 
 task buildHomeDir() {
-    dependsOn subprojects.collect { getTasksByName('shadowJar', true) }
     dependsOn subprojects.collect { getTasksByName('copyToHome', true) }
 }
 
@@ -48,4 +47,4 @@ task buildDistribution() {
 
 tasks.withType(Test)  {
     maxParallelForks = 1
-}
+}
\ No newline at end of file
index a173c58..21bc2b0 100644 (file)
@@ -112,6 +112,7 @@ test {
 }
 
 task copyToHome(type: Copy) {
+    dependsOn shadowJar
     from 'build/libs'
     into '../build/amaterasu/dist'
     from 'build/resources/main'
index 8595d02..27bedf3 100644 (file)
@@ -102,6 +102,7 @@ task copyToHomeRoot(type: Copy) {
 }
 
 task copyToHomeBin(type: Copy) {
+    dependsOn shadowJar
     from 'build/libs'
     into '../build/amaterasu/bin'
 }