+ add automatic property expansion in manifest

This commit is contained in:
Costin Leau
2011-02-08 11:57:02 +02:00
parent 65db11bbe1
commit b2e0d77156
3 changed files with 7 additions and 11 deletions

View File

@@ -14,6 +14,7 @@ subprojects {
// all core projects should be OSGi-compliant bundles
// add the bundlor task to ensure proper manifests
apply from: "$rootDir/gradle/bundlor.gradle"
project.checkForProps = { Map args ->
requiredPropSets.add args
}
@@ -58,10 +59,6 @@ subprojects {
testCompile "org.springframework:spring-test:$springVersion"
testCompile "org.mockito:mockito-all:$mockitoVersion"
}
test {
testReport = false
}
}
configurations {

View File

@@ -80,10 +80,9 @@ task bundlor(dependsOn: compileJava) {
// execute the ant task, and write out the $manifest file
ant.bundlor(inputPath: sourceSets.main.classesDir,
outputPath: bundlorDir, manifestTemplatePath: template) {
property(name: 'version', value: project.version)
//property(name: 'spring.range', value: project.springRange)
//property(name: 'jedis.range', value: project.jedisRange)
//property(name: 'jackson.range', value: project.jacksonRange)
for (p in project.properties) {
property(name: p.key, value: p.value)
}
}
}
}

View File

@@ -1,3 +1,3 @@
springRange = "[3.0.0, 4.0.0)"
jedisRange = "[1.0.0,2.0.0)"
jacksonRange = "[1.6, 2.0.0)"
spring.range = "[3.0.0, 4.0.0)"
jedis.range = "[1.5.2, 2.0.0)"
jackson.range = "[1.6, 2.0.0)"