Skip to content

Commit a2165a2

Browse files
committed
Remove Junit
1 parent e1864e3 commit a2165a2

File tree

6 files changed

+4
-21
lines changed

6 files changed

+4
-21
lines changed

build-plugins/build-support/build.gradle.kts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,3 @@ tasks.withType<JavaCompile> {
6767
sourceCompatibility = JavaVersion.VERSION_1_8.toString()
6868
targetCompatibility = JavaVersion.VERSION_1_8.toString()
6969
}
70-
71-
tasks.test {
72-
useJUnitPlatform()
73-
}

build-plugins/kmp-conventions/build.gradle.kts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ repositories {
1919
dependencies {
2020
implementation(project(":build-plugins:build-support"))
2121
compileOnly(kotlin("gradle-plugin", "2.1.0"))
22-
testImplementation(libs.junit.jupiter)
2322
}
2423

2524
gradlePlugin {
@@ -44,7 +43,3 @@ tasks.withType<JavaCompile> {
4443
sourceCompatibility = JavaVersion.VERSION_1_8.toString()
4544
targetCompatibility = JavaVersion.VERSION_1_8.toString()
4645
}
47-
48-
tasks.test {
49-
useJUnitPlatform()
50-
}

build-plugins/kmp-conventions/src/main/kotlin/aws/sdk/kotlin/gradle/kmp/ConfigureTargets.kt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,6 @@ fun Project.configureCommon() {
152152
fun Project.configureJvm() {
153153
kotlin {
154154
jvm()
155-
156-
sourceSets.named("jvmTest") {
157-
dependencies {
158-
implementation(kotlin("test-junit5"))
159-
}
160-
}
161155
}
162156

163157
tasks.named<Test>("jvmTest") {
@@ -168,7 +162,6 @@ fun Project.configureJvm() {
168162
showExceptions = true
169163
exceptionFormat = TestExceptionFormat.FULL
170164
}
171-
useJUnitPlatform()
172165
}
173166
}
174167

build-plugins/smithy-build/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ tasks.withType<JavaCompile> {
4646
}
4747

4848
tasks.test {
49-
useJUnitPlatform()
5049
testLogging {
5150
events("passed", "skipped", "failed")
5251
showStandardStreams = true

build-plugins/smithy-build/src/test/kotlin/aws/sdk/kotlin/gradle/codegen/SmithyBuildPluginTest.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ import org.gradle.kotlin.dsl.apply
1010
import org.gradle.kotlin.dsl.configure
1111
import org.gradle.kotlin.dsl.getByType
1212
import org.gradle.testfixtures.ProjectBuilder
13-
import org.junit.jupiter.api.Assertions.*
14-
import org.junit.jupiter.api.Test
13+
import kotlin.test.Test
14+
import kotlin.test.assertNotNull
15+
import kotlin.test.assertEquals
16+
import kotlin.test.assertTrue
1517

1618
class SmithyBuildPluginTest {
1719
@Test

gradle/libs.versions.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ jreleaser-plugin-version = "1.18.0"
77
publish-plugin-version = "1.3.1"
88
smithy-version = "1.60.2"
99
smithy-gradle-plugin-version = "1.3.0"
10-
junit-version = "5.10.1"
1110
coroutines-version = "1.10.2"
1211

1312
[libraries]
@@ -20,7 +19,6 @@ nexus-publish-plugin = { module = "io.github.gradle-nexus:publish-plugin", versi
2019
jreleaser-plugin = { module = "org.jreleaser:jreleaser-gradle-plugin", version.ref = "jreleaser-plugin-version" }
2120
smithy-model = { module = "software.amazon.smithy:smithy-model", version.ref = "smithy-version" }
2221
smithy-gradle-base-plugin = { module = "software.amazon.smithy.gradle:smithy-base", version.ref = "smithy-gradle-plugin-version" }
23-
junit-jupiter = { module = "org.junit.jupiter:junit-jupiter", version.ref = "junit-version" }
2422
kotlinx-coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version.ref = "coroutines-version" }
2523

2624
[plugins]

0 commit comments

Comments
 (0)