Skip to content

Instantly share code, notes, and snippets.

@lifuzu
Created December 12, 2013 01:03
Show Gist options
  • Save lifuzu/7921532 to your computer and use it in GitHub Desktop.
Save lifuzu/7921532 to your computer and use it in GitHub Desktop.
Generation of multiple poms, upload multiple artifacts at one time.
//Generation of multiple poms
//build.gradle
uploadArchives {
repositories {
mavenDeployer {
repository(url: "file://localhost/tmp/myRepo/")
addFilter('api') {artifact, file ->
artifact.name == 'api'
}
addFilter('service') {artifact, file ->
artifact.name == 'service'
}
pom('api').version = 'mySpecialMavenVersion'
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment