+ add automatic property expansion in manifest
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)"
|
||||
|
||||
Reference in New Issue
Block a user