Gradle 5 JUnit BOM and Spring Boot Incorrect Versions

前端 未结 3 1564
星月不相逢
星月不相逢 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:10

    Ensure to include JUnit's BOM before other BOMs that also refer to JUnit. First BOM wins and locks version of all later artifacts.

    See this issue for a similar setup using Maven and Spring Boot: https://github.com/sormuras/junit-platform-maven-plugin/issues/29#issuecomment-456958188

提交回复
热议问题