What is the correct way to install the Grails plugin from a zip file?

The latest versions of the Grails team are install-plugindeprecated. Now it is recommended to use a plugin that is not accessible through any repository. Suppose a plugin is only available locally as a zip file, for example. after launch grails package-plugin?

+5
source share
2 answers

I think the easiest approach is to put the zip file in the lib project folder and then add the entry to BuildConfig.groovy. For instance:

1. 'grails-image-tools-1.0.5.zip' placed in lib.
2. runtime ":grails-image-tools:1.0.5" added to BuildConfig.groovy

Since the dependency manager is also looking inside the lib project folder, I don't need to worry about setting any paths, etc.

EDIT: Grails, , 2.1.1. , @Saurabh Grails 2.4.3

+11

, , :

  • BuildConfig.groovy,

: webflow.zip plugins . BuildConfig

grails.plugin.location."webflow" = "plugins/webflow"
+2

All Articles