Mercurial > public > develkit
comparison init20.gradle @ 232:47535c8358ce
DEP-13: adjust init script to handle both 2.+ and 3.1. Disable sonar for 3.1+
author | smith@nwoca.org |
---|---|
date | Tue, 18 Oct 2016 18:29:04 +0100 |
parents | ce34e62224cf |
children | 400f9d8bbf5b |
comparison
equal
deleted
inserted
replaced
231:ce34e62224cf | 232:47535c8358ce |
---|---|
231 | 231 |
232 dependencyLock { | 232 dependencyLock { |
233 globalLockFile = gradle.branch.isRelease() ? 'release.lock' : 'global.lock' | 233 globalLockFile = gradle.branch.isRelease() ? 'release.lock' : 'global.lock' |
234 includeTransitives = true | 234 includeTransitives = true |
235 } | 235 } |
236 | 236 configurations.all { |
237 resolutionStrategy.cacheChangingModulesFor gradle.cacheTimeout, 'seconds' | |
238 resolutionStrategy.cacheDynamicVersionsFor gradle.cacheTimeout, 'seconds' | |
239 } | |
237 configurations.all { | 240 configurations.all { |
238 resolutionStrategy.eachDependency { DependencyResolveDetails details -> | 241 resolutionStrategy.eachDependency { DependencyResolveDetails details -> |
239 if (details.requested.group == 'org.ssdt_ohio' && !details.requested.version ) { | 242 if (details.requested.group == 'org.ssdt_ohio' && !details.requested.version ) { |
240 details.useVersion( "latest.${gradle.branch.defaultDependencyStatus}" ) | 243 details.useVersion( "latest.${gradle.branch.defaultDependencyStatus}" ) |
241 } | 244 } |
478 } | 481 } |
479 thisProject.version = fixupVersion | 482 thisProject.version = fixupVersion |
480 } | 483 } |
481 } | 484 } |
482 | 485 |
483 configurations.all { | |
484 resolutionStrategy.cacheChangingModulesFor gradle.cacheTimeout, 'seconds' | |
485 resolutionStrategy.cacheDynamicVersionsFor gradle.cacheTimeout, 'seconds' | |
486 } | |
487 repositories { | 486 repositories { |
488 | 487 |
489 if (!gradle.bambooBuild) { | 488 if (!gradle.bambooBuild) { |
490 ivy { | 489 ivy { |
491 name = 'local' | 490 name = 'local' |