Skip to content

Commit

Permalink
Use resolution strategy to enforce that groovy 2.3.7 is used by the :…
Browse files Browse the repository at this point in the history
…compatibility:groovy-2.3.7 subproject.
  • Loading branch information
erdi committed Feb 20, 2016
1 parent fe49e0a commit 80bb711
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions compatibility/groovy-2.3.7/groovy-2.3.7.gradle
@@ -1,18 +1,19 @@
apply plugin: "groovy"
apply plugin: "idea"

dependencies {
compile project(':module:geb-core'), {
exclude module: "groovy-all"
exclude module: "spock-core"
configurations.all {
resolutionStrategy.eachDependency { details ->
switch(details.requested.group) {
case 'org.spockframework':
details.useVersion '1.0-groovy-2.3'
break
case 'org.codehaus.groovy':
details.useVersion '2.3.7'
break
}
}
}

compile "org.codehaus.groovy:groovy-all:2.3.7"

testCompile "org.spockframework:spock-core:1.0-groovy-2.3"

testCompile project(':internal:test-support'), {
exclude module: "groovy-all"
exclude module: "spock-core"
}
dependencies {
testCompile project(':internal:test-support')
}

0 comments on commit 80bb711

Please sign in to comment.