@@ -7,7 +7,6 @@ import org.gradle.util.VersionNumber
7
7
apply plugin : ' jdk-convention'
8
8
apply from : rootProject. file(" gradle/experimental.gradle" )
9
9
10
- def rootModule = " kotlinx.coroutines"
11
10
def coreModule = " kotlinx-coroutines-core"
12
11
// Not applicable for Kotlin plugin
13
12
def sourceless = [' kotlinx.coroutines' , ' site' , ' kotlinx-coroutines-bom' , ' integration-testing' ]
@@ -187,7 +186,7 @@ configure(subprojects.findAll { !sourceless.contains(it.name) && it.name != core
187
186
apply from : rootProject. file(" gradle/compile-${ platform} .gradle" )
188
187
dependencies {
189
188
// See comment below for rationale, it will be replaced with "project" dependency
190
- compile " org.jetbrains.kotlinx:kotlinx-coroutines-core: $v ersion "
189
+ compile project( " : $c oreModule " )
191
190
// the only way IDEA can resolve test classes
192
191
testCompile project(" :$coreModule " ). kotlin. targets. jvm. compilations. test. output. allOutputs
193
192
}
@@ -243,22 +242,6 @@ if (build_snapshot_train) {
243
242
}
244
243
}
245
244
246
- /*
247
- * Hack to trick nmpp plugin: we are renaming artifacts in order to provide backward compatibility for dependencies,
248
- * but publishing plugin does not re-read artifact names for kotlin-jvm projects, so renaming is not applied in pom files
249
- * for JVM-only projects.
250
- *
251
- * We artificially replace "project" dependency with "module" one to have proper names in pom files, but then substitute it
252
- * to have out "project" dependency back.
253
- */
254
- configure(subprojects. findAll { it. name != coreModule && it. name != rootModule }) {
255
- configurations. all {
256
- resolutionStrategy. dependencySubstitution {
257
- substitute module(" org.jetbrains.kotlinx:kotlinx-coroutines-core:$version " ) with project(' :kotlinx-coroutines-core' )
258
- }
259
- }
260
- }
261
-
262
245
// Redefine source sets because we are not using 'kotlin/main/fqn' folder convention
263
246
configure(subprojects. findAll {
264
247
! sourceless. contains(it. name) &&
0 commit comments