Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Re)publish the library on maven central #96

Closed
ilya-g opened this issue Feb 3, 2021 · 13 comments
Closed

(Re)publish the library on maven central #96

ilya-g opened this issue Feb 3, 2021 · 13 comments

Comments

@ilya-g
Copy link
Member

ilya-g commented Feb 3, 2021

Considering the news that jcenter is going to sunset soon, we need to setup publishing to maven central repository.

@Jose-Parente
Copy link

The latest canary of Android Studio has now removed jcenter() in favor of mavenCentral()

@yahyatinani
Copy link

+1

2 similar comments
@WebTiger89
Copy link

+1

@laurenyew-nytimes
Copy link

+1

cristan added a commit to cristan/CountDownTimer that referenced this issue Mar 10, 2021
It can't find org.jetbrains.kotlinx:kotlinx-collections-immutable-jvm:0.3.3

They are working on it: Kotlin/kotlinx.collections.immutable#96
@ykws
Copy link

ykws commented Mar 17, 2021

Kotlin/kotlinx.html#173 (comment)

Is it recommended to use the following snippet similar to the linked issue?

jcenter {
    content {
        includeModule("org.jetbrains.kotlinx", "kotlinx-collections-immutable-jvm")
    }
}

@saurabhraj042
Copy link

facing same issue

@jeremyrempel
Copy link

Kotlin/kotlinx.html#173 (comment)

Is it recommended to use the following snippet similar to the linked issue?

jcenter {
    content {
        includeModule("org.jetbrains.kotlinx", "kotlinx-collections-immutable-jvm")
    }
}

Yes. The snippet just means the only dependency that can be obtained from jcenter is the specified one.

@boswelja
Copy link

boswelja commented Mar 25, 2021

Seems to be live now
https://mvnrepository.com/artifact/org.jetbrains.kotlinx/kotlinx-collections-immutable-jvm/0.3.3
I've removed jcenter from my project and I haven't run into any issues yet
Edit: Seems like my local cache was filling in, even though I cleared caches and restarted. The artifact isn't found though strangely I can find it at the link above.

@maxcruz
Copy link

maxcruz commented Mar 28, 2021

Unfortunately, it's still failing when you compile without jcenter():

Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Could not find org.jetbrains.kotlinx:kotlinx-collections-immutable-jvm:0.3.3.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/org/jetbrains/kotlinx/kotlinx-collections-immutable-jvm/0.3.3/kotlinx-collections-immutable-jvm-0.3.3.pom
       - https://repo.maven.apache.org/maven2/org/jetbrains/kotlinx/kotlinx-collections-immutable-jvm/0.3.3/kotlinx-collections-immutable-jvm-0.3.3.pom
     Required by:
         project :app > androidx.compose.ui:ui:1.0.0-beta02 > androidx.compose.runtime:runtime:1.0.0-beta02

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

@qurbonzoda
Copy link
Contributor

The new version of the library, 0.3.4, is published to the Maven Central repository.
Thank you for the patience!
Readme will be updated soon.

@tajchert
Copy link

tajchert commented Apr 1, 2021

I'm also facing the same issue, can you also republish 0.3.3 version?

Current version of androidx.compose.runtime:runtime:1.0.0-beta03 on Android uses 0.3.3 version:

Execution failed for task ':xxxx'.
> Could not resolve all files for configuration ':xxxx:debugAndroidTestRuntimeClasspath'.
   > Could not resolve org.jetbrains.kotlinx:kotlinx-collections-immutable-jvm:0.3.3.
     Required by:
         project :xxx > androidx.compose.runtime:runtime:1.0.0-beta03
      > Could not resolve org.jetbrains.kotlinx:kotlinx-collections-immutable-jvm:0.3.3.

@maxcruz
Copy link

maxcruz commented Apr 4, 2021

I'm also facing the same issue, can you also republish 0.3.3 version?

Current version of androidx.compose.runtime:runtime:1.0.0-beta03 on Android uses 0.3.3 version:

Execution failed for task ':xxxx'.
> Could not resolve all files for configuration ':xxxx:debugAndroidTestRuntimeClasspath'.
   > Could not resolve org.jetbrains.kotlinx:kotlinx-collections-immutable-jvm:0.3.3.
     Required by:
         project :xxx > androidx.compose.runtime:runtime:1.0.0-beta03
      > Could not resolve org.jetbrains.kotlinx:kotlinx-collections-immutable-jvm:0.3.3.

I guess this issue is going to be solved when compose-ui moves to 1.0.0-beta04
As a workaround, you could add version 0.3.4 explicitly to force the dependency resolution.

implementation "org.jetbrains.kotlinx:kotlinx-collections-immutable-jvm:0.3.4"

@qurbonzoda
Copy link
Contributor

As of now we have no plans to republish the old versions to Maven Central.
We have discussed the issue with compose-ui folks, they will shade the dependency or will move to 0.3.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests