I have a multiplatform library which I have on jit...
# gradle
e
I have a multiplatform library which I have on jitpack, when I try to depend on it from just a pure java project I get this error:
Copy code
> Could not resolve com.github.Exerosis.Mynt:Mynt-metadata:1.0.4.
  Required by:
      project : > com.github.Exerosis:Mynt:1.0.4
   > Unable to find a matching variant of com.github.Exerosis.Mynt:Mynt-metadata:1.0.4:
       - Variant 'metadata-api' capability com.github.Exerosis.Mynt:Mynt-metadata:1.0.4:
           - Incompatible attributes:
               - Required org.gradle.usage 'java-runtime' and found incompatible value 'kotlin-api'.
               - Required org.jetbrains.kotlin.platform.type 'jvm' and found incompatible value 'common'.
           - Other attributes:
               - Required org.gradle.dependency.bundling 'external' but no value provided.
               - Required org.gradle.jvm.version '8' but no value provided.
               - Required org.gradle.libraryelements 'jar' but no value provided.
               - Found org.gradle.status 'release' but wasn't required.
As well as a similar one for Mynt-js, am I doing something wrong? I've even tried excluding those parts:
Copy code
implementation("com.github.Exerosis:Mynt:1.0.4") {
    exclude("com.github.Exerosis", "Mynt-js")
    exclude("com.github.Exerosis", "Mynt-metadata")
}
But no luck 😞
t
Did you try to depend on the Java subproject? https://github.com/jitpack/gradle-modular
e
Ah this does work, I tried this right away and somehow concluded it wasn't working. Thank you!
👍 1