-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Order of atomicfu and kotlin plugins in the classpath #384
Comments
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
The high level reason of why this problem occurred is that the compiler plugin has the same id as the I can suggest the temporary solution for this issue: Or the alternative solution will be to create AtomicfuGradlePluginLegacy with the different id, e.g. "kotlinx-atomicfu-legacy". And warn users in case of the compilation error to use the plugin with the id Pros:
Cons:
Both solutions are bad, and in this case I'd choose the first one, because it's easier. |
…-plugin. Do not require to add it manually. Fixes #384
I want to chime in and share a bug I came across when applying the plugin as described in the readme file. I added it to Maybe this is a misconfiguration on my side... |
@mainrs I don't thinks that's a misconfiguration. Java source sets support seems to be broken since |
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)
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)
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)
…-plugin. Do not require to add it manually. Fixes #384
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)
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)
After #377 a strange behaviour reproduced during application of
atomicfu-gradle-plugin
to kotlinx.coroutines.The order in which
atomicfu-gradle-plugin
andkotlin-gradle-plugin
are added to the classpath defines actual dependencies found on the classpath.I've described the problem in detail here: Kotlin/kotlinx.coroutines#3984.
The actual reason of this behaviour should be investigated.
The text was updated successfully, but these errors were encountered: