-
Notifications
You must be signed in to change notification settings - Fork 400
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
Fails to create JAR with Gradle api dependencies #424
Comments
I've debugged this down to "shadow borks when using task output dependencies anywhere on runtime classpath". If the dependency is a SelfResolvingDependency, the logic in com.github.jengelman.gradle.plugins.shadow.internal.UnusedTracker#getApiJarsFromProject is wrong. Needs either a null check and throw there, where it actually helps to know what is causing null, or needs to handle (or ignore, with really loud warnings, maybe) the SelfResolvingDependency type. |
This issue should already be fixed w/ the merged code above. |
This issue still exists in 4.0.4 and Gradle 4.10.2. Downgrading to 4.0.1 solved the problem for me. @johnrengelman, should I file another issue or shall this ticket be reopened? |
If the original test case fails, then reopen. If not, new issue. |
also, try to use gradle 4.10.3. Not sure if that's EOL for the 4.X line or not, but it's worth ruling out "anything except the newest patch version of the previous major version". |
I get the following failure when trying to build Gradle api dependencies with 'java-library'.
Shadow Version
4.0.2.
Gradle Version
4.10.1.
Expected Behavior
Successfully create a JAR with shaded api dependencies.
Actual Behavior
Build fails.
Gradle Build Script(s)
Apply the attached patch to the following file and build.
https://github.com/real-logic/simple-binary-encoding/blob/master/build.gradle
java-library.zip
The text was updated successfully, but these errors were encountered: