Skip to content

Commit 1552911

Browse files
committed
Make gradle parallel builds work
1 parent c0d1b97 commit 1552911

File tree

3 files changed

+7
-13
lines changed

3 files changed

+7
-13
lines changed

build.gradle

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
}
66
// buildscript dependencies can be used for build time plugins.
77
dependencies {
8-
classpath "com.github.jengelman.gradle.plugins:shadow:1.2.3"
8+
classpath "com.github.jengelman.gradle.plugins:shadow:2.0.4"
99
}
1010
}
1111

@@ -34,7 +34,7 @@ allprojects {
3434
}
3535
}
3636

37-
repositories {
37+
repositories {
3838
mavenLocal()
3939
mavenCentral()
4040
maven { url 'https://jitpack.io' } // This allows us to use jitpack projects
@@ -51,7 +51,7 @@ allprojects {
5151
force('io.reactivex:rxjava:1.1.2')
5252
force('com.google.code.gson:gson:2.6.2')
5353
force('commons-logging:commons-logging:1.2')
54-
54+
5555
// cache dynamic versions for 10 minutes
5656
cacheDynamicVersionsFor 10*60, 'seconds'
5757
// don't cache changing modules at all
@@ -77,12 +77,4 @@ allprojects {
7777
}
7878
// Maven Publish End
7979
}
80-
81-
subprojects {
82-
apply plugin: 'com.github.johnrengelman.shadow'
83-
84-
shadowJar {
85-
classifier = null
86-
}
87-
}
8880
// {{end:build}}

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
org.gradle.configureondemand=true
2-
//org.gradle.parallel=true
1+
//org.gradle.configureondemand=true
2+
org.gradle.parallel=true

stubbornjava-webapp/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
// {{start:dependencies}}
2+
apply plugin: 'com.github.johnrengelman.shadow'
3+
24
dependencies {
35
// Project reference
46
compile project(':stubbornjava-undertow')

0 commit comments

Comments
 (0)