Skip to content

Commit ccd1333

Browse files
committed
Workaround KT-39037
1 parent 0a9fe66 commit ccd1333

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

kotlinx-coroutines-core/build.gradle

+9-2
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,17 @@ kotlin.sourceSets {
6060
}
6161

6262
jvmTest.dependencies {
63-
api "org.jetbrains.kotlinx:lincheck:$lincheck_version"
63+
// This is a workaround for https://youtrack.jetbrains.com/issue/KT-39037
64+
def excludingCurrentProject = { dependency ->
65+
def result = project.dependencies.create(dependency)
66+
result.exclude(module: project.name)
67+
return result
68+
}
69+
70+
api(excludingCurrentProject("org.jetbrains.kotlinx:lincheck:$lincheck_version"))
6471
api "org.jetbrains.kotlinx:kotlinx-knit-test:$knit_version"
6572
api "com.esotericsoftware:kryo:4.0.0"
66-
implementation project (":android-unit-tests")
73+
implementation(excludingCurrentProject(project(":android-unit-tests")))
6774
}
6875
}
6976

0 commit comments

Comments
 (0)