Repackage! Spring Boot exit strategy to Jigsaw
With new JDK, when you compile a spring-boot application you get a big jar which cannot be included as utility jar anymore.
The reason are a lot but, simply put, the new packaging system introduced with JDK9 require a strong separation.
To solve this problem you can "repackage" your jar in two forms: the standard one and the "exec-utable" one. Spring Boot provide a nice maven plugin to do it in thousands of different ways:
Good luck!