diff init20.gradle @ 231:ce34e62224cf

update set dependencyLock plugin to also lock transitives. provide way of overriding common version
author smith@nwoca.org
date Thu, 08 Sep 2016 17:10:43 +0100
parents e902c107f5db
children 47535c8358ce
line wrap: on
line diff
--- a/init20.gradle	Fri Jul 29 19:13:59 2016 +0100
+++ b/init20.gradle	Thu Sep 08 17:10:43 2016 +0100
@@ -231,6 +231,7 @@
 
     dependencyLock {
         globalLockFile =  gradle.branch.isRelease() ? 'release.lock' : 'global.lock'
+        includeTransitives = true
     }
 
     configurations.all {
@@ -241,6 +242,11 @@
             if (details.requested.version == 'default') {
 				details.useVersion("latest.${gradle.branch.defaultDependencyStatus}" )
             }
+            if (project.hasProperty("overrideCommon")) {
+               if (details.requested.group == 'org.ssdt_ohio' && details.requested.name.contains('ssdt.common.')) {
+                   details.useVersion(project.overrideCommon)
+               }
+            }
         }
     }