I have a plugin project which I created as grails create-plugin myPlugin
. I also created a 'normal' grails project as grails create-app myPluginDemo
. I'm trying to install myPlugin
plugin in myPluginDemo
but don't understand how to use grails.plugin.location
.
Where do I put grails.plugin.location
inside BuildConfig.groovy
? Inside plugins
section? Inside repositories
section?
What should I append to grails.plugin.location
? Should it be grails.plugin.location.myPlugin
? Or grails.plugin.location.grails-my-plugin
? Something else?
By default the plugins are in . grails/<version>/<project>/plugins . You can change it by setting grails. project.
Support for the Grails framework is not bundled with IntelliJ IDEA. You can install the Grails plugin from the JetBrains repository as described in Install plugins. The latest compatible version of IntelliJ IDEA is 2021.3. You can find the documentation for Grails support in earlier versions of IntelliJ IDEA Help.
Grails is first and foremost a web application framework, but it is also a platform. By exposing a number of extension points that let you extend anything from the command line interface to the runtime configuration engine, Grails can be customised to suit almost any needs.
grails.plugin.location
is not a dependency resolution, so it goes outside grails.project.dependency.resolution
.
It should be like below, if both myPluginDemo
and myPlugin
are in the same directory. Moreover, this will not install the plugin into the app, but the application will refer to the file system for the plugin which is convenient in development mode. In order to use the packaged plugin it has to be referred in plugins
inside grails.project.dependency.resolution
grails.plugin.location.myPlugin = "../myPlugin"
grails.project.dependency.resolution = {
repositories {
}
dependencies {
}
plugins {
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With