Skip to content
Advertisement

Tag: fatjar

Adding external jar dependency in JAR file

Backgorund : I am trying to add UserStorageSPI for my legacy application, so that we can use existing user credentials to log in. I have followed this tutorial, and the full source code for the sample application is available here. This application is storing plaintext passwords and compares them directly. However, my legacy database stores the passwords in an encrypted

NoClassDefFoundError for Gradle fat jar with tests Spring Boot

I need to create fat jar in Gradle project with tests where Main method is under src/test. Now I have Exception in thread “main” java.lang.NoClassDefFoundError: org/apache/commons/cli/CommandLineParser when I run fat jar created by ‘gradle bootJar’. My Gradle: My spring.xml: Exception: Previously following ‘gradle shadowJar’ code worked well until I added AspectJ to the project And error appeared on running ‘gradle

Advertisement