问题
I created simple grails 3.0 applications using commands below:
- create-app admin --profile=web
- create-plugin core --profile=plugin
Now, I wanted to use core as an inline plugin in admin build, which is a web application.
We can easily do that in grails version < 3.0 in buildconfig. Where can I do that in grails 3.0. Every help is worth appreciated.
回答1:
Inplace plugins have been replaced by multi project Gradle builds. See the Grails 3 functional test suite for an example https://github.com/grails/grails3-functional-tests
回答2:
Recently I used an inline plugin in my grails 3 application. here is how I did it-
- Make sure that your application and your plugin are on same parent directory.
- Now go to build.gradle file of your application.
- Add this line in dependencies:
compile project(':plugin_name')
- Now go to settings.gradle file on your application and append these lines:
include 'plugin_name'
project(':plugin_name').projectDir = new File('absolute_path_of_pluin')
来源:https://stackoverflow.com/questions/30623499/grails-3-0-adding-an-inline-plugin