I have spring boot based multi module project, which was defined in sourcesets. We are upgrade from java11 to java 17 and gradle 6.9 to 7.2. It was defined using sourcesets, where we are seggregating into multi module project. We got it working most of it except publishing bootJar from service application.
Structure is
- rootProject
-----build.gradle
-----library1
-----build.gradle
-----library2
-----build.gradle
-----Service
-----build.gradle.
Only service project bootjar is not publishing, other libraries are publishing successfully.
All publishing module is in rootProject. And I have disable jar in service as it is not geenrating fatjar or bootjar. So when I do that, it is skipping publishing as well.
Any solution that can help me with able to build all modules and publishing all modules. And have to generate bootjar / fatjar and then publish it from service file.
If enable jar task, then it is publishing that, but there is no use of that jar as it is not bootjar.