Spring Boot 2 Gradle plugin without executable jar

前端 未结 5 2647
感情败类
感情败类 2021-02-19 19:56

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

5条回答
  •  走了就别回头了
    2021-02-19 20:36

    this work for me (disable spring-boot bootJar task, and enable jar)

    apply plugin: 'java'
    bootJar {
      enabled = false
    }
    

提交回复
热议问题