Skip to content

Instantly share code, notes, and snippets.

@foragerr
Created March 10, 2016 15:13
Show Gist options
  • Save foragerr/4d211b03ad0f71ac066b to your computer and use it in GitHub Desktop.
Save foragerr/4d211b03ad0f71ac066b to your computer and use it in GitHub Desktop.
Gradle tasks to customize jars
apply plugin: 'java'
task gen(type: Jar){
baseName = 'genJar'
with jar
}
task gen2(type: Jar){
baseName = 'gen2Jar'
from sourceSets.main.output
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment