v0.7.4-alpha
π§ͺ 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