Closed pfoletto closed 7 years ago
I am not able to reproduce the issue you mentioned.
This is what I did.
$ mkdir 10817
$ cd 10817
10817$ grails create-plugin --profile=plugin pluginModel
10817$ grails create-app --profile=web webAdmin
10817$ touch settings.gradle
Edit settings.gradle
content with:
include 'webAdmin'
include 'pluginModel'
Edit webAdmin/build.gradle
. Add a dependency to the plugin project:
...
..
.
testRuntime "net.sourceforge.htmlunit:htmlunit:2.18"
compile project(':pluginModel')
}
If I do:
10817$ cd webAdmin
10817/webAdmin$ ./gradlew bootRun
The app starts as expected.
Please, link to a failing sample repository so that we can reproduce the issue.
Thanks for reporting an issue for Grails framework, please review the task list below before submitting the issue. Your issue report will be closed if the issue is incomplete and the below tasks not completed.
NOTE: If you are unsure about something and the issue is more of a question a better place to ask questions is on Stack Overflow (http://stackoverflow.com/tags/grails) or Slack (http://slack-signup.grails.org). DO NOT use the issue tracker to ask questions.
Task List
I put the dependency in the subproject webAdmim very similar to the first steps of the guide for a multi project http://guides.grails.org/grails-multi-project-build/guide/index.html only simplified using only two level I try to execute gradle bootRun on the root of master project
Steps to Reproduce
I create a multiproject gradle two project the pluginModel and the webAdmin grails create-plugin --profile=plugin pluginModel grails create-app --profile= web webAdmin
I put the dependency in the subproject webAdmim very similar to the first steps of the guide for a multi project http://guides.grails.org/grails-multi-project-build/guide/index.html only simplified using only two level I try to execute gradle bootRun on the root of master project and I get an exception
Expected Behaviour
The depedencies of plugin profile are enough
Actual Behaviour
The depedencies of plugin profile are NOT enough the solution is to copy all the dependecies of webAdmin into dependecies of the pluginModel
it works, the grails starts at 8080 but the gradle bootRUn never ends
Environment Information
Example Application