Skip to content

Commit 5b44363

Browse files
committed
Fixed jvmTest for native only build
1 parent f1b58e5 commit 5b44363

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

krpc/krpc-core/build.gradle.kts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/*
2+
* Copyright 2023-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
3+
*/
4+
5+
import org.gradle.kotlin.dsl.withType
6+
import org.jetbrains.kotlin.gradle.targets.jvm.tasks.KotlinJvmTest
7+
18
/*
29
* Copyright 2023-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
310
*/
@@ -43,7 +50,7 @@ kotlin {
4350
}
4451
}
4552

46-
tasks.jvmTest {
53+
tasks.withType<KotlinJvmTest> {
4754
// lincheck agent
4855
jvmArgs("-XX:+EnableDynamicAgentLoading")
4956
}

krpc/krpc-test/build.gradle.kts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,9 @@ kotlin {
7878
explicitApi = ExplicitApiMode.Disabled
7979
}
8080

81-
tasks.jvmTest {
81+
tasks.withType<KotlinJvmTest> {
8282
// lincheck agent
8383
jvmArgs("-XX:+EnableDynamicAgentLoading")
84-
}
85-
86-
tasks.withType<KotlinJvmTest> {
8784
environment("LIBRARY_VERSION", libs.versions.kotlinx.rpc.get())
8885
}
8986

0 commit comments

Comments
 (0)