[Build] Get rid of the testApiJUnit5 method

#KTI-1349 In Progress
This commit is contained in:
Alexander.Likhachev
2023-08-23 18:44:47 +02:00
committed by Space Team
parent 53fde520d5
commit 6f96be0b76
44 changed files with 124 additions and 70 deletions
+3 -1
View File
@@ -23,7 +23,9 @@ dependencies {
testRuntimeOnly(commonDependency("org.codehaus.woodstox:stax2-api"))
testRuntimeOnly(commonDependency("com.fasterxml:aalto-xml"))
testApiJUnit5()
testApi(platform(libs.junit.bom))
testImplementation(libs.junit.jupyter.api)
testRuntimeOnly(libs.junit.jupyter.engine)
testImplementation(projectTests(":compiler:tests-common-new"))
testImplementation(projectTests(":compiler:test-infrastructure"))
testImplementation(projectTests(":compiler:test-infrastructure-utils"))
@@ -102,7 +102,9 @@ dependencies {
testImplementation(projectTests(":compiler:test-infrastructure"))
testCompileOnly("org.jetbrains.kotlinx:atomicfu:0.21.0")
testApiJUnit5()
testApi(platform(libs.junit.bom))
testImplementation(libs.junit.jupyter.api)
testRuntimeOnly(libs.junit.jupyter.engine)
testRuntimeOnly(kotlinStdlib())
testRuntimeOnly(project(":kotlin-preloader")) // it's required for ant tests
@@ -19,7 +19,9 @@ dependencies {
compileOnly(intellijCore())
compileOnly(commonDependency("org.jetbrains.intellij.deps:asm-all"))
testApiJUnit5()
testApi(platform(libs.junit.bom))
testImplementation(libs.junit.jupyter.api)
testRuntimeOnly(libs.junit.jupyter.engine)
testApi(projectTests(":compiler:tests-common-new"))
testApi(projectTests(":compiler:test-infrastructure"))
testApi(projectTests(":compiler:test-infrastructure-utils"))
+2
View File
@@ -18,6 +18,8 @@ dependencies {
testApi(projectTests(":compiler:tests-common"))
testRuntimeOnly(intellijCore())
testRuntimeOnly("org.jetbrains.kotlinx", "kotlinx-serialization-runtime", kotlinxSerializationVersion)
testApi(platform(libs.junit.bom))
testImplementation(libs.junit4)
embedded("org.jetbrains.kotlinx", "kotlinx-serialization-runtime", kotlinxSerializationVersion) { isTransitive = false }
}
+3 -1
View File
@@ -7,7 +7,9 @@ dependencies {
api(kotlinStdlib())
compileOnly(toolsJarApi())
testApiJUnit5()
testApi(platform(libs.junit.bom))
testImplementation(libs.junit.jupyter.api)
testRuntimeOnly(libs.junit.jupyter.engine)
testCompileOnly(toolsJarApi())
testRuntimeOnly(toolsJar())
}
+3 -1
View File
@@ -11,7 +11,9 @@ dependencies {
testImplementation(intellijCore())
testApi(projectTests(":compiler:test-infrastructure-utils"))
testApi(projectTests(":compiler:tests-common-new"))
testApiJUnit5()
testApi(platform(libs.junit.bom))
testImplementation(libs.junit.jupyter.api)
testRuntimeOnly(libs.junit.jupyter.engine)
}
sourceSets {
@@ -27,7 +27,9 @@ dependencies {
testRuntimeOnly(commonDependency("org.codehaus.woodstox:stax2-api"))
testRuntimeOnly(commonDependency("com.fasterxml:aalto-xml"))
testApiJUnit5()
testApi(platform(libs.junit.bom))
testImplementation(libs.junit.jupyter.api)
testRuntimeOnly(libs.junit.jupyter.engine)
testApi(projectTests(":compiler:tests-common-new"))
testApi(projectTests(":compiler:test-infrastructure"))
testApi(projectTests(":compiler:test-infrastructure-utils"))
+3 -1
View File
@@ -34,7 +34,9 @@ dependencies {
embedded(project(":analysis:low-level-api-fir")) { isTransitive = false }
embedded(project(":analysis:symbol-light-classes")) { isTransitive = false }
testApiJUnit5()
testApi(platform(libs.junit.bom))
testImplementation(libs.junit.jupyter.api)
testRuntimeOnly(libs.junit.jupyter.engine)
testApi(projectTests(":kotlin-annotation-processing-compiler"))
testImplementation(project(":analysis:analysis-api-standalone"))
testRuntimeOnly(toolsJar())
@@ -40,7 +40,9 @@ dependencies {
testApi(project(":compiler:fir:plugin-utils"))
testImplementation(projectTests(":generators:test-generator"))
testImplementation(projectTests(":js:js.tests"))
testApiJUnit5()
testApi(platform(libs.junit.bom))
testImplementation(libs.junit.jupyter.api)
testRuntimeOnly(libs.junit.jupyter.engine)
testImplementation(project(":kotlinx-serialization-compiler-plugin.common"))
testImplementation(project(":kotlinx-serialization-compiler-plugin.k1"))
+3 -1
View File
@@ -16,7 +16,9 @@ dependencies {
testApi(project(":compiler:cli"))
testApi(project(":kotlin-noarg-compiler-plugin.cli"))
testApiJUnit5()
testApi(platform(libs.junit.bom))
testImplementation(libs.junit.jupyter.api)
testRuntimeOnly(libs.junit.jupyter.engine)
testApi(projectTests(":compiler:tests-common-new"))
testApi(projectTests(":compiler:test-infrastructure"))
testApi(projectTests(":compiler:test-infrastructure-utils"))
@@ -19,7 +19,9 @@ dependencies {
embedded(project(":plugins:parcelize:parcelize-compiler:parcelize.backend")) { isTransitive = false }
embedded(project(":plugins:parcelize:parcelize-compiler:parcelize.cli")) { isTransitive = false }
testApiJUnit5()
testApi(platform(libs.junit.bom))
testImplementation(libs.junit.jupyter.api)
testRuntimeOnly(libs.junit.jupyter.engine)
testApi(intellijCore())
+3 -1
View File
@@ -17,7 +17,9 @@ dependencies {
testCompileOnly(project(":kotlin-compiler"))
testImplementation(project(":kotlin-scripting-jvm-host-unshaded"))
testApiJUnit5()
testApi(platform(libs.junit.bom))
testImplementation(libs.junit.jupyter.api)
testRuntimeOnly(libs.junit.jupyter.engine)
testRuntimeOnly(libs.junit.vintage.engine)
testApi(projectTests(":compiler:tests-common-new"))