Mercurial > public > develkit
comparison init20.gradle @ 216:b628d49d2891
DEP-11: change name of lock file for release branch. update release script to depend on new resolution and dependency locking
author | smith@nwoca.org |
---|---|
date | Wed, 29 Jun 2016 13:57:17 +0100 |
parents | 5bebb590b30e |
children | efa545c6dd65 |
comparison
equal
deleted
inserted
replaced
215:5bebb590b30e | 216:b628d49d2891 |
---|---|
225 } | 225 } |
226 | 226 |
227 allprojects { | 227 allprojects { |
228 | 228 |
229 apply plugin: nebula.plugin.dependencylock.DependencyLockPlugin | 229 apply plugin: nebula.plugin.dependencylock.DependencyLockPlugin |
230 | 230 |
231 dependencyLock { | |
232 globalLockFile = gradle.branch.isRelease() ? 'release.lock' : 'global.lock' | |
233 } | |
234 | |
231 configurations.all { | 235 configurations.all { |
232 resolutionStrategy.eachDependency { DependencyResolveDetails details -> | 236 resolutionStrategy.eachDependency { DependencyResolveDetails details -> |
233 if (details.requested.group == 'org.ssdt_ohio' && !details.requested.version ) { | 237 if (details.requested.group == 'org.ssdt_ohio' && !details.requested.version ) { |
234 details.useVersion( "latest.${gradle.branch.defaultDependencyStatus}" ) | 238 details.useVersion( "latest.${gradle.branch.defaultDependencyStatus}" ) |
235 } | 239 } |
504 }''') | 508 }''') |
505 if (developerPrivate['deploy.mode']) { | 509 if (developerPrivate['deploy.mode']) { |
506 environment.put('deploy.mode', developerPrivate['deploy.mode']) | 510 environment.put('deploy.mode', developerPrivate['deploy.mode']) |
507 } | 511 } |
508 | 512 |
513 environment.put('branchInfo',gradle.branch) | |
514 environment.put('branchVersion',gradle.branch.version.toString()) | |
509 def environments = [] | 515 def environments = [] |
510 gradle.ext.environment = environment | 516 gradle.ext.environment = environment |
511 file('.').listFiles().findAll { it.name ==~ /^environment.*\.groovy$/ }.sort { it.name }.each { envFile -> | 517 file('.').listFiles().findAll { it.name ==~ /^environment.*\.groovy$/ }.sort { it.name }.each { envFile -> |
512 def envName = envFile.name - '.groovy' | 518 def envName = envFile.name - '.groovy' |
513 def privateFile = file("private" + envName - "environment" + ".groovy") | 519 def privateFile = file("private" + envName - "environment" + ".groovy") |