In Grails 3.0.11, I use the gradle target publishToMavenLocal for my local development. There is also another target publishMavenPublicationToMavenRepository. This seems to come from the gradle plugin:
apply plugin: 'maven-publish'
Seems to be in the standard plugin build.gradle.
(Edit: Adding notes on using local maven).
After re-reading your question and comment below, I don't think that is what you are looking for. It sounds like you want a normal publish to a repository on your system. publishMavenPublicationToMavenRepository
may handle that. What I described above is using the local Maven cache to hold a snapshot of a plugin that you can use on your machine in an application.
This works for me when developing a plugin used in my application.
I did not create a local repository. The gradle plugin above (maven-publish
) has a task publishToMavenLocal
that will publish the Grails plugin to the local maven cache for local development.
It stores the plugin's .zip file in the .m2 cache directory:
C:\Users\xyz\.m2\repository\org\whatever\plugins\pluginName\0.3-SNAPSHOT
Then, you can use the plugin in a Grails application on your machine.