Skip to content

Instantly share code, notes, and snippets.

@brucetoo
Last active April 5, 2016 06:56
Show Gist options
  • Save brucetoo/a94b46f412df14539c63375d082010b8 to your computer and use it in GitHub Desktop.
Save brucetoo/a94b46f412df14539c63375d082010b8 to your computer and use it in GitHub Desktop.
gradle导出jar包
task buildJar(type: Copy){
//先删除以前的jar包
delete 'build/libs/***.jar'
from('build/intermediates/bundles/release/')
into('build/libs/')
include('classes.jar')
rename ('classes.jar', '***.jar')
}
//
buildJar.dependsOn(build)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment