O'Reilly logo
  • Peter Backx thinks this is interesting:

Building a default self-executing JAR file is very easy; actually it is done automatically once we execute the ./gradlew clean bootRepackage command.

From

Cover of Spring Boot Cookbook

Note

With the latest Spring boot, you need to set the executable configuration option to make this work:
<https://docs.spring.io/spring-boot/docs/current/reference/html/deployment-install.html>