-
Notifications
You must be signed in to change notification settings - Fork 7
Unable to require module when plugin is used #12
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
Comments
@C-Otto I think this is an effect not specific to this plugin but a result of combining plugins that do not setup everything "well enough" for variant-aware dependency resolution which was not supported in earlier Gradle version. In this case In this case, I think the spring boot plugin should set
I haven't been able to reproduce this myself. Which Spring Boot version are you using? Maybe it works with newer versions. |
Thanks for the explanation, I'll try to understand it. I'm using Spring Boot configured as follows:
I understand that Spring Boot does quite a lot of stuff that isn't Gradle-y (spring-projects/spring-boot#25126, gradle/gradle#16059 for a recent example), which is rather unfortunate. Could you open an issue in the Spring Boot project? I'm not comfortable enough with Gradle internals, and I'd like to avoid pointing fingers without a good technical explanation. |
@C-Otto those are Gradle plugins and you should be including them in the If you are interested in modularizing Spring Boot apps, you may find this PR useful. However, be ready to face more issues than you currently have with your configuration ;-) |
@C-Otto I am happy to open a Spring Boot issue, but I need to reproduce the problem to fully understand what it is. Would you be able to share a complete small project reproducing what you are seeing? Does adding this to the build file of
|
I'm using Java 14 with Gradle 6.8.1. I have two projects,
cli
andbackend
. The CLI is a Spring Boot application, whereasbackend
is a Java library (which also uses Spring Boot, withjar
enabled andbootJar
disabled). I'm using JMPS to includebackend
from withincli
.As soon as I add
id 'de.jjohannes.extra-java-module-info' version '0.5'
to the plugins section of my subprojectbackend
, I can't build the consuming projectcli
anymore, as shown below. Sadly, I also need to use the plugin, as I have to use a library inbackend
which does not define a module descriptor (OpenFeign/feign#1357 and spring-cloud/spring-cloud-openfeign#469).I also use your plugin in
cli
for another library without a module descriptor (spring-projects/spring-shell#315).The text was updated successfully, but these errors were encountered: