integrate pom generation
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user