Skip to content

Instantly share code, notes, and snippets.

@lifuzu
Forked from kriegerd/gist:4688748
Created December 16, 2013 22:30
Show Gist options
  • Save lifuzu/7995642 to your computer and use it in GitHub Desktop.
Save lifuzu/7995642 to your computer and use it in GitHub Desktop.
artifacts {
archives file: 'A.jar', name: 'A', type: 'jar'
archives file: 'B.jar', name: 'B', type: 'jar'
}
uploadArchives {
repositories {
mavenDeployer {
configuration = configurations.deployerJars
repository(url: "dav:https://myRepo.com/release/") {
authentication(userName: xxx, password: yyy)
}
addFilter('A') {artifact, file ->
artifact.name == 'A'
}
addFilter('B') {artifact, file ->
artifact.name == 'B'
}
pom('A').version = ant.properties['release.version']
pom('B').version = ant.properties['release.version']
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment