adamint / spotify-web-api-kotlin

Spotify Web API wrapper for Kotlin, Java, JS, and Native - Targets JVM, Android, JS (browser), Native (Desktop), and Apple tvOS/iOS. Includes a Spotify Web Playback SDK wrapper for Kotlin/JS, and a spotify-auth wrapper for Kotlin/Android.
https://adamint.github.io/spotify-web-api-kotlin-docs/
MIT License
194 stars 21 forks source link

Missing mavenCentral urls #321

Closed rnitame closed 1 year ago

rnitame commented 1 year ago

Describe the bug

image

image

https://repo.maven.apache.org/maven2/com/adamratzman/spotify-api-kotlin-iosarm64/4.0.0/spotify-api-kotlin-iosarm64-4.0.0.pom is correct.

To Reproduce gradle/libs.versions.toml

[versions]
spotify = "4.0.0"

[libraries]
spotify-api-kotlin = { module = "com.adamratzman:spotify-api-kotlin-core", version.ref = "spotify" }

Sync project.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

adamint commented 1 year ago

Hi, are you still encountering this issue? @rnitame

jlnstrk commented 1 year ago

Hi! I am. Gradle goes looking for spotify-web-api-kotlin-<target> artifacts even though they're actually under spotify-api-kotlin-<target>.

See targets' apiElements availableAt field here.

For example, for iosArm64ApiElements should point to: https://repo.maven.apache.org/maven2/com/adamratzman/spotify-api-kotlin-iosarm64/4.0.0/

But actually points to: https://repo.maven.apache.org/maven2/com/adamratzman/spotify-web-api-kotlin-iosarm64/4.0.0/

danielholmberg commented 1 year ago

Getting the same issue

A problem occurred configuring project ':shared'.
> Could not resolve all dependencies for configuration ':shared:iosArm64CompileKlibraries'.
   > Could not find com.adamratzman:spotify-web-api-kotlin-iosarm64:4.0.0.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/adamratzman/spotify-web-api-kotlin-iosarm64/4.0.0/spotify-web-api-kotlin-iosarm64-4.0.0.pom
       - https://repo.maven.apache.org/maven2/com/adamratzman/spotify-web-api-kotlin-iosarm64/4.0.0/spotify-web-api-kotlin-iosarm64-4.0.0.pom
       - https://maven.pkg.jetbrains.space/public/p/compose/dev/com/adamratzman/spotify-web-api-kotlin-iosarm64/4.0.0/spotify-web-api-kotlin-iosarm64-4.0.0.pom
     Required by:
         project :shared > com.adamratzman:spotify-api-kotlin-core:4.0.0
Niach commented 1 year ago

+1

This unfortunately breaks Kotlin Multiplatform Projects which include iOS targets

adamint commented 1 year ago

Hi all, apologies for not getting back to this. Let me take a look