I have a multi-module project:
Root project 'platform'
+--- Project ':api'
+--- Project ':common'
and in the :common
module I include all the dependencies, in the :api
module, I only have
apply(plugin = "org.springframework.boot")
dependencies {
implement(project(":common"))
}
The problem is that when I build the :api
module, from the jar file I can't see any of the dependencies inside the jar file, there's no BOOT-INF/libs/
only BOOT-INF/classes/
.
When I run the jar with java -jar, it says NoClassFound for one of the class in the :common
module.
gradle :api:bootRun
works fine.
Is there any other config I should do? I'm using gradle 4.9 kotlin dsl and spring boot plugin 1.5.15.RELEASE