Spring Boot multi module project with Gradle doesn't build

前端 未结 4 954
有刺的猬
有刺的猬 2021-01-31 03:29

I\'m working on a Spring Boot app with multiple modules and we\'re using Gradle to build it. Unfortunately I can\'t get the Gradle configuration right.

The project stru

4条回答
  •  孤城傲影
    2021-01-31 04:23

    In your utility (data) projects put:

    bootJar {
        enabled = false
    }
    
    jar {
        enabled = true
    }
    

    If kotlin dsl

    tasks.getByName("bootJar") {
        enabled = false
    }
    
    tasks.getByName("jar") {
        enabled = true
    }
    

提交回复
热议问题