You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Gradle] Fix testFixtures compilation classpath may miss declared dependencies
Gradle test-fixtures plugin creates the own set of configurations which
are not connected to the Kotlin compilation created for test fixtures.
This leads to a different set of dependencies depending on which
configuration they were declared.
Fix ensures both compile and runtime classpaths are synced between the
Java and Kotlin set of configurations.
^KT-77466 Verification Pending
Copy file name to clipboardExpand all lines: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/kmp-jvm-test-fixtures/lib/src/testFixtures/kotlin/LibTestFixtures.kt
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@ package com.foo
3
3
importcom.example.CommonMain
4
4
importcom.example.JvmMain
5
5
importcom.example.JvmTestFixtures
6
+
importcom.example.JavaTestFixtures
6
7
importkotlinx.coroutines.*
7
8
importkotlinx.serialization.json.Json
8
9
@@ -19,3 +20,11 @@ suspend fun shouldWork() = coroutineScope {
Copy file name to clipboardExpand all lines: libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/jvm/KotlinJvmCompilationWireJavaSourcesSideEffect.kt
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -103,6 +103,7 @@ internal val KotlinTarget.kotlinSourceSetDslName: String
103
103
else->KOTLIN_DSL_NAME
104
104
}
105
105
106
+
// see https://docs.gradle.org/current/userguide/java_library_plugin.html#sec:java_library_configurations_graph
Copy file name to clipboardExpand all lines: libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/jvm/KotlinJvmTargetTestFixturesSideEffect.kt
Copy file name to clipboardExpand all lines: libraries/tools/kotlin-gradle-plugin/src/functionalTest/kotlin/org/jetbrains/kotlin/gradle/unitTests/TestFixturesTest.kt
0 commit comments