Skip to content

Commit

Permalink
fix junit and spock dependency exclusions
Browse files Browse the repository at this point in the history
  • Loading branch information
lhotari committed Feb 6, 2015
1 parent c7f91f4 commit a9f0530
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
6 changes: 5 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,11 @@ subprojects { project ->
dependencies {
compile groovyDependency

testCompile("org.codehaus.groovy:groovy-test:${groovyVersion}")
testCompile "org.codehaus.groovy:groovy-test:${groovyVersion}", {
exclude group:'junit', module: 'junit'
exclude group:'org.codehaus.groovy', module: 'groovy'
exclude group:'org.hamcrest', module: 'hamcrest-core'
}

if (project.name != "grails-docs") {
// Logging
Expand Down
2 changes: 2 additions & 0 deletions grails-docs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ dependencies {
testCompile "junit:junit:$junitVersion"
testCompile("org.spockframework:spock-core:${spockVersion}") {
transitive = false
exclude group:'junit', module: 'junit-dep'
exclude group:'org.codehaus.groovy', module: 'groovy-all'
}
}

Expand Down
3 changes: 3 additions & 0 deletions grails-plugin-testing/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@ dependencies {
}
compile "org.springframework.boot:spring-boot-starter-test:$springBootVersion"
compile("org.spockframework:spock-spring:${spockVersion}") {
transitive = false
exclude group:'junit', module: 'junit-dep'
exclude group:'org.codehaus.groovy', module: 'groovy-all'
}
compile("org.spockframework:spock-core:${spockVersion}") {
transitive = false
exclude group:'junit', module: 'junit-dep'
exclude group:'org.codehaus.groovy', module: 'groovy-all'
}
Expand Down
8 changes: 7 additions & 1 deletion grails-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,17 @@ dependencies {
compile "org.springframework:spring-tx:${springVersion}"

// Testing
compile "org.codehaus.groovy:groovy-test:$groovyVersion"
compile "org.codehaus.groovy:groovy-test:$groovyVersion", {
transitive = false
exclude group:'junit', module: 'junit'
exclude group:'org.codehaus.groovy', module: 'groovy'
exclude group:'org.hamcrest', module: 'hamcrest-core'
}
compile "junit:junit:${junitVersion}", {
exclude group:'org.hamcrest', module: 'hamcrest-core'
}
compile("org.spockframework:spock-core:${spockVersion}") {
transitive = false
exclude group:'junit', module: 'junit-dep'
exclude group:'org.codehaus.groovy', module: 'groovy-all'
}
Expand Down

0 comments on commit a9f0530

Please sign in to comment.