JUnit4 -> JUnit5
This commit is contained in:
@@ -22,6 +22,7 @@ subprojects {
|
||||
slf4j_version = '1.7.25'
|
||||
spring_version = '5.1.0.RELEASE'
|
||||
lombok_version = '1.18.2'
|
||||
junit_version = '5.3.1'
|
||||
}
|
||||
|
||||
configurations {
|
||||
@@ -42,12 +43,17 @@ subprojects {
|
||||
compileOnly (group: 'org.projectlombok', name: 'lombok', version: lombok_version)
|
||||
|
||||
/* Testing */
|
||||
testCompile (group: 'junit', name: 'junit', version: '4.12')
|
||||
testImplementation (group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: junit_version)
|
||||
testRuntimeOnly(group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: junit_version)
|
||||
testCompile (group: 'org.slf4j', name: 'slf4j-simple', version: slf4j_version)
|
||||
testCompile (group: 'org.mockito', name: 'mockito-core', version: '1.10.19')
|
||||
testCompile (group: 'org.springframework', name: 'spring-test', version: spring_version)
|
||||
}
|
||||
|
||||
test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
|
||||
task copyDep(type: Copy) {
|
||||
into 'libs'
|
||||
from configurations.compile + configurations.runtime - configurations.compile_excludeCopy
|
||||
|
||||
Reference in New Issue
Block a user