Created
December 12, 2013 05:52
-
-
Save lifuzu/7923736 to your computer and use it in GitHub Desktop.
Configure the snapshot and the release repository for Gradle
This file contains 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
//configure the snapshot and the release repository in the 'Upload' task (e.g. the 'uploadArchives') task: | |
uploadArchives { | |
repositories { | |
mavenDeployer { | |
repository(url: 'http://myCompanyRepo.com:8081/releases') { | |
authentication(userName: 'admin', password: 'password'); | |
} | |
snapshotRepository(url: 'http://myCompanyRepo.com:8081/snapshots') { | |
authentication(userName: 'admin', password: 'password'); | |
} | |
} | |
} | |
} | |
//for *-SNAPSHOT versions the snapshotRepository is used. Otherwise the releses repo is used. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment