question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Thrifty compiler jar in 2.0.1 is a fat jar

See original GitHub issue

For some reason, the 2.0.1 is a fat jar that contains the classes for all other dependencies. This is very apparent when you look at the size when compared to the 2.0.0-RC1 version:

-rw-r--r--  1 deepanshu  staff    20K Aug 27  2019 2.0.0-RC1/e18e2c2a611b30d5de472cf6fddee3c16d704d09/thrifty-compiler-2.0.0-RC1.jar
-rw-r--r--  1 deepanshu  staff    22M May 13 22:13 2.0.1/d8320ed69eb0f89c220566814cad2a8cbefb8c85/thrifty-compiler-2.0.1.jar

The side effect is that if someone wants to use it in a project with a different version of guava or some other dependency, it will be difficult.

Not sure what was the difference in compiling 2.0.0-RC1 and 2.0.0, but filing this issue so that it can be investigated before doing the next release.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
benjamin-badercommented, Jun 9, 2020

I’m preparing the 2.1.0 release, and can confirm that this is no longer an issue, as seen in this Sonatype screenshot:

image
0reactions
benjamin-badercommented, Jun 8, 2020

I double-checked the commit history, and it looks like I added the current publishing system (the gradle-maven-publish-plugin) after the most recent full release. As best as I can tell, the next release won’t have this issue. I’ll keep it open until then, and will double-check before publishing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

java - What is a fat JAR? - Stack Overflow
The fat jar is the jar, which contains classes from all the libraries, ... project.name + '-all' from { configurations.compile.collect { it.
Read more >
Fat jar cannot fails with "Failed to copy" errors on Windows ...
I am trying to build a fat jar using gradle on windows. The same gradle project builds fine on unix. The problem in...
Read more >
Cannot create fat jar with project with transitive dependency ...
I would expect to have a fat jar with my code, my dependencies, ... plugin: 'com.github.johnrengelman.shadow' dependencies { compile group: ...
Read more >
io.smartdatalake : sdl-parent : 2.0.1 - Maven Central
Build your data lake the smart way. Licenses. GNU General Public License (GPL) version 3. Home page, http://www.smartdatalake.io.
Read more >
Creating a Fat Jar in Gradle | Baeldung
Basically, a fat jar (also known as uber-jar) is a self-sufficient archive which contains both classes and dependencies needed to run an ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found