murdock
03/25/2021, 6:58 PMCould not determine the dependencies of task ':common:core:compileStagingReleaseKotlin'.
> Could not resolve all task dependencies for configuration ':common:core:kotlinCompilerPluginClasspath'.
> Could not resolve com.github.milis92.krang:krang-runtime:2.0.2.
Required by:
project :common:core > com.github.milis92.krang:krang-compiler-plugin:2.0.2
> Cannot choose between the following variants of com.github.milis92.krang:krang-runtime:2.0.2:
- debugRuntimeElements-published
- jvmRuntimeElements-published
- releaseRuntimeElements-published
All of them match the consumer attributes:
- Variant 'debugRuntimeElements-published' capability com.github.milis92.krang:krang-runtime:2.0.2:
- Unmatched attributes:
- Provides com.android.build.api.attributes.BuildTypeAttr 'debug' but the consumer didn't ask for it
- Provides com.android.build.api.attributes.VariantAttr 'debug' but the consumer didn't ask for it
- Provides org.gradle.status 'release' but the consumer didn't ask for it
- Provides org.gradle.usage 'java-runtime' but the consumer didn't ask for it
- Provides org.jetbrains.kotlin.platform.type 'androidJvm' but the consumer didn't ask for it
- Variant 'jvmRuntimeElements-published' capability com.github.milis92.krang:krang-runtime:2.0.2:
- Unmatched attributes:
- Provides org.gradle.libraryelements 'jar' but the consumer didn't ask for it
- Provides org.gradle.status 'release' but the consumer didn't ask for it
- Provides org.gradle.usage 'java-runtime' but the consumer didn't ask for it
- Provides org.jetbrains.kotlin.platform.type 'jvm' but the consumer didn't ask for it
- Variant 'releaseRuntimeElements-published' capability com.github.milis92.krang:krang-runtime:2.0.2:
- Unmatched attributes:
- Provides com.android.build.api.attributes.BuildTypeAttr 'release' but the consumer didn't ask for it
- Provides com.android.build.api.attributes.VariantAttr 'release' but the consumer didn't ask for it
- Provides org.gradle.status 'release' but the consumer didn't ask for it
- Provides org.gradle.usage 'java-runtime' but the consumer didn't ask for it
- Provides org.jetbrains.kotlin.platform.type 'androidJvm' but the consumer didn't ask for it
This is a compiler plugin whos runtime library is mp, and that runtime library is attached directly over a gradle plugin.
Everything works when i use composite builds, but im getting this exception when i build a regular project
Looks like gradle cant make a decision between androidJvm and regular Jvm
Runtime build.gradle.tks
Gradle plugin