Created
November 8, 2016 21:06
Add custom Nexus Repository OSS to Grails 3 Gradle build
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
repositories { | |
... | |
maven { | |
credentials { | |
username NEXUS_USERNAME | |
password NEXUS_PASSWORD | |
} | |
url 'https://[my.nexus.repo]/repository/releases/' | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
NEXUS_USERNAME
andNEXUS_PASSWORD
are project parameters that you can store ingradle.properties
file or pass on the command line. You might use it in a build server like:./gradlew -PNEXUS_USERNAME=[your_username] -PNEXUS_PASSWORD=[your_password] test