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
This kotlin DSL version of @panser answer works for me (disable spring-boot bootJar task and enable jar task):
import org.springframework.boot.gradle.tasks.bundling.BootJar tasks.getByName("bootJar") { enabled = false } tasks.getByName("jar") { enabled = true }