https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
r

Robert Jaros

03/07/2020, 12:50 PM
Or maybe another question: is there any way to use multiplatform artifact from a kotlin compiler gradle plugin?
I have such a problem and no idea how can I fix this:
Copy code
Execution failed for task ':compileKotlinMetadata'.
> Could not resolve all files for configuration ':kotlinCompilerPluginClasspath'.
   > Could not resolve pl.treksoft:kvision-common-annotations:3.1.0-SNAPSHOT.
     Required by:
         project : > pl.treksoft:kvision-compiler-plugin:3.1.0-SNAPSHOT
      > Cannot choose between the following variants of pl.treksoft:kvision-common-annotations:3.1.0-SNAPSHOT:
          - js-api
          - js-runtime
          - jvm-api
          - jvm-runtime
          - metadata-api
If I remove gradle metadata from maven artifact
kvision-compiler-plugin
(by removing
.module
file) I have similar but different error:
Copy code
Execution failed for task ':compileKotlinMetadata'.
> Could not resolve all files for configuration ':kotlinCompilerPluginClasspath'.
   > Could not resolve pl.treksoft:kvision-common-annotations-jvm:3.1.0-SNAPSHOT.
     Required by:
         project : > pl.treksoft:kvision-compiler-plugin:3.1.0-SNAPSHOT
      > Cannot choose between the following variants of pl.treksoft:kvision-common-annotations-jvm:3.1.0-SNAPSHOT:
          - jvm-api
          - jvm-runtime
          - metadata-api
l

louiscad

03/07/2020, 1:04 PM
@melix What to do in such case to tell Gradle to pick
jvm-api
and
jvm-runtime
for the appropriate configurations?