Adding in-place plugin to grails 3 project -


in grails 2.x, allowed add in place plugin adding following in buildconfig.groovy

grails.plugin.location."my-plugin" = "../my-plugin"

my question is, can add our local plugins in-place in grails3.0 or there other way in grails.

actual purpose test plugin whether it's working or not before pushing bintray.

yes, there is. grails 3 based on gradle multi-project gradle builds solve issue.

basically add dependency as: compile project(':../my-custom-plugin') , has modify settings.gradle include plugin: include '../my-custom-plugin'

check grails documentation on plugins , multi-project builds in http://grails.github.io/grails-doc/latest/guide/plugins.html

other way install plugin in local maven repository using gradle publishtomavenlocal command , resolve if there, before publishing bintray or other dependency repository.

additionally since grails 3.1.1, reloading supported 'inline' plugins. check https://github.com/grails/grails-core/releases/tag/v3.1.1 , http://grails.io/post/138665751278/grails-3-gradle-multi-project-builds

it done using grails { plugins { syntax. copied docs:

grails {     plugins {         compile ":hibernate"         compile project(':myplugin')     } } 

Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -