Skip to content

Instantly share code, notes, and snippets.

@dspies
Created November 8, 2016 21:06
Add custom Nexus Repository OSS to Grails 3 Gradle build
repositories {
...
maven {
credentials {
username NEXUS_USERNAME
password NEXUS_PASSWORD
}
url 'https://[my.nexus.repo]/repository/releases/'
}
}
@dspies
Copy link
Author

dspies commented Nov 8, 2016

NEXUS_USERNAME and NEXUS_PASSWORD are project parameters that you can store in gradle.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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment