Last active
April 5, 2016 06:56
-
-
Save brucetoo/a94b46f412df14539c63375d082010b8 to your computer and use it in GitHub Desktop.
gradle导出jar包
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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