How do I configure Spring Boot Gradle plugin 2 to disable the Boot distribution in Gradle Script Kotlin.
The distribution i want is a assembly bundle zip with all depend
spring boot 2.x
My project is multi-module, each module can execute jar
root build.gradle
subprojects{
apply plugin: 'idea'
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
}
bootJar { enabled = true }
jar {enabled = true}
}
Sub-module build.gradle
bootJar {
mainClassName = 'space.hi.HelloApplication'
}
Then you can click the bootRun submodule in the 'Tasks/application or build' of the idea gradle plugin, or click bootJar to generate the jar.