integrate pom generation

This commit is contained in:
Andy Clement
2014-01-15 15:39:32 -08:00
parent 4dd8e59c1c
commit 7b16245238

View File

@@ -13,8 +13,6 @@ task writeNewPom << {
distribution 'repo'
}
}
dependencies {
}
}
}.writeTo("$buildDir/pom.xml");
}
@@ -34,10 +32,10 @@ task wrapper(type: Wrapper) {
dependencies {
tools 'com.googlecode.jarjar:jarjar:1.3'
testCompileOnly 'asm:asm:3.2'
testCompileOnly 'asm:asm-tree:3.2'
compile 'asm:asm:3.2'
compile 'asm:asm-tree:3.2'
testCompileOnly 'junit:junit:4.11'
testCompile 'junit:junit:4.11'
testCompileOnly files("../testdata-groovy/groovy-1.8.2.jar")
testCompileOnly project(':testdata')
@@ -79,7 +77,7 @@ task agentSourcesJar(type: Jar, dependsOn:classes) {
from sourceSets.main.allSource
}
task agentjar(type: Jar, dependsOn: jar) {
task agentjar(type: Jar, dependsOn: [jar,writeNewPom]) {
manifest {
from('src/main/java/META-INF/MANIFEST.MF') {
eachEntry { details ->
@@ -111,9 +109,7 @@ task agentjar(type: Jar, dependsOn: jar) {
// add the jars as artifacts
artifacts {
archives sourcesJar
archives agentjar
archives agentSourcesJar
}