YShinkarev

Untitled

Feb 19th, 2016
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. version = "1.0"
  2.  
  3. repositories {
  4. jcenter()
  5. }
  6.  
  7. dependencies {
  8. testCompile 'junit:junit:4.12'
  9. }
  10.  
  11. jar {
  12. manifest {
  13. attributes 'Main-Class': 'com.android.screenshot.AndroidScreenshot'
  14. }
  15. }
  16.  
  17. task copyjar << {
  18. def jarPath = System.getenv("MY_CMD") + "jar"
  19. println "Copy jar to folder: $jarPath"
  20. copy { from "$jar.archivePath" into "$jarPath" }
  21. }
  22.  
  23. task deletebin << {
  24. delete "bin"
  25. }
  26.  
  27. task publish(dependsOn: ['build', 'copyjar', 'clean', 'deletebin']) {
  28. copyjar.mustRunAfter build
  29. clean.mustRunAfter copyjar
  30. deletebin.mustRunAfter clean
  31. }
Advertisement
Add Comment
Please, Sign In to add comment