Grails 3.0 adding an inline plugin

让人想犯罪 __ 提交于 2019-12-05 09:00:13

问题


I created simple grails 3.0 applications using commands below:

  1. create-app admin --profile=web
  2. 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-

  1. Make sure that your application and your plugin are on same parent directory.
  2. Now go to build.gradle file of your application.
  3. Add this line in dependencies:
    compile project(':plugin_name')
  4. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!