【发布时间】:2020-10-04 17:44:06
【问题描述】:
使用此配置时,我会收到 JUnit Vintage 的 initializationError:
testImplementation group: 'org.springframework.boot', name: 'spring-boot-starter-test'
但使用此配置@RunWith 注释无法解析:
testImplementation (group: 'org.springframework.boot', name: 'spring-boot-starter-test') {
exclude group: 'org.junit.vintage', name: 'junit-vintage-engine', version: '5.7.0-M1'
}
如何正确排除 JUnit Vintage 模块?
【问题讨论】:
标签: gradle junit junit4 junit5 junit-vintage