Skip to content

Commit 911103d

Browse files
committed
Use kotlin power assert
1 parent 3bcdee1 commit 911103d

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

build.gradle.kts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import com.bnorm.power.PowerAssertGradleExtension
21
import kotlinx.knit.KnitPluginExtension
32
import org.gradle.api.tasks.testing.logging.TestExceptionFormat.*
43
import org.gradle.api.tasks.testing.logging.TestLogEvent.FAILED
@@ -9,11 +8,11 @@ import org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_2_0
98

109
plugins {
1110
alias(libs.plugins.kotlin.jvm)
11+
alias(libs.plugins.kotlin.assert)
1212
alias(libs.plugins.dokka)
1313
alias(libs.plugins.spotless)
1414
alias(libs.plugins.knit)
1515
alias(libs.plugins.publish)
16-
alias(libs.plugins.power.assert)
1716
}
1817

1918
repositories {
@@ -35,10 +34,15 @@ dependencies {
3534
testImplementation(libs.kotlinx.coroutines.test)
3635
}
3736

38-
configure<PowerAssertGradleExtension> {
37+
@Suppress("OPT_IN_USAGE")
38+
powerAssert {
3939
functions = listOf("kotlin.test.assertEquals")
4040
}
4141

42+
//configure<PowerAssertGradleExtension> {
43+
// functions = listOf("kotlin.test.assertEquals")
44+
//}
45+
4246
configure<KnitPluginExtension> {
4347
siteRoot = "https://nomisrev.github.io/kotlin-kafka/"
4448
}

gradle/libs.versions.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ testcontainers-kafka = "1.19.6"
1010
slf4j = "2.0.12"
1111
spotless="6.25.0"
1212
publish="0.27.0"
13-
power-assert="0.13.0"
1413

1514
[libraries]
1615
kotest-property = { module = "io.kotest:kotest-property", version.ref = "kotest" }
@@ -28,9 +27,9 @@ slf4j-simple = { module = "org.slf4j:slf4j-simple", version.ref = "slf4j" }
2827

2928
[plugins]
3029
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
30+
kotlin-assert = { id = "org.jetbrains.kotlin.plugin.power-assert", version.ref="kotlin" }
3131
dokka = { id = "org.jetbrains.dokka", version.ref = "dokka" }
3232
kover = { id = "org.jetbrains.kotlinx.kover", version.ref = "kover" }
3333
spotless = { id = "com.diffplug.spotless", version.ref = "spotless" }
3434
publish = { id = "com.vanniktech.maven.publish", version.ref="publish" }
3535
knit = { id = "org.jetbrains.kotlinx.knit", version.ref="knit" }
36-
power-assert = { id = "com.bnorm.power.kotlin-power-assert", version.ref="power-assert" }

0 commit comments

Comments
 (0)