rsocket / rsocket-kotlin

RSocket Kotlin multi-platform implementation
http://rsocket.io
Apache License 2.0
552 stars 37 forks source link

Task ':compileKotlinMetadata' fails on '0.15.0-SNAPSHOT's #216

Closed afTrolle closed 2 years ago

afTrolle commented 2 years ago

Task ":compileKotlinMetadata" fails when multi-platform common module depends on '0.15.0-SNAPSHOT's

My build.gradle.kts file is the following

plugins {
    kotlin("multiplatform") version "1.6.10"
}

repositories {
    mavenCentral()
    maven("https://maven.pkg.jetbrains.space/kotlin/p/kotlin/dev")
    maven("https://maven.pkg.jetbrains.space/public/p/ktor/eap")
    maven {
        url = uri("https://maven.pkg.github.com/rsocket/rsocket-kotlin")
        credentials {
            username = project.findProperty("gpr.user") as String? ?: System.getenv("USERNAME")
            password = project.findProperty("gpr.key") as String? ?: System.getenv("TOKEN")
        }
    }
}

kotlin {
    jvm()
    iosX64()
    iosArm64()
    iosSimulatorArm64()

    sourceSets {
        val commonMain by getting {
            dependencies {
                implementation("io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT")
            }
        }
        val commonTest by getting
        val jvmMain by getting
        val jvmTest by getting
        val iosX64Main by getting
        val iosArm64Main by getting
        val iosSimulatorArm64Main by getting
        val iosMain by creating {
            dependsOn(commonMain)
            iosX64Main.dependsOn(this)
            iosArm64Main.dependsOn(this)
            iosSimulatorArm64Main.dependsOn(this)
        }
        val iosX64Test by getting
        val iosArm64Test by getting
        val iosSimulatorArm64Test by getting
        val iosTest by creating {
            dependsOn(commonTest)
            iosX64Test.dependsOn(this)
            iosArm64Test.dependsOn(this)
            iosSimulatorArm64Test.dependsOn(this)
        }
    }
}

Expected Behavior

Expected is that task should succeed as with version 0.14.3.

Actual Behavior

Running ./gradlew :compileKotlinMetadata causes the following error.

Execution failed for task ':compileKotlinMetadata'.
> Error while evaluating property 'filteredArgumentsMap' of task ':compileKotlinMetadata'
   > Could not resolve all files for configuration ':metadataCompileClasspath'.
      > Could not resolve io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT.
        Required by:
            project :
         > The consumer was configured to find a usage of 'kotlin-api' of a library, preferably optimized for non-jvm, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'common'. However we cannot choose between the following variants of io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT:20220301.093126-2:
             - iosArm32ApiElements-published
             - iosArm64ApiElements-published
             - iosSimulatorArm64ApiElements-published
             - iosX64ApiElements-published
             - jsIrApiElements-published
             - jsLegacyApiElements-published
             - jvmApiElements-published
             - jvmRuntimeElements-published
             - linuxX64ApiElements-published
             - macosArm64ApiElements-published
             - macosX64ApiElements-published
             - mingwX64ApiElements-published
             - tvosArm64ApiElements-published
             - tvosSimulatorArm64ApiElements-published
             - tvosX64ApiElements-published
             - watchosArm32ApiElements-published
             - watchosArm64ApiElements-published
             - watchosSimulatorArm64ApiElements-published
             - watchosX64ApiElements-published
             - watchosX86ApiElements-published
           All of them match the consumer attributes:
             - Variant 'iosArm32ApiElements-published' capability io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT declares a usage of 'kotlin-api' of a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native':
                 - Unmatched attributes:
                     - Provides attribute 'artifactType' with value 'org.jetbrains.kotlin.klib' but the consumer didn't ask for it
                     - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
                     - Provides integration status but the consumer didn't ask for it
                     - Provides attribute 'org.jetbrains.kotlin.native.target' with value 'ios_arm32' but the consumer didn't ask for it
             - Variant 'iosArm64ApiElements-published' capability io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT declares a usage of 'kotlin-api' of a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native':
                 - Unmatched attributes:
                     - Provides attribute 'artifactType' with value 'org.jetbrains.kotlin.klib' but the consumer didn't ask for it
                     - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
                     - Provides integration status but the consumer didn't ask for it
                     - Provides attribute 'org.jetbrains.kotlin.native.target' with value 'ios_arm64' but the consumer didn't ask for it
             - Variant 'iosSimulatorArm64ApiElements-published' capability io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT declares a usage of 'kotlin-api' of a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native':
                 - Unmatched attributes:
                     - Provides attribute 'artifactType' with value 'org.jetbrains.kotlin.klib' but the consumer didn't ask for it
                     - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
                     - Provides integration status but the consumer didn't ask for it
                     - Provides attribute 'org.jetbrains.kotlin.native.target' with value 'ios_simulator_arm64' but the consumer didn't ask for it
             - Variant 'iosX64ApiElements-published' capability io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT declares a usage of 'kotlin-api' of a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native':
                 - Unmatched attributes:
                     - Provides attribute 'artifactType' with value 'org.jetbrains.kotlin.klib' but the consumer didn't ask for it
                     - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
                     - Provides integration status but the consumer didn't ask for it
                     - Provides attribute 'org.jetbrains.kotlin.native.target' with value 'ios_x64' but the consumer didn't ask for it
             - Variant 'jsIrApiElements-published' capability io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT declares a usage of 'kotlin-api' of a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'js':
                 - Unmatched attributes:
                     - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
                     - Provides integration status but the consumer didn't ask for it
                     - Provides attribute 'org.jetbrains.kotlin.js.compiler' with value 'ir' but the consumer didn't ask for it
             - Variant 'jsLegacyApiElements-published' capability io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT declares a usage of 'kotlin-api' of a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'js':
                 - Unmatched attributes:
                     - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
                     - Provides integration status but the consumer didn't ask for it
                     - Provides attribute 'org.jetbrains.kotlin.js.compiler' with value 'legacy' but the consumer didn't ask for it
             - Variant 'jvmApiElements-published' capability io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT declares an API of a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm':
                 - Unmatched attributes:
                     - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
                     - Provides its elements packaged as a jar but the consumer didn't ask for it
                     - Provides integration status but the consumer didn't ask for it
             - Variant 'jvmRuntimeElements-published' capability io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT declares a runtime of a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm':
                 - Unmatched attributes:
                     - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
                     - Provides its elements packaged as a jar but the consumer didn't ask for it
                     - Provides integration status but the consumer didn't ask for it
             - Variant 'linuxX64ApiElements-published' capability io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT declares a usage of 'kotlin-api' of a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native':
                 - Unmatched attributes:
                     - Provides attribute 'artifactType' with value 'org.jetbrains.kotlin.klib' but the consumer didn't ask for it
                     - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
                     - Provides integration status but the consumer didn't ask for it
                     - Provides attribute 'org.jetbrains.kotlin.native.target' with value 'linux_x64' but the consumer didn't ask for it
             - Variant 'macosArm64ApiElements-published' capability io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT declares a usage of 'kotlin-api' of a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native':
                 - Unmatched attributes:
                     - Provides attribute 'artifactType' with value 'org.jetbrains.kotlin.klib' but the consumer didn't ask for it
                     - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
                     - Provides integration status but the consumer didn't ask for it
                     - Provides attribute 'org.jetbrains.kotlin.native.target' with value 'macos_arm64' but the consumer didn't ask for it
             - Variant 'macosX64ApiElements-published' capability io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT declares a usage of 'kotlin-api' of a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native':
                 - Unmatched attributes:
                     - Provides attribute 'artifactType' with value 'org.jetbrains.kotlin.klib' but the consumer didn't ask for it
                     - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
                     - Provides integration status but the consumer didn't ask for it
                     - Provides attribute 'org.jetbrains.kotlin.native.target' with value 'macos_x64' but the consumer didn't ask for it
             - Variant 'mingwX64ApiElements-published' capability io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT declares a usage of 'kotlin-api' of a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native':
                 - Unmatched attributes:
                     - Provides attribute 'artifactType' with value 'org.jetbrains.kotlin.klib' but the consumer didn't ask for it
                     - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
                     - Provides integration status but the consumer didn't ask for it
                     - Provides attribute 'org.jetbrains.kotlin.native.target' with value 'mingw_x64' but the consumer didn't ask for it
             - Variant 'tvosArm64ApiElements-published' capability io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT declares a usage of 'kotlin-api' of a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native':
                 - Unmatched attributes:
                     - Provides attribute 'artifactType' with value 'org.jetbrains.kotlin.klib' but the consumer didn't ask for it
                     - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
                     - Provides integration status but the consumer didn't ask for it
                     - Provides attribute 'org.jetbrains.kotlin.native.target' with value 'tvos_arm64' but the consumer didn't ask for it
             - Variant 'tvosSimulatorArm64ApiElements-published' capability io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT declares a usage of 'kotlin-api' of a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native':
                 - Unmatched attributes:
                     - Provides attribute 'artifactType' with value 'org.jetbrains.kotlin.klib' but the consumer didn't ask for it
                     - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
                     - Provides integration status but the consumer didn't ask for it
                     - Provides attribute 'org.jetbrains.kotlin.native.target' with value 'tvos_simulator_arm64' but the consumer didn't ask for it
             - Variant 'tvosX64ApiElements-published' capability io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT declares a usage of 'kotlin-api' of a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native':
                 - Unmatched attributes:
                     - Provides attribute 'artifactType' with value 'org.jetbrains.kotlin.klib' but the consumer didn't ask for it
                     - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
                     - Provides integration status but the consumer didn't ask for it
                     - Provides attribute 'org.jetbrains.kotlin.native.target' with value 'tvos_x64' but the consumer didn't ask for it
             - Variant 'watchosArm32ApiElements-published' capability io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT declares a usage of 'kotlin-api' of a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native':
                 - Unmatched attributes:
                     - Provides attribute 'artifactType' with value 'org.jetbrains.kotlin.klib' but the consumer didn't ask for it
                     - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
                     - Provides integration status but the consumer didn't ask for it
                     - Provides attribute 'org.jetbrains.kotlin.native.target' with value 'watchos_arm32' but the consumer didn't ask for it
             - Variant 'watchosArm64ApiElements-published' capability io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT declares a usage of 'kotlin-api' of a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native':
                 - Unmatched attributes:
                     - Provides attribute 'artifactType' with value 'org.jetbrains.kotlin.klib' but the consumer didn't ask for it
                     - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
                     - Provides integration status but the consumer didn't ask for it
                     - Provides attribute 'org.jetbrains.kotlin.native.target' with value 'watchos_arm64' but the consumer didn't ask for it
             - Variant 'watchosSimulatorArm64ApiElements-published' capability io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT declares a usage of 'kotlin-api' of a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native':
                 - Unmatched attributes:
                     - Provides attribute 'artifactType' with value 'org.jetbrains.kotlin.klib' but the consumer didn't ask for it
                     - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
                     - Provides integration status but the consumer didn't ask for it
                     - Provides attribute 'org.jetbrains.kotlin.native.target' with value 'watchos_simulator_arm64' but the consumer didn't ask for it
             - Variant 'watchosX64ApiElements-published' capability io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT declares a usage of 'kotlin-api' of a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native':
                 - Unmatched attributes:
                     - Provides attribute 'artifactType' with value 'org.jetbrains.kotlin.klib' but the consumer didn't ask for it
                     - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
                     - Provides integration status but the consumer didn't ask for it
                     - Provides attribute 'org.jetbrains.kotlin.native.target' with value 'watchos_x64' but the consumer didn't ask for it
             - Variant 'watchosX86ApiElements-published' capability io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT declares a usage of 'kotlin-api' of a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native':
                 - Unmatched attributes:
                     - Provides attribute 'artifactType' with value 'org.jetbrains.kotlin.klib' but the consumer didn't ask for it
                     - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
                     - Provides integration status but the consumer didn't ask for it
                     - Provides attribute 'org.jetbrains.kotlin.native.target' with value 'watchos_x86' but the consumer didn't ask for it
           The following variants were also considered but didn't match the requested attributes:
             - Variant 'iosArm32MetadataElements-published' capability io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT declares a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native':
                 - Incompatible because this component declares a usage of 'kotlin-metadata' of a component and the consumer needed a usage of 'kotlin-api' of a component
                 - Other compatible attribute:
                     - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
             - Variant 'iosArm64MetadataElements-published' capability io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT declares a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native':
                 - Incompatible because this component declares a usage of 'kotlin-metadata' of a component and the consumer needed a usage of 'kotlin-api' of a component
                 - Other compatible attribute:
                     - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
             - Variant 'iosSimulatorArm64MetadataElements-published' capability io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT declares a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native':
                 - Incompatible because this component declares a usage of 'kotlin-metadata' of a component and the consumer needed a usage of 'kotlin-api' of a component
                 - Other compatible attribute:
                     - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
             - Variant 'iosX64MetadataElements-published' capability io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT declares a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native':
                 - Incompatible because this component declares a usage of 'kotlin-metadata' of a component and the consumer needed a usage of 'kotlin-api' of a component
                 - Other compatible attribute:
                     - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
             - Variant 'jsIrRuntimeElements-published' capability io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT declares a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'js':
                 - Incompatible because this component declares a usage of 'kotlin-runtime' of a component and the consumer needed a usage of 'kotlin-api' of a component
                 - Other compatible attribute:
                     - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
             - Variant 'jsLegacyRuntimeElements-published' capability io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT declares a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'js':
                 - Incompatible because this component declares a usage of 'kotlin-runtime' of a component and the consumer needed a usage of 'kotlin-api' of a component
                 - Other compatible attribute:
                     - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
             - Variant 'macosArm64MetadataElements-published' capability io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT declares a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native':
                 - Incompatible because this component declares a usage of 'kotlin-metadata' of a component and the consumer needed a usage of 'kotlin-api' of a component
                 - Other compatible attribute:
                     - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
             - Variant 'macosX64MetadataElements-published' capability io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT declares a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native':
                 - Incompatible because this component declares a usage of 'kotlin-metadata' of a component and the consumer needed a usage of 'kotlin-api' of a component
                 - Other compatible attribute:
                     - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
             - Variant 'metadataApiElements' capability io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT declares a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'common':
                 - Incompatible because this component declares a usage of 'kotlin-metadata' of a component and the consumer needed a usage of 'kotlin-api' of a component
                 - Other compatible attribute:
                     - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
             - Variant 'tvosArm64MetadataElements-published' capability io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT declares a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native':
                 - Incompatible because this component declares a usage of 'kotlin-metadata' of a component and the consumer needed a usage of 'kotlin-api' of a component
                 - Other compatible attribute:
                     - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
             - Variant 'tvosSimulatorArm64MetadataElements-published' capability io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT declares a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native':
                 - Incompatible because this component declares a usage of 'kotlin-metadata' of a component and the consumer needed a usage of 'kotlin-api' of a component
                 - Other compatible attribute:
                     - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
             - Variant 'tvosX64MetadataElements-published' capability io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT declares a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native':
                 - Incompatible because this component declares a usage of 'kotlin-metadata' of a component and the consumer needed a usage of 'kotlin-api' of a component
                 - Other compatible attribute:
                     - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
             - Variant 'watchosArm32MetadataElements-published' capability io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT declares a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native':
                 - Incompatible because this component declares a usage of 'kotlin-metadata' of a component and the consumer needed a usage of 'kotlin-api' of a component
                 - Other compatible attribute:
                     - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
             - Variant 'watchosArm64MetadataElements-published' capability io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT declares a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native':
                 - Incompatible because this component declares a usage of 'kotlin-metadata' of a component and the consumer needed a usage of 'kotlin-api' of a component
                 - Other compatible attribute:
                     - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
             - Variant 'watchosSimulatorArm64MetadataElements-published' capability io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT declares a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native':
                 - Incompatible because this component declares a usage of 'kotlin-metadata' of a component and the consumer needed a usage of 'kotlin-api' of a component
                 - Other compatible attribute:
                     - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
             - Variant 'watchosX64MetadataElements-published' capability io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT declares a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native':
                 - Incompatible because this component declares a usage of 'kotlin-metadata' of a component and the consumer needed a usage of 'kotlin-api' of a component
                 - Other compatible attribute:
                     - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
             - Variant 'watchosX86MetadataElements-published' capability io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT declares a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native':
                 - Incompatible because this component declares a usage of 'kotlin-metadata' of a component and the consumer needed a usage of 'kotlin-api' of a component
                 - Other compatible attribute:
                     - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)

Steps to Reproduce

Created minimal project that to reproduce issue. https://github.com/afTrolle/rsocket-kotlin-common-variant-issue

1 . Clone project.

  1. Add (gpr.user & gpr.key) to gradle.properties or have (USERNAME & TOKEN) environment variables set with GitHub access-snapshot. (is optional if you already have cached snapshot)
  2. Run ./gradlew :compileKotlinMetadata or assemble
afTrolle commented 2 years ago

Potential solution

Into 'gradle.properties' add v

kotlin.mpp.enableGranularSourceSetsMetadata=true
kotlin.native.enableDependencyPropagation=false
afTrolle commented 2 years ago

Run ./gradlew :rsocket-core:outgoingVariants

Generates the following

> Task :rsocket-core:outgoingVariants
--------------------------------------------------
Variant iosArm32ApiElements
--------------------------------------------------
Description = API elements for main.

Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.usage                   = kotlin-api
    - org.jetbrains.kotlin.native.target = ios_arm32
    - org.jetbrains.kotlin.platform.type = native

Artifacts
    - build/classes/kotlin/iosArm32/main/klib/rsocket-core.klib (artifactType = klib)

--------------------------------------------------
Variant iosArm32CInteropApiElements
--------------------------------------------------
Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.libraryelements         = cinterop-klib
    - org.gradle.usage                   = kotlin-cinterop
    - org.jetbrains.kotlin.native.target = ios_arm32
    - org.jetbrains.kotlin.platform.type = native

--------------------------------------------------
Variant iosArm32MetadataElements
--------------------------------------------------
Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.usage                   = kotlin-metadata
    - org.jetbrains.kotlin.native.target = ios_arm32
    - org.jetbrains.kotlin.platform.type = native

Artifacts
    - build/libs/rsocket-core-iosarm32-0.15.0-SNAPSHOT-metadata.jar (artifactType = jar)

--------------------------------------------------
Variant iosArm64ApiElements
--------------------------------------------------
Description = API elements for main.

Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.usage                   = kotlin-api
    - org.jetbrains.kotlin.native.target = ios_arm64
    - org.jetbrains.kotlin.platform.type = native

Artifacts
    - build/classes/kotlin/iosArm64/main/klib/rsocket-core.klib (artifactType = klib)

--------------------------------------------------
Variant iosArm64CInteropApiElements
--------------------------------------------------
Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.libraryelements         = cinterop-klib
    - org.gradle.usage                   = kotlin-cinterop
    - org.jetbrains.kotlin.native.target = ios_arm64
    - org.jetbrains.kotlin.platform.type = native

--------------------------------------------------
Variant iosArm64MetadataElements
--------------------------------------------------
Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.usage                   = kotlin-metadata
    - org.jetbrains.kotlin.native.target = ios_arm64
    - org.jetbrains.kotlin.platform.type = native

Artifacts
    - build/libs/rsocket-core-iosarm64-0.15.0-SNAPSHOT-metadata.jar (artifactType = jar)

--------------------------------------------------
Variant iosSimulatorArm64ApiElements
--------------------------------------------------
Description = API elements for main.

Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.usage                   = kotlin-api
    - org.jetbrains.kotlin.native.target = ios_simulator_arm64
    - org.jetbrains.kotlin.platform.type = native

Artifacts
    - build/classes/kotlin/iosSimulatorArm64/main/klib/rsocket-core.klib (artifactType = klib)

--------------------------------------------------
Variant iosSimulatorArm64CInteropApiElements
--------------------------------------------------
Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.libraryelements         = cinterop-klib
    - org.gradle.usage                   = kotlin-cinterop
    - org.jetbrains.kotlin.native.target = ios_simulator_arm64
    - org.jetbrains.kotlin.platform.type = native

--------------------------------------------------
Variant iosSimulatorArm64MetadataElements
--------------------------------------------------
Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.usage                   = kotlin-metadata
    - org.jetbrains.kotlin.native.target = ios_simulator_arm64
    - org.jetbrains.kotlin.platform.type = native

Artifacts
    - build/libs/rsocket-core-iossimulatorarm64-0.15.0-SNAPSHOT-metadata.jar (artifactType = jar)

--------------------------------------------------
Variant iosX64ApiElements
--------------------------------------------------
Description = API elements for main.

Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.usage                   = kotlin-api
    - org.jetbrains.kotlin.native.target = ios_x64
    - org.jetbrains.kotlin.platform.type = native

Artifacts
    - build/classes/kotlin/iosX64/main/klib/rsocket-core.klib (artifactType = klib)

--------------------------------------------------
Variant iosX64CInteropApiElements
--------------------------------------------------
Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.libraryelements         = cinterop-klib
    - org.gradle.usage                   = kotlin-cinterop
    - org.jetbrains.kotlin.native.target = ios_x64
    - org.jetbrains.kotlin.platform.type = native

--------------------------------------------------
Variant iosX64MetadataElements
--------------------------------------------------
Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.usage                   = kotlin-metadata
    - org.jetbrains.kotlin.native.target = ios_x64
    - org.jetbrains.kotlin.platform.type = native

Artifacts
    - build/libs/rsocket-core-iosx64-0.15.0-SNAPSHOT-metadata.jar (artifactType = jar)

--------------------------------------------------
Variant jvmApiElements
--------------------------------------------------
Description = API elements for main.

Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = standard-jvm
    - org.gradle.libraryelements         = jar
    - org.gradle.usage                   = java-api
    - org.jetbrains.kotlin.platform.type = jvm

Artifacts
    - build/libs/rsocket-core-jvm-0.15.0-SNAPSHOT.jar (artifactType = jar)

--------------------------------------------------
Variant jvmRuntimeElements
--------------------------------------------------
Description = Elements of runtime for main.

Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = standard-jvm
    - org.gradle.libraryelements         = jar
    - org.gradle.usage                   = java-runtime
    - org.jetbrains.kotlin.platform.type = jvm

Artifacts
    - build/libs/rsocket-core-jvm-0.15.0-SNAPSHOT.jar (artifactType = jar)

--------------------------------------------------
Variant linuxX64ApiElements
--------------------------------------------------
Description = API elements for main.

Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.usage                   = kotlin-api
    - org.jetbrains.kotlin.native.target = linux_x64
    - org.jetbrains.kotlin.platform.type = native

Artifacts
    - build/classes/kotlin/linuxX64/main/klib/rsocket-core.klib (artifactType = klib)

--------------------------------------------------
Variant linuxX64CInteropApiElements
--------------------------------------------------
Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.libraryelements         = cinterop-klib
    - org.gradle.usage                   = kotlin-cinterop
    - org.jetbrains.kotlin.native.target = linux_x64
    - org.jetbrains.kotlin.platform.type = native

--------------------------------------------------
Variant linuxX64MetadataElements
--------------------------------------------------
Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.usage                   = kotlin-metadata
    - org.jetbrains.kotlin.native.target = linux_x64
    - org.jetbrains.kotlin.platform.type = native

--------------------------------------------------
Variant macosArm64ApiElements
--------------------------------------------------
Description = API elements for main.

Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.usage                   = kotlin-api
    - org.jetbrains.kotlin.native.target = macos_arm64
    - org.jetbrains.kotlin.platform.type = native

Artifacts
    - build/classes/kotlin/macosArm64/main/klib/rsocket-core.klib (artifactType = klib)

--------------------------------------------------
Variant macosArm64CInteropApiElements
--------------------------------------------------
Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.libraryelements         = cinterop-klib
    - org.gradle.usage                   = kotlin-cinterop
    - org.jetbrains.kotlin.native.target = macos_arm64
    - org.jetbrains.kotlin.platform.type = native

--------------------------------------------------
Variant macosArm64MetadataElements
--------------------------------------------------
Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.usage                   = kotlin-metadata
    - org.jetbrains.kotlin.native.target = macos_arm64
    - org.jetbrains.kotlin.platform.type = native

Artifacts
    - build/libs/rsocket-core-macosarm64-0.15.0-SNAPSHOT-metadata.jar (artifactType = jar)

--------------------------------------------------
Variant macosX64ApiElements
--------------------------------------------------
Description = API elements for main.

Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.usage                   = kotlin-api
    - org.jetbrains.kotlin.native.target = macos_x64
    - org.jetbrains.kotlin.platform.type = native

Artifacts
    - build/classes/kotlin/macosX64/main/klib/rsocket-core.klib (artifactType = klib)

--------------------------------------------------
Variant macosX64CInteropApiElements
--------------------------------------------------
Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.libraryelements         = cinterop-klib
    - org.gradle.usage                   = kotlin-cinterop
    - org.jetbrains.kotlin.native.target = macos_x64
    - org.jetbrains.kotlin.platform.type = native

--------------------------------------------------
Variant macosX64MetadataElements
--------------------------------------------------
Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.usage                   = kotlin-metadata
    - org.jetbrains.kotlin.native.target = macos_x64
    - org.jetbrains.kotlin.platform.type = native

Artifacts
    - build/libs/rsocket-core-macosx64-0.15.0-SNAPSHOT-metadata.jar (artifactType = jar)

--------------------------------------------------
Variant metadataApiElements
--------------------------------------------------
Description = API elements for main.

Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.usage                   = kotlin-metadata
    - org.jetbrains.kotlin.platform.type = common

Artifacts
    - build/libs/rsocket-core-metadata-0.15.0-SNAPSHOT.jar (artifactType = jar)

--------------------------------------------------
Variant mingwX64ApiElements
--------------------------------------------------
Description = API elements for main.

Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.usage                   = kotlin-api
    - org.jetbrains.kotlin.native.target = mingw_x64
    - org.jetbrains.kotlin.platform.type = native

Artifacts
    - build/classes/kotlin/mingwX64/main/klib/rsocket-core.klib (artifactType = klib)

--------------------------------------------------
Variant mingwX64CInteropApiElements
--------------------------------------------------
Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.libraryelements         = cinterop-klib
    - org.gradle.usage                   = kotlin-cinterop
    - org.jetbrains.kotlin.native.target = mingw_x64
    - org.jetbrains.kotlin.platform.type = native

--------------------------------------------------
Variant mingwX64MetadataElements
--------------------------------------------------
Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.usage                   = kotlin-metadata
    - org.jetbrains.kotlin.native.target = mingw_x64
    - org.jetbrains.kotlin.platform.type = native

--------------------------------------------------
Variant tvosArm64ApiElements
--------------------------------------------------
Description = API elements for main.

Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.usage                   = kotlin-api
    - org.jetbrains.kotlin.native.target = tvos_arm64
    - org.jetbrains.kotlin.platform.type = native

Artifacts
    - build/classes/kotlin/tvosArm64/main/klib/rsocket-core.klib (artifactType = klib)

--------------------------------------------------
Variant tvosArm64CInteropApiElements
--------------------------------------------------
Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.libraryelements         = cinterop-klib
    - org.gradle.usage                   = kotlin-cinterop
    - org.jetbrains.kotlin.native.target = tvos_arm64
    - org.jetbrains.kotlin.platform.type = native

--------------------------------------------------
Variant tvosArm64MetadataElements
--------------------------------------------------
Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.usage                   = kotlin-metadata
    - org.jetbrains.kotlin.native.target = tvos_arm64
    - org.jetbrains.kotlin.platform.type = native

Artifacts
    - build/libs/rsocket-core-tvosarm64-0.15.0-SNAPSHOT-metadata.jar (artifactType = jar)

--------------------------------------------------
Variant tvosSimulatorArm64ApiElements
--------------------------------------------------
Description = API elements for main.

Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.usage                   = kotlin-api
    - org.jetbrains.kotlin.native.target = tvos_simulator_arm64
    - org.jetbrains.kotlin.platform.type = native

Artifacts
    - build/classes/kotlin/tvosSimulatorArm64/main/klib/rsocket-core.klib (artifactType = klib)

--------------------------------------------------
Variant tvosSimulatorArm64CInteropApiElements
--------------------------------------------------
Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.libraryelements         = cinterop-klib
    - org.gradle.usage                   = kotlin-cinterop
    - org.jetbrains.kotlin.native.target = tvos_simulator_arm64
    - org.jetbrains.kotlin.platform.type = native

--------------------------------------------------
Variant tvosSimulatorArm64MetadataElements
--------------------------------------------------
Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.usage                   = kotlin-metadata
    - org.jetbrains.kotlin.native.target = tvos_simulator_arm64
    - org.jetbrains.kotlin.platform.type = native

Artifacts
    - build/libs/rsocket-core-tvossimulatorarm64-0.15.0-SNAPSHOT-metadata.jar (artifactType = jar)

--------------------------------------------------
Variant tvosX64ApiElements
--------------------------------------------------
Description = API elements for main.

Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.usage                   = kotlin-api
    - org.jetbrains.kotlin.native.target = tvos_x64
    - org.jetbrains.kotlin.platform.type = native

Artifacts
    - build/classes/kotlin/tvosX64/main/klib/rsocket-core.klib (artifactType = klib)

--------------------------------------------------
Variant tvosX64CInteropApiElements
--------------------------------------------------
Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.libraryelements         = cinterop-klib
    - org.gradle.usage                   = kotlin-cinterop
    - org.jetbrains.kotlin.native.target = tvos_x64
    - org.jetbrains.kotlin.platform.type = native

--------------------------------------------------
Variant tvosX64MetadataElements
--------------------------------------------------
Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.usage                   = kotlin-metadata
    - org.jetbrains.kotlin.native.target = tvos_x64
    - org.jetbrains.kotlin.platform.type = native

Artifacts
    - build/libs/rsocket-core-tvosx64-0.15.0-SNAPSHOT-metadata.jar (artifactType = jar)

--------------------------------------------------
Variant watchosArm32ApiElements
--------------------------------------------------
Description = API elements for main.

Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.usage                   = kotlin-api
    - org.jetbrains.kotlin.native.target = watchos_arm32
    - org.jetbrains.kotlin.platform.type = native

Artifacts
    - build/classes/kotlin/watchosArm32/main/klib/rsocket-core.klib (artifactType = klib)

--------------------------------------------------
Variant watchosArm32CInteropApiElements
--------------------------------------------------
Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.libraryelements         = cinterop-klib
    - org.gradle.usage                   = kotlin-cinterop
    - org.jetbrains.kotlin.native.target = watchos_arm32
    - org.jetbrains.kotlin.platform.type = native

--------------------------------------------------
Variant watchosArm32MetadataElements
--------------------------------------------------
Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.usage                   = kotlin-metadata
    - org.jetbrains.kotlin.native.target = watchos_arm32
    - org.jetbrains.kotlin.platform.type = native

Artifacts
    - build/libs/rsocket-core-watchosarm32-0.15.0-SNAPSHOT-metadata.jar (artifactType = jar)

--------------------------------------------------
Variant watchosArm64ApiElements
--------------------------------------------------
Description = API elements for main.

Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.usage                   = kotlin-api
    - org.jetbrains.kotlin.native.target = watchos_arm64
    - org.jetbrains.kotlin.platform.type = native

Artifacts
    - build/classes/kotlin/watchosArm64/main/klib/rsocket-core.klib (artifactType = klib)

--------------------------------------------------
Variant watchosArm64CInteropApiElements
--------------------------------------------------
Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.libraryelements         = cinterop-klib
    - org.gradle.usage                   = kotlin-cinterop
    - org.jetbrains.kotlin.native.target = watchos_arm64
    - org.jetbrains.kotlin.platform.type = native

--------------------------------------------------
Variant watchosArm64MetadataElements
--------------------------------------------------
Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.usage                   = kotlin-metadata
    - org.jetbrains.kotlin.native.target = watchos_arm64
    - org.jetbrains.kotlin.platform.type = native

Artifacts
    - build/libs/rsocket-core-watchosarm64-0.15.0-SNAPSHOT-metadata.jar (artifactType = jar)

--------------------------------------------------
Variant watchosSimulatorArm64ApiElements
--------------------------------------------------
Description = API elements for main.

Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.usage                   = kotlin-api
    - org.jetbrains.kotlin.native.target = watchos_simulator_arm64
    - org.jetbrains.kotlin.platform.type = native

Artifacts
    - build/classes/kotlin/watchosSimulatorArm64/main/klib/rsocket-core.klib (artifactType = klib)

--------------------------------------------------
Variant watchosSimulatorArm64CInteropApiElements
--------------------------------------------------
Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.libraryelements         = cinterop-klib
    - org.gradle.usage                   = kotlin-cinterop
    - org.jetbrains.kotlin.native.target = watchos_simulator_arm64
    - org.jetbrains.kotlin.platform.type = native

--------------------------------------------------
Variant watchosSimulatorArm64MetadataElements
--------------------------------------------------
Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.usage                   = kotlin-metadata
    - org.jetbrains.kotlin.native.target = watchos_simulator_arm64
    - org.jetbrains.kotlin.platform.type = native

Artifacts
    - build/libs/rsocket-core-watchossimulatorarm64-0.15.0-SNAPSHOT-metadata.jar (artifactType = jar)

--------------------------------------------------
Variant watchosX64ApiElements
--------------------------------------------------
Description = API elements for main.

Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.usage                   = kotlin-api
    - org.jetbrains.kotlin.native.target = watchos_x64
    - org.jetbrains.kotlin.platform.type = native

Artifacts
    - build/classes/kotlin/watchosX64/main/klib/rsocket-core.klib (artifactType = klib)

--------------------------------------------------
Variant watchosX64CInteropApiElements
--------------------------------------------------
Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.libraryelements         = cinterop-klib
    - org.gradle.usage                   = kotlin-cinterop
    - org.jetbrains.kotlin.native.target = watchos_x64
    - org.jetbrains.kotlin.platform.type = native

--------------------------------------------------
Variant watchosX64MetadataElements
--------------------------------------------------
Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.usage                   = kotlin-metadata
    - org.jetbrains.kotlin.native.target = watchos_x64
    - org.jetbrains.kotlin.platform.type = native

Artifacts
    - build/libs/rsocket-core-watchosx64-0.15.0-SNAPSHOT-metadata.jar (artifactType = jar)

--------------------------------------------------
Variant watchosX86ApiElements
--------------------------------------------------
Description = API elements for main.

Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.usage                   = kotlin-api
    - org.jetbrains.kotlin.native.target = watchos_x86
    - org.jetbrains.kotlin.platform.type = native

Artifacts
    - build/classes/kotlin/watchosX86/main/klib/rsocket-core.klib (artifactType = klib)

--------------------------------------------------
Variant watchosX86CInteropApiElements
--------------------------------------------------
Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.libraryelements         = cinterop-klib
    - org.gradle.usage                   = kotlin-cinterop
    - org.jetbrains.kotlin.native.target = watchos_x86
    - org.jetbrains.kotlin.platform.type = native

--------------------------------------------------
Variant watchosX86MetadataElements
--------------------------------------------------
Capabilities
    - io.rsocket.kotlin:rsocket-core:0.15.0-SNAPSHOT (default capability)
Attributes
    - artifactType                       = org.jetbrains.kotlin.klib
    - org.gradle.category                = library
    - org.gradle.jvm.environment         = non-jvm
    - org.gradle.usage                   = kotlin-metadata
    - org.jetbrains.kotlin.native.target = watchos_x86
    - org.jetbrains.kotlin.platform.type = native

Artifacts
    - build/libs/rsocket-core-watchosx86-0.15.0-SNAPSHOT-metadata.jar (artifactType = jar)
olme04 commented 2 years ago

Hey @afTrolle, current snapshots are built with kotlin 1.6.20-M1-106 (because ktor uses it, to completely support new native MM). Can you try to use f.e. 1.6.20-RC instead of 1.6.10?

afTrolle commented 2 years ago

Thank you @olme04, that fixed it.