Skip to content

Instantly share code, notes, and snippets.

@sgdc3
Last active March 28, 2019 21:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgdc3/1e525bf6237194eee46826fd98e00a25 to your computer and use it in GitHub Desktop.
Save sgdc3/1e525bf6237194eee46826fd98e00a25 to your computer and use it in GitHub Desktop.
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