-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
jib Gradle plugin multiProject build doesn't pull in subproject dependencies #1776
Comments
Also note that if I run the |
Someone else was having a similar issue. #1745, are you using the springboot plugin by any chance? |
Also can you include the build steps that are being triggered when you run with the |
another thing that could help us: are you using the |
@loosebazooka Thank you. It looks like it's the same issue described here. My I can either have my main project |
So I don't know how exactly |
@loosebazooka Thanks for the tips. I've modified my dependent projects to use the |
https://discuss.gradle.org/t/when-should-we-use-java-plugin-and-when-java-library-plugin/25377/2 implies that if you do continue using the |
Description of the issue:
I have a project laid out like so:
settings.gradle.kts
lists out the subprojects (web
,data
, etc).The root
build.gradle.kts
has a dependency onimplementation(project("web"))
and is set up to do thejib
buildThe web
build.gradle.kts
has a dependency onimplementation(project("data"))
root
build.gradle.kts
:When I run the
jibDockerBuild
task I get a runnable container but it is missing the data dependency. Somehow theweb
jar is included meaning it was built and compiled properly but thedata
dependency used by it isn't included in/app/libs
in the container so it fails to startup.Expected behavior:
For my container to contain all dependencies of
web
which is the dependency my root project expresses.Steps to reproduce:
Make a minimal project structure as described above and run
./jibDockerBuild
and you should see this behavior.The text was updated successfully, but these errors were encountered: