Hi, it happens quite frequently that I’m contacted internally that our fat JARs are too large and consume too much storage, bandwidth etc. in our entire ecosystem. (In total obviously. A single fat JAR is not too large, but hundreds of builds accumulate after all) One - if not THE - top consumer in our fat JARs was and still is Hibernate. It’s a whopping 7MB large on 5.6.x and 6.1.x hasn’t really made it better. On the contrary, 6.1.x is at 9MB already. In typical Spring-Boot apps of us, this is the TOP 10 of external libraries.
As you can see Hibernate takes the top position here. With Hibernate 6 even by a larger margin. Is there anything you can do to reduce this? E.g. is hibernate-core really core enough or is containing too much stuff the average user doesn’t need 99% of the times? Cheers, Christoph |