andylamax
06/04/2021, 12:28 AM> The consumer was configured to find an API of a library compatible with Java 15, preferably in the form of class files, and its dependencies declared externally. However we cannot choose between the following variants of tz.co.asoft:test-core:1.1.30:
- debugApiElements-published
- debugRuntimeElements-published
- jvmApiElements-published
- jvmRuntimeElements-published
- releaseApiElements-published
- releaseRuntimeElements-published
rnett
06/04/2021, 12:37 AMattributes { attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, 8) }
to the Kotlin target manually. The error usually says something about that though, so I'm not sure if that's your issue. And I've only seen it when building the dependency on a JDK > than the one I'm using.outgoingVariants
on your dependency project vs on a cloned Kotlinx.serialization or w/e and compare, worst case scenario. My other guess is that debug
and release
artifacts aren't supposed to be published, or you have some other issue with your publishing. For reference, outgoingVariants
on one of my multiplatform projects looks like https://gist.github.com/rnett/5f1acba4c1d6c0482e17c126a318dae9andylamax
06/04/2021, 12:48 AMThe consumer was configured to find an API of a library compatible with Java 15, preferably in the form of class files, and its dependencies declared externally. However we cannot choose between the following variants of tz.co.asoft:test-core:1.1.30:
- debugApiElements-published
- debugRuntimeElements-published
- jvmApiElements-published
- jvmRuntimeElements-published
- releaseApiElements-published
- releaseRuntimeElements-published
All of them match the consumer attributes:
rnett
06/04/2021, 12:52 AMoutgoingVariants
in the dependencyandylamax
06/04/2021, 12:57 AMrnett
06/04/2021, 1:00 AM