In this example we will use errigal-geo-utils.
You will need to declare credentials of the repository in the Build Config. This should look like:
credentials {
realm = "Artifactory Realm"
host = "errigalArtifactory"
username = "developer"
password = "{XXXXX}XXXXXXXXXXXX"
}
The Repo declarations are declared in the BuildConfig of the project within the grails.project.dependency.distribution closure.
They are usually in the following format :
remoteRepository(id: "nameOfTheRepo", url: "http://IP:PORT/applicationNAme/pluginsDirectory/") {
authentication username: "whateverTheUserNameIs", password: "{XXXXX}XXXXXXXXXXXXXXXXXXXXXXX"
}
nameOfTheRepo is used when deploying the plugin.
Once you are finished with your changes to the plugin find the PluginNameGrailsPlugin.groovy file in the plugin project in this case the file is called ErrigalGeoUtilsGrailsPlugin.groovy.
In this file there should be a variable called version, increment this version and save.
Once saved open the Run Grails Command menu (CMD+ALT+G on Mac) and run the following command : maven-deploy –repository=errigalPlugins
Note that errigalPlugins is definited in the BuildConfig and points to the Artifactory. So if errigalPlugins is renamed in the BuildConfig it will need to be renamed in the maven-deploy command.
This will deploy the plugin to the Artifactory.
In the BuildConfig.groovy of the project that uses the plugin change the version of the plugin to the new version and apply the Grails changes. This will load in the updated Plugin.