Created
December 12, 2013 01:03
-
-
Save lifuzu/7921532 to your computer and use it in GitHub Desktop.
Generation of multiple poms, upload multiple artifacts at one time.
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
//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