Mercurial > public > develkit
comparison init.gradle @ 168:7f023317034b
add helper to normalize springframework to non-osgi jars
author | Dave Smith <smith@nwoca.org> |
---|---|
date | Wed, 29 Jan 2014 16:33:39 +0000 |
parents | 9947c2c8ff44 |
children | c4b7c8a11913 |
comparison
equal
deleted
inserted
replaced
167:e4b2a9443c65 | 168:7f023317034b |
---|---|
20 | 20 |
21 gradle.ext.hgRepositoryUrl = "" | 21 gradle.ext.hgRepositoryUrl = "" |
22 try { | 22 try { |
23 gradle.ext.hgRepositoryUrl = ("hg path".execute().text.split('=') ?: ['',''] )[1].trim() | 23 gradle.ext.hgRepositoryUrl = ("hg path".execute().text.split('=') ?: ['',''] )[1].trim() |
24 } catch (e) { } | 24 } catch (e) { } |
25 | |
26 def springModuleTranslator = ['spring-transaction':'spring-tx'].withDefault { it } | |
27 | |
28 gradle.ext.normalizeSpring = { DependencyResolveDetails details -> | |
29 if (details.requested.group == 'org.springframework') { | |
30 if (details.requested.name.startsWith ('org.springframework.' )) { | |
31 def shortName = springModuleTranslator[details.requested.name.replace('org.springframework.', 'spring-').replace('.','-')] | |
32 details.useTarget(group: 'org.springframework', name: shortName, version: details.requested.version) | |
33 } | |
34 } | |
35 } | |
25 | 36 |
26 gradle.ext.branchName = System.getenv('bamboo_planRepository_branch') | 37 gradle.ext.branchName = System.getenv('bamboo_planRepository_branch') |
27 gradle.ext.branchStream = "" | 38 gradle.ext.branchStream = "" |
28 | 39 |
29 if (!gradle.branchName ) { | 40 if (!gradle.branchName ) { |