How to exclude any sub-module while creating an executable jar of multiple sub-modules using gradle?

There are multiple sub-modules in my project .i want to create an executable jar of some sub-modules using gradle commands. Something like gradlew.bat --exclude :subProject1 bootJar.

Is there any commands like these?

bootJar sounds like you are using Spring Boot Starter for this.
So you should probably look up in the Spring Boot docs how to achieve what you want. :slight_smile: