Skip to content

Commit

Permalink
This commit changes the order of adding atomicfu and kotlin gradle pl…
Browse files Browse the repository at this point in the history
…ugin to the classpath.

 in the global buildscript: when atomicfu-gradle-plugin is not added to the classpath first, it is not applied at all.
 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".

This behaviour started to reproduce after this change in kotlinx-atomicfu (Kotlin/kotlinx-atomicfu#377).

The problem was revealed while running a train build against kotlin-community/dev branches before kotlinx-atomicfu 0.23.2.
  • Loading branch information
mvicsokolova committed Dec 12, 2023
1 parent 60e8acb commit 11cdd46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ buildscript {
}

dependencies {
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 11cdd46

Please sign in to comment.