The grails release plugin is great for publishing plugins to grails central but it will also publish a plugin to a maven repo. You simple need to configure the new maven repo inside build config. But if you want to release snapshots to an internal maven but not have that config checked in publicly that is a bit more tricky. With a quick bit of code added to BuildConfig.groovy we can have it pull in the config from a file we can choose to not checkin. Now with our public code we don’t need to expose our internal login info. See the file changes below for an example.
Add this to BuildConfig.groovy:
1 2 3 4 5 6 7 8 9 10 11
Then you can create a file called mavenInfo.groovy:
1 2 3
Grab the gist.