Skip to content

v0.7.4-alpha

Choose a tag to compare

@github-actions github-actions released this 30 Oct 17:49

πŸ§ͺ Experimental Fat Jar (uberjar) feature

In this release v0.7.4-alpha we now have a working bundle feature, this should now fully generate a "fat jar" aka uberjar.

Of course here be dragons! as I'm not entirely sure the merging logic is 100% correct, but it does seem to work for the non-trivial Pet Clinic spring boot project.

example output when bundling the Pet Clinic project:

anhar@workstation:~/Desktop/sandbox/PetClinicApplication$ grind bundle prod
==> πŸ”¨ compiling project [PetClinicApplication]...
🧩 Starting fat jar build...
 β†’ Output: build/PetClinicApplication.jar
 β†’ Classes: target
 β†’ Libs: libs
 β†’ Main-Class: org.springframework.samples.petclinic.PetClinicApplication
+ manifest: META-INF/MANIFEST.MF
+ resource: application-postgres.properties
# <SNIPPED>
+ resource: templates/error.html
πŸ“¦ Merging 99 dependency jar(s)...
   [99/99 | 100%] org.springframework.boot_spring-boot-data-jpa_4.0.0-RC1.jarr1.jar.jarjar
+ merged: META-INF/spring/org.springframework.boot.webmvc.test.autoconfigure.AutoConfigureWebMvc.imports
# <SNIPPED>
+ merged: META-INF/spring/configuration-metadata/org.springframework.boot.jdbc.init.DatabaseInitializationProperties.json
βœ… Fat jar created: build/PetClinicApplication.jar
πŸ“Š Summary:
   β†’ 82 class/resource files
   β†’ 99 dependency jars merged
⏱ Total build time: 2.325 seconds