Vinay Prajapati
Vinay Prajapati

Reputation: 7556

Grails 3.0 adding an inline plugin

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.

Upvotes: 2

Views: 1085

Answers (2)

Ankit Agrawal
Ankit Agrawal

Reputation: 1904

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')

Upvotes: 8

Graeme Rocher
Graeme Rocher

Reputation: 7985

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

Upvotes: 2

Related Questions