-
Notifications
You must be signed in to change notification settings - Fork 403
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
ShadowJar runs extremely slow compared to fatJar #359
Comments
You haven't provided enough information to make any type of guess why you would experiencing that magnitude of slowness. In every other case and the reason why I wrote Shadow in the first place was because it was faster than using the I'm going to close this issue as it doesn't contain any particulars. |
Hi, i'm actually seeing the same issue, but not sure what to provide for debugging? |
I believe I'm reproducing this using the following
The problem disappears when I replace the
(inside
|
@victorbr - you should be using the 2nd plugin. The first one is for shadowing Gradle plugins and configures shadow to relocate all dependencies. Dropwizard has a lot of transitive dependencies so that will obviously take longer. |
runs INCREDIBLY, unusably, slowly for me as well. macos, gradle 4.9, shadow 2.0.3 |
@madorb have you tried version 2.0.4 that has some fixes for potential causes? |
Same here. FatJar takes 40 seconds. Shadow does not complete in 15 Minutes |
For an unexplainable reason using the gradlew command insted of gradle works. This works (40 seconds): This not (15 Minutes, not completing the build): |
Maybe this is relevant: gradlew used Gradle 7.4.2 gradle used Gradle 7.3.3 |
Shadow Version
2.0.2
Gradle Version
4.3.1
Expected Behavior
shadowJar should be able to create a jar file in roughly the same time as my previous fatJar task.
Actual Behavior
shadowJar takes 15,5 hourse to run while fatJar finishes in ~4 minutes. The resulting jar file is around 150mb in size. shadowJar does eventually finish (I left it running last night and it finished as I said previously in more than 15 hours).
Gradle Build Script(s)
The fat jar part:
The shadowJar part:
The project is a multi-project so the specific sub-project that I'm trying to build as a fatJar/shadowJar has dependencies on both other sub-projects as well as external JAR libraries.
Content of Shadow JAR (
jar tf <jar file>
- post link to GIST if too long)Don't have one, deleted the one that got generated in 15 hours but it did look like it was similar in size as the one generated by the fatJar task.
What can cause such a huge slowdown?
The text was updated successfully, but these errors were encountered: