kuuuurt / multiplatform-paging

Kotlin Multiplatform library for Pagination
Apache License 2.0
250 stars 22 forks source link

Could not resolve all files for configuration ':shared:jvmCompileClasspath' #10

Closed GuilhE closed 2 years ago

GuilhE commented 3 years ago

Hello,

I'm having this problem:

Execution failed for task ':shared:compileKotlinJvm'.
> Could not resolve all files for configuration ':shared:jvmCompileClasspath'.
   > Could not resolve io.github.kuuuurt:multiplatform-paging:0.3.9.
     Required by:
         project :shared
      > No matching variant of io.github.kuuuurt:multiplatform-paging:0.3.9 was found. The consumer was configured to find an API of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm' but:
          - Variant 'commonMainMetadataElements-published' capability io.github.kuuuurt:multiplatform-paging:0.3.9:
              - Incompatible because this component declares a usage of 'kotlin-api' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'common' and the consumer needed an API of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm'
          - Variant 'debugApiElements-published' capability io.github.kuuuurt:multiplatform-paging:0.3.9 declares an API of a component:
              - Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm'
          - Variant 'debugRuntimeElements-published' capability io.github.kuuuurt:multiplatform-paging:0.3.9 declares a runtime of a component:
              - Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm'
          - Variant 'iosArm64ApiElements-published' capability io.github.kuuuurt:multiplatform-paging:0.3.9:
              - Incompatible because this component declares a usage of 'kotlin-api' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native' and the consumer needed an API of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm'
          - Variant 'iosArm64MetadataElements-published' capability io.github.kuuuurt:multiplatform-paging:0.3.9:
              - Incompatible because this component declares a usage of 'kotlin-metadata' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native' and the consumer needed an API of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm'
          - Variant 'iosX64ApiElements-published' capability io.github.kuuuurt:multiplatform-paging:0.3.9:
              - Incompatible because this component declares a usage of 'kotlin-api' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native' and the consumer needed an API of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm'
          - Variant 'iosX64MetadataElements-published' capability io.github.kuuuurt:multiplatform-paging:0.3.9:
              - Incompatible because this component declares a usage of 'kotlin-metadata' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native' and the consumer needed an API of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm'
          - Variant 'metadataApiElements-published' capability io.github.kuuuurt:multiplatform-paging:0.3.9:
              - Incompatible because this component declares a usage of 'kotlin-metadata' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'common' and the consumer needed an API of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm'
          - Variant 'releaseApiElements-published' capability io.github.kuuuurt:multiplatform-paging:0.3.9 declares an API of a component:
              - Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm'
          - Variant 'releaseRuntimeElements-published' capability io.github.kuuuurt:multiplatform-paging:0.3.9 declares a runtime of a component:
              - Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm'

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Which makes sense because this lib is only available for android() and ios() and it works just fine. But now I want to add a server app jvm() and multiplatformPaging is a dependency from commonMain.

I guess this is something this lib should provide, maybe a dummy target for situations like this (don't know if it is possible 😅 )