Reputation: 11040
I am using Spring Boot 1.4.1 with Gradle 3.1. The module which has the Spring Boot plugin applied creates its own jar with the jar
task, and also has the 'fat' jar created with bootRepackage
. However, the classes from that module are in BOOT-INF/classes, but I would like them to be in a separate jar in BOOT-INF/lib. How to do this?
EDIT: I know I can move the code to a separate module, but for various reasons I can't make such a split (unless there is no other way). I am looking for a single-module solution, if one exists.
Upvotes: 1
Views: 1739
Reputation: 116111
You'll need to set up a multi-project build and move all of your Jersey-related classes into a separate project. You can then depend upon this new project in your Spring Boot project using a project
dependency. For example:
dependencies {
compile project(':jersey-endpoints')
}
Upvotes: 1