polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paulmer...@apache.org
Subject [2/2] zest-qi4j git commit: Build: always resolve SLF4J to the same version
Date Fri, 10 Jul 2015 13:19:29 GMT
Build: always resolve SLF4J to the same version

Using Gradle ResolutionStrategy DSL

See https://docs.gradle.org/current/userguide/dependency_management.html#sec:dependency_resolve_rules
See https://docs.gradle.org/current/dsl/org.gradle.api.artifacts.ResolutionStrategy.html


Project: http://git-wip-us.apache.org/repos/asf/zest-qi4j/repo
Commit: http://git-wip-us.apache.org/repos/asf/zest-qi4j/commit/2088779a
Tree: http://git-wip-us.apache.org/repos/asf/zest-qi4j/tree/2088779a
Diff: http://git-wip-us.apache.org/repos/asf/zest-qi4j/diff/2088779a

Branch: refs/heads/develop
Commit: 2088779a221803ca89ddb159319d142f8ae8b6e1
Parents: cdfebfd
Author: Paul Merlin <paulmerlin@apache.org>
Authored: Fri Jul 10 15:19:02 2015 +0200
Committer: Paul Merlin <paulmerlin@apache.org>
Committed: Fri Jul 10 15:19:02 2015 +0200

----------------------------------------------------------------------
 libraries.gradle | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/zest-qi4j/blob/2088779a/libraries.gradle
----------------------------------------------------------------------
diff --git a/libraries.gradle b/libraries.gradle
index dbc55a4..ccb5b14 100644
--- a/libraries.gradle
+++ b/libraries.gradle
@@ -272,6 +272,10 @@ allprojects {
     resolutionStrategy {
       dependencySubstitution {
         eachModule { ModuleDependencySubstitution details ->
+          // Always resolve SLF4J to the same version
+          if( details.requested.group == 'org.slf4j' ) {
+            details.useTarget group: details.requested.group, name: details.requested.module,
version: slf4jVersion
+          }
           // woodstox:wstx-asl is broken (no pom), use org.codehaus.woodstox:wstx-asl instead
           if( details.requested.group == 'woodstox' && details.requested.module ==
'wstx-asl' ) {
             details.useTarget group: 'org.codehaus.woodstox', name: 'wstx-asl', version:
details.requested.version


Mime
View raw message