diff --git a/springloaded/build.gradle b/springloaded/build.gradle index 317be47..7198029 100644 --- a/springloaded/build.gradle +++ b/springloaded/build.gradle @@ -7,7 +7,7 @@ sourceCompatibility = 1.5 targetCompatibility = 1.5 task writeNewPom << { - pom { + def pompom = pom { project { inceptionYear '2013' licenses { @@ -18,7 +18,12 @@ task writeNewPom << { } } } - }.writeTo("$buildDir/springloaded.pom"); + }; + // Remove junit and asm jar references + pompom.whenConfigured { p -> + p.dependencies.clear() + } + pompom.writeTo("$buildDir/springloaded.pom"); } compileJava { @@ -36,10 +41,6 @@ task wrapper(type: Wrapper) { dependencies { tools 'com.googlecode.jarjar:jarjar:1.3' -/* - compile 'asm:asm:3.2' - compile 'asm:asm-tree:3.2' -*/ compile 'org.ow2.asm:asm:5.0_BETA' compile 'org.ow2.asm:asm-tree:5.0_BETA'