Guest User

Untitled

a guest
Apr 13th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. task myzip(type: Zip) {
  2. doFirst {
  3. new File(buildDir, 'logs').mkdirs()
  4. }
  5. def fileName = "${jar.baseName}-${jar.version}"
  6. from projectDir into 'manager-service'
  7. include "conf/*"
  8. include "*.sh"
  9. exclude "conf/config-client"
  10. from buildDir into 'manager-service'
  11. include "logs/*"
  12. from file("$buildDir/libs")
  13. include "${fileName}.jar"
  14. archiveName "manager-service.zip"
  15. }
  16.  
  17. myzip.dependsOn(bootRepackage)
  18.  
  19. artifacts {archives myzip}
  20. build.dependsOn(myzip)
  21.  
  22. uploadArchives {
  23. repositories {
  24. apply plugin: 'maven'
  25. mavenDeployer {
  26. repository(url: System.getenv("NEXUSREPO")) {
  27. String username = System.getenv("NEXUS_SNAPSHOT_REPO_USERNAME");
  28. String password = System.getenv("NEXUS_SNAPSHOT_REPO_PASSWORD");
  29. print "foo"
  30. authentication(userName: username.toString(), password: password)
  31. }
  32. }
  33. }
  34. }
  35.  
  36. Circular dependency between the following tasks:
  37. :bootRepackage
  38. --- :myzip
  39. --- :bootRepackage (*)
Add Comment
Please, Sign In to add comment