Skip to content

Commit 605ec56

Browse files
authored
Change the order of atomicfu and kotlin plugins in the classpath (#3984)
This commit changes the order of adding atomicfu and kotlin gradle plugin to the classpath. When `kotlin-gradle-plugin` is added first, `atomicfu-gradle-plugin` is not applied at all and this error is thrown: "e: Module kotlinx.atomicfu cannot be found in the module graph". The change of order fixes the issue. Should be properly investigated. This behaviour started to reproduce after this change in kotlinx-atomicfu (Kotlin/kotlinx-atomicfu#377). Here is the corresponding issue in atomicfu: Kotlin/kotlinx-atomicfu#384
1 parent 6de985f commit 605ec56

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,11 @@ buildscript {
5757
}
5858

5959
dependencies {
60+
// Please ensure that atomicfu-gradle-plugin is added to the classpath first, do not change the order, for details see #3984.
61+
// The corresponding issue in kotlinx-atomicfu: https://github.com/Kotlin/kotlinx-atomicfu/issues/384
62+
classpath "org.jetbrains.kotlinx:atomicfu-gradle-plugin:$atomicfu_version"
6063
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
6164
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokka_version"
62-
classpath "org.jetbrains.kotlinx:atomicfu-gradle-plugin:$atomicfu_version"
6365
classpath "org.jetbrains.kotlinx:kotlinx-knit:$knit_version"
6466
classpath "org.jetbrains.kotlinx:binary-compatibility-validator:$binary_compatibility_validator_version"
6567
classpath "ru.vyarus:gradle-animalsniffer-plugin:1.5.4" // Android API check

0 commit comments

Comments
 (0)