6.3 Publishing Profiles - Reference Documentation
Authors: Graeme Rocher, Peter Ledbrook, Marc Palmer, Jeff Brown, Luke Daley, Burt Beckwith, Lari Hotari
Version: 3.1.10
6.3 Publishing Profiles
Publishing Profiles to the Grails Central Repository
Any profile created with the create-profile command already comes configured with agrails-profile-publish
plugin defined in build.gradle
:apply plugin: "org.grails.grails-profile-publish"
build.gradle
file:grailsPublish { user = 'YOUR USERNAME' key = 'YOUR KEY' githubSlug = 'your-repo/your-profile' license = 'Apache-2.0' }
TheWith this in place you can rungithubSlug
argument should point to the path to your Github repository. For example if your repository is located athttps://github.com/foo/bar
then yourgithubSlug
isfoo/bar
gradle publishProfile
to publish your profile:$ gradle publishProfile
Publishing Profiles to an Internal Repository
The aforementionedgrails-profile-publish
plugin configures Gradle's Maven Publish plugin. In order to publish to an internal repository all you need to do is define the repository in build.gradle
. For example:publishing { repositories { maven { credentials { username "foo" password "bar" } url "http://foo.com/repo" } } }
gradle publish
:$ gradle publish