-
Notifications
You must be signed in to change notification settings - Fork 407
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
Runtime project dependencies are not included in the shadowJar #152
Comments
|
I have posted a reproducible case in this thread: https://discuss.gradle.org/t/gradle-doesnt-rebuild-submodules-on-resolving-configurations/13468/3 |
Thanks @ddimtirov. That line resolves the configuration and sets the resulting file paths as an input for the task but in this process it's losing the context of the task dependency that produced that file. I believe this fix is that we need to declare this method: https://github.com/johnrengelman/shadow/blob/5013695772b083d2d2b79d809b89af4761b686da/src/main/groovy/com/github/jengelman/gradle/plugins/shadow/tasks/ShadowJar.java#L296 as dependencies for the task. In fact adding this line to the
|
Fixed with 5013695 |
I have a multi-module build with both compile and runtime dependencies on other projects:
I would expect both to end up in the shadow jar when running
gradle shadowJar
, but only the "compile project" ones do.As a workaround,
gradle build shadowJar
will cause both compile and runtime project dependencies to be bundled.The text was updated successfully, but these errors were encountered: