Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- task myzip(type: Zip) {
- doFirst {
- new File(buildDir, 'logs').mkdirs()
- }
- def fileName = "${jar.baseName}-${jar.version}"
- from projectDir into 'manager-service'
- include "conf/*"
- include "*.sh"
- exclude "conf/config-client"
- from buildDir into 'manager-service'
- include "logs/*"
- from file("$buildDir/libs")
- include "${fileName}.jar"
- archiveName "manager-service.zip"
- }
- myzip.dependsOn(bootRepackage)
- artifacts {archives myzip}
- build.dependsOn(myzip)
- uploadArchives {
- repositories {
- apply plugin: 'maven'
- mavenDeployer {
- repository(url: System.getenv("NEXUSREPO")) {
- String username = System.getenv("NEXUS_SNAPSHOT_REPO_USERNAME");
- String password = System.getenv("NEXUS_SNAPSHOT_REPO_PASSWORD");
- print "foo"
- authentication(userName: username.toString(), password: password)
- }
- }
- }
- }
- Circular dependency between the following tasks:
- :bootRepackage
- --- :myzip
- --- :bootRepackage (*)
Add Comment
Please, Sign In to add comment