Skip to content

Commit

Permalink
Change the order of atomicfu and kotlin plugins in the classpath (#3984)
Browse files Browse the repository at this point in the history
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

(cherry picked from commit 605ec56)
  • Loading branch information
mvicsokolova authored and woainikk committed Jan 18, 2024
1 parent a665305 commit 294f618
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,11 @@ buildscript {
}

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

0 comments on commit 294f618

Please sign in to comment.