Yes there are two ways of installing plugins.
The old way of declaring dependencies, using the command install-plugin
. This will work with application.properties
.
In Grails 2.x the preferred way is to use BuildConfig.groovy
since this is more flexible, you can exclude jars/dependencies, define the scope and config the dependency to not be exported.
plugins {
test() //test scoped plugin
compile("group:name:version") {
excludes "some-dependency" //install the plugin, but not his dependency
}
compile("...") {
export = false //use this dependency, but not export.
}
}
With install-plugin
, all your dependencies will be compile scoped.
More about in this discussion.