How to establish where my Grails plugins should be installed?

I saw the light and installed the joda-time plugin for grails.

However, when I tried to transfer my changes to the original control, I realized that grails placed the files in:

C:\Users\Steve\.grails\1.1.1\plugins 

and not somewhere in the project directory:

 f:\grails\projects\myproject 

Yes, I use windows: - \

So now, when someone discards my changes from the original control, they skip all joda-time style plugins and they want to discard me :)

What should I configure so that grails does not put anything under my user directory? (It is not installed as a global plugin - just like project one - at least I think so, I ran "grails install-plugin joda-time")

Thank you very much in advance.

PS Currently listening to Plug In Baby by Muse .... as a coincidence: D

+4
source share
1 answer

The plugin is specified in application.properties, so when someone gets your code, Grails will install the missing plugins the first time they run the "grails run-app" or other commands.

If you want to return to 1.0.x behavior, just create grails-app / conf / BuildConfig.groovy with line

 grails.project.plugins.dir='plugins' 

and your plugins will be along with the rest of the project files.

+6
source

All Articles