-
-
Notifications
You must be signed in to change notification settings - Fork 951
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.2.9: dependencies missing in pom file #10619
Comments
I can't assemble the project. If sub2 is a grails app, where are the grails dependencies (other than gradle) ?
|
@jameskleeh I was not able to reproduce your assembling issue. Even a clean repo clone assembles successfully. Nevertheless I added some core dependencies. Hopefully it will assemble now. Please do a git pull. |
FWIW I see the same behaviour as @jameskleeh and had to add the core dependencies |
In the
|
This seems to be an issue with how you have structured your build. Attached a patch that demonstrates how to get it working. |
@graemerocher thank you for clarifiying. The bahaviour seems to have changed. In 3.2.3 it was ok to apply jave/grails plugins in the subprojects. Now you have to apply them after the maven-plugin is applied. The reason why the publications defined in the subprojects as well as in the root project is that we need to publish the complete build together with all submodules. Here is the working example:
Thank you for looking into this issue. |
Steps to Reproduce
The sample app is a multi project app just so demonstrate the different behaviour of a grails and a non-grails project.
Expected Behaviour
Modules sub1 and sub2 should contain the correct dependencies in their locally published pom files.
I do not want to publish to grails central or bintray. Just to a plain old maven repo (local or remote).
Actual Behaviour
pom file of sub1 (non-grails submodule) contains every definied compile-dependency
pom file of sub1 (grails submodule) does NOT contain the compile dependencies
When applying the grails-gradle-plugin, this strange behaviour can be seen.
Some more details:
sub1 contains the following dependency-block:
and the resulting pom contains this dependency as expected:
sub2 contains these dependencies:
The resulting pom file of sub2 misses these dependencies. Just the dependencyManagement block is defined. Groovy and jbcrypt are missing.
Environment Information
Example Application
https://github.com/mhuebner/grails329-pom-issue
The text was updated successfully, but these errors were encountered: