I have a Helidon MP project and followed the steps provided here to build a fat jar
https://blogs.oracle.com/developers/post/migrating-a-helidon-se-application-to-gradle
gradlew shadowJar builds successfully with all the dependencies extracted as classes instead of including the dependent jar as is. Due to this, I'm getting the following exception.
Exception in thread "main" org.jboss.weld.exceptions.IllegalArgumentException: WELD-001325: No instance of an extension class io.helidon.microprofile.server.ServerCdiExtension registered with the deployment at org.jboss.weld.manager.BeanManagerImpl.getExtension(BeanManagerImpl.java:1445) at org.jboss.weld.util.ForwardingBeanManager.getExtension(ForwardingBeanManager.java:239) at io.helidon.microprofile.server.Server$Builder.(Server.java:154) at io.helidon.microprofile.server.Server.builder(Server.java:91) at com.ananth.osef.Main.startServer(Main.java:28) at com.ananth.osef.Main.main(Main.java:23)
How do I build the shadow jar that includes the individual jars instead of extracted classes?
I'm using gradle 5.6.3 and shadow 5.2.0