Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Commit

Permalink
[#132] Globally replace groovy-* modules with groovy-all
Browse files Browse the repository at this point in the history
To prevent leaking out both groovy-[core,xml,json] and groovy-all.
  • Loading branch information
szpak committed Jan 5, 2015
1 parent d5d0653 commit 491d16f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ allprojects {
eachDependency { DependencyResolveDetails details ->
if (details.requested.group == 'org.slf4j') { details.useVersion '1.7.9' }
if (details.requested.group == 'com.fasterxml.jackson.core') { details.useVersion "2.4.4" }

// To prevent an accidental usage of groovy-all.jar and groovy.jar in different versions
// all modularized Groovy jars are replaced with groovy-all.jar by default.
if (details.requested.group == 'org.codehaus.groovy' && details.requested.name != "groovy-all") {
details.useTarget("org.codehaus.groovy:groovy-all:${details.requested.version}")
}
}
}
}
Expand All @@ -79,7 +85,7 @@ task addHashFile << {
}


configure(emptySubprojects) {
configure(emptySubprojects + rootProject) {
apply plugin: 'base'
}

Expand Down

0 comments on commit 491d16f

Please sign in to comment.