Skip to content

Publish jars for desktop use #8

@hakanai

Description

@hakanai

My app is using Compose Desktop, rather than Android. While trying to import this dependency:

      > Could not resolve com.github.skgmn:composetooltip:0.2.0.
        Required by:
            project :
         > No matching variant of com.github.skgmn:composetooltip:0.2.0 was found. The consumer was configured to find an API of a library compatible with Java 17, preferably in the form of class files, preferably optimized for standard JVMs, and its dependencies declared externally, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm' but:
             - Variant 'releaseApiPublication' capability com.github.skgmn:composetooltip:0.2.0 declares an API of a library, and its dependencies declared externally:
                 - Incompatible because this component declares a component, with the library elements 'aar' and the consumer needed a component, preferably in the form of class files
                 - Other compatible attributes:
                     - Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
                     - Doesn't say anything about its target Java version (required compatibility with Java 17)
                     - Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'jvm')
             - Variant 'releaseRuntimePublication' capability com.github.skgmn:composetooltip:0.2.0 declares a runtime of a library, and its dependencies declared externally:
                 - Incompatible because this component declares a component, with the library elements 'aar' and the consumer needed a component, preferably in the form of class files
                 - Other compatible attributes:
                     - Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
                     - Doesn't say anything about its target Java version (required compatibility with Java 17)
                     - Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'jvm')

It just sounds like the aar files are published in Maven but not the jars.

Looking at the imports, it looks like this library doesn't use anything Android-specific, but I guess I can't be 100% sure because Compose does have a habit of hiding Android-specific classes mixed into the same package as cross-platform ones.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions