Skip to content

Instantly share code, notes, and snippets.

@Pinned
Created December 17, 2018 07:04
Show Gist options
  • Save Pinned/2bbe4757fdd972ebf3f8ea964bc71da6 to your computer and use it in GitHub Desktop.
Save Pinned/2bbe4757fdd972ebf3f8ea964bc71da6 to your computer and use it in GitHub Desktop.
uploadArchives {
repositories {
// mavenLocal config
mavenDeployer {
repository(url: mavenLocal().url)
pom.groupId = rootProject.group
pom.artifactId = project.name
pom.version = rootProject.version
}
if (publishToNexus) {
// nexus config
mavenDeployer {
repository(url: nexusURL) {
authentication(userName: nexusUser, password: nexusPass)
}
pom.groupId = rootProject.group
pom.artifactId = project.name
pom.version = rootProject.version
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment