Michael Friend
03/30/2022, 4:45 PMimplementation(project(:sdk))
. Publishing to maven local and pulling it in from there works just fine but in my end to end tests module (which targets all the same platforms as the sdk) it fails to resolve for the jvm target with this error. is there anything i need to change with the build of my sdk when upgrading to get this to work? Its able to find
Could not determine the dependencies of task ':end-to-end-tests:compileTestKotlinJvm'.
> Could not resolve all task dependencies for configuration ':end-to-end-tests:jvmTestCompileClasspath'.
> Could not resolve project :my-multiplatform-sdk.
Required by:
project :end-to-end-tests
> The consumer was configured to find an API of a library, preferably optimized for standard JVMs, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm'. However we cannot choose between the following variants of project :my-multiplatform-sdk:
- apiElements
- jvmApiElements
- jvmRuntimeElements
- ktlint
- runtimeElements
All of them match the consumer attributes:
- Variant 'apiElements' capability com.example.csdk:my-multiplatform-sdk:1.0.0-dev.32 declares an API of a library:
- Unmatched attributes:
- Provides its dependencies declared externally but the consumer didn't ask for it
- Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
- Provides compatibility with Java 15 but the consumer didn't ask for it
- Provides its elements packaged as a jar but the consumer didn't ask for it
- Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'jvm')
- Variant 'jvmApiElements' capability com.example.sdk:my-multiplatform-sdk:1.0.0-dev.32 declares an API of a library, preferably optimized for standard JVMs, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm':
- Unmatched attribute:
- Provides its elements packaged as a jar but the consumer didn't ask for it
- Variant 'jvmRuntimeElements' capability com.example.my-multiplatform-sdk:1.0.0-dev.32 declares a runtime of a library, preferably optimized for standard JVMs, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm':
- Unmatched attribute:
- Provides its elements packaged as a jar but the consumer didn't ask for it
-
... the rest of the variants go on