Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version = "1.0"
- repositories {
- jcenter()
- }
- dependencies {
- testCompile 'junit:junit:4.12'
- }
- jar {
- manifest {
- attributes 'Main-Class': 'com.android.screenshot.AndroidScreenshot'
- }
- }
- task copyjar << {
- def jarPath = System.getenv("MY_CMD") + "jar"
- println "Copy jar to folder: $jarPath"
- copy { from "$jar.archivePath" into "$jarPath" }
- }
- task deletebin << {
- delete "bin"
- }
- task publish(dependsOn: ['build', 'copyjar', 'clean', 'deletebin']) {
- copyjar.mustRunAfter build
- clean.mustRunAfter copyjar
- deletebin.mustRunAfter clean
- }
Advertisement
Add Comment
Please, Sign In to add comment