Skip to content

Commit

Permalink
Fix broken build due to bad Spock version
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Jun 23, 2014
1 parent 4117109 commit 69d8ec3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -8,3 +8,5 @@ cobertura.ser
build
out
target
.classpath
.project
16 changes: 12 additions & 4 deletions subprojects/gradle-griffon-plugin/gradle-griffon-plugin.gradle
Expand Up @@ -16,11 +16,19 @@

apply plugin: 'groovy'

/*
* This is needed for gradle 1.12, because it still uses groovy 1.8.
* TODO: Remove when migrated to gradle 2.0, which uses groovy 2.3
*/
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
if (details.requested.group == 'org.spockframework' && details.requested.name == 'spock-core') {
details.useVersion '0.7-groovy-1.8'
}
}
}

dependencies {
compile gradleApi()
testCompile('org.spockframework:spock-core:0.7-groovy-1.8') {
exclude group: 'org.codehaus.groovy', module: 'groovy-all'
exclude group: 'org.hamcrest', module: 'hamcrest-core'
}
testCompile 'cglib:cglib-nodep:2.2.2'
}

0 comments on commit 69d8ec3

Please sign in to comment.