only:junit5

This commit is contained in:
rusefillc 2023-12-15 09:51:08 -05:00
parent 1b08a82077
commit 12cf2dad13
6 changed files with 18 additions and 8 deletions

View File

@ -10,6 +10,8 @@ allprojects {
dependencies {
implementation global_libs.annotations
testImplementation global_libs.junit
testImplementation global_libs.junit5
testImplementation global_libs.junit5engine
}
}
@ -31,7 +33,7 @@ tasks.named('wrapper') {
distributionType = Wrapper.DistributionType.ALL
}
// gradlew allDeps
// gradlew allDeps
subprojects {
task allDeps(type: DependencyReportTask) {}
}
}

View File

@ -18,4 +18,10 @@ dependencies {
shadowJar {
dependsOn(':enum_to_string:shadowJar')
archiveClassifier = ''
}
}
test {
// todo: move into global once junit5 migration is over!
// Enable JUnit 5
useJUnitPlatform()
}

View File

@ -1,7 +1,7 @@
package com.rusefi.ldmp;
import com.rusefi.ReaderProvider;
import org.junit.Test;
import org.junit.jupiter.api.Test;
import java.io.*;
import java.util.Map;

View File

@ -1,6 +1,6 @@
package com.rusefi.ldmp;
import org.junit.Test;
import org.junit.jupiter.api.Test;
import java.io.IOException;
import java.io.StringReader;

View File

@ -1,7 +1,8 @@
ext {
global_libs = [
junit : "junit:junit:4.13.2",
junit5 : 'org.junit.jupiter:junit-jupiter-api:5.10.1',
junit5 : "org.junit.jupiter:junit-jupiter-api:$junit5Version",
junit5engine : "org.junit.jupiter:junit-jupiter-engine:$junit5Version",
annotations : "org.jetbrains:annotations:16.0.1",
jsr305 : "com.google.code.findbugs:jsr305:3.0.2",
antlr : "org.antlr:antlr4:4.13.0",
@ -20,4 +21,4 @@ ext {
httpmime : "org.apache.httpcomponents:httpmime:4.5.12",
launcher_api: fileTree( dir: "lib", include: "TunerStudioPluginAPI.jar" )
]
}
}

View File

@ -2,5 +2,6 @@
shadowVersion=8.1.1
javaCanVersion=3.2.4
junit5Version=5.10.1
org.gradle.warning.mode=all
org.gradle.warning.mode=all