Gradle 5 JUnit BOM and Spring Boot Incorrect Versions

前端 未结 3 1572
星月不相逢
星月不相逢 2020-11-28 14:04

I am using Gradle 5\'s BOM (Bill of Materials) feature. This is how I describe it for my JUnit 5 dependencies:

testImplementation(enforcedPlatform(\"org.juni         


        
3条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-28 14:17

    JUnit 5.4.0 simplified its artifacts, and now delivered a single artifact for Jupiter - org.junit:junit-jupiter. I.e., you should simplify your Gradle file too:

    testImplementation(enforcedPlatform("org.junit:junit-bom:5.4.0")) // JUnit 5 BOM
    testImplementation("org.junit.jupiter:junit-jupiter")
    

提交回复
热议问题