Skip to content

Commit c6dd8aa

Browse files
author
R. Tyler Croy
committed
Reduce duplicate declarations of the spock dependency
1 parent 2451edf commit c6dd8aa

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

build.gradle

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,16 @@ dependencies {
2626
compile gradleApi()
2727
compile localGroovy()
2828

29-
3029
testCompile 'junit:junit:4.+'
31-
testCompile ("org.spockframework:spock-core:0.7-groovy-${gradle.gradleVersion.startsWith('1.')?'1.8':'2.0'}") {
30+
31+
String spockVersion = "org.spockframework:spock-core:0.7-groovy-${gradle.gradleVersion.startsWith('1.')?'1.8':'2.0'}"
32+
33+
testCompile (spockVersion) {
3234
exclude module : 'groovy-all'
3335
}
34-
integrationTestCompile ("org.spockframework:spock-core:0.7-groovy-${gradle.gradleVersion.startsWith('1.')?'1.8':'2.0'}") {
36+
integrationTestCompile (spockVersion) {
3537
exclude module : 'groovy-all'
3638
}
37-
3839
}
3940

4041
test {

0 commit comments

Comments
 (0)