Closed souhaib100 closed 3 years ago
You can get rid of this error by replacing
forceMerge('log4j-api')
with
forceMerge('log4j-api', 'tomcat')
However, this is most likely not enough. In order to make your spring-boot-starter-web application work, you need to also apply some of the dirty tricks used by the badass-jlink-spring-petclinic.
This can get quite complicated. So, you may prefer to keep your application non-modular and use instead the badass-runtime-plugin.
Thank you very much, I appreciate your help. And for your advice, to be honest this is just an example to show the error, I already have a full working application (and it's uses a lot of the dirty tricks :sunglasses:), so thanks.
Hello, I use this example https://github.com/mockbirds/javafx-springboot-badass-jlink with gradle 7.1.1 and update the plugins in builde.gradle to the latest version and also add Spring boot web dependency:
When I run the application inside Idea every thing works as expected. But when I execute jpackage I had this error:
The module java.annotation is located inside the the jar jakarta.annotation-api-1.3.5.jar that is needed by Spring boot web.
Is this related to that jpackage can't link the module correctly? or something ealse?