Last active
March 28, 2019 21:51
-
-
Save sgdc3/1e525bf6237194eee46826fd98e00a25 to your computer and use it in GitHub Desktop.
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
configurations { | |
deployerJars | |
} | |
dependencies { | |
deployerJars "org.apache.maven.wagon:wagon-ssh:2.10" | |
} | |
apply plugin: 'maven' | |
uploadArchives { | |
repositories { | |
mavenDeployer { | |
repository(url: project.getProperty('deployRepo')) { | |
authentication(userName: project.getProperty('deployUser'), password: project.getProperty('deployPass')) | |
} | |
pom { | |
artifactId = project.archivesBaseName | |
project { | |
name = project.name | |
version = project.version.split('\\+build')[0] + '-SNAPSHOT' | |
packaging = 'jar' | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment