Skip to content

Instantly share code, notes, and snippets.

@cbeams
Created August 16, 2011 17:22
Show Gist options
  • Save cbeams/1149600 to your computer and use it in GitHub Desktop.
Save cbeams/1149600 to your computer and use it in GitHub Desktop.
description = 'Spring ASM'
configurations { jj }
dependencies { jj 'com.googlecode.jarjar:jarjar:1.1' }
configurations { asm }
dependencies { asm 'asm:asm:2.2.3@jar', 'asm:asm-commons:2.2.3@jar' }
jar << {
project.ant {
taskdef name: "jarjar", classname: "com.tonicsystems.jarjar.JarJarTask", classpath: configurations.jj.asPath
jarjar(destfile: archivePath, index: "true", filesetmanifest: "merge") {
configurations.asm.each { jarfile ->
zipfileset(src: jarfile)
}
rule(pattern: 'org.objectweb.asm.**', result: 'org.springframework.asm.@1')
}
}
}
// TODO: integrate bundlor in jarjar routine
// TODO: create source jar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment