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

Library artifacts are published to jcenter only, which will close in 3 months #204

Open
entibaldi opened this issue Feb 4, 2021 · 15 comments

Comments

@entibaldi
Copy link

Hello! Your library is published only to jcenter. Please consider publishing it also to mavenCentral, as jcenter is shutting down in May.

Here is some info on how to publish artifacts to mavenCentral.

@jemshit
Copy link

jemshit commented Jun 3, 2021

Could not HEAD 'http://dl.bintray.com/amulyakhare/maven/com/yarolegovich/discrete-scrollview/1.5.1/discrete-scrollview-1.5.1.pom'. Received status code 403 from server: Forbidden

no jcenter() in code

Solution?

@stephanepechard
Copy link

@jemshit It's because the library is not available on any server but jcenter. If you removed it, you cannot have it.
That's the subject of this issue.

@devaniumesh
Copy link

Please make it available to another repository. jcenter() is deprecated already

@Ynnck123
Copy link

Ynnck123 commented Aug 5, 2021

Any updates on this topic?

@jemshit
Copy link

jemshit commented Aug 6, 2021

I published it on jitpack, you can do the same, check my last commit. Still, library internally uses jcenter() to pull another library, but i don't think it is problem, since jitpack will need it while building, once, not afterwards.

@einschneidend
Copy link

JCenter will allow downloads of existing artifacts indefinitely

https://developer.android.com/studio/build/jcenter-migration

@gildor
Copy link

gildor commented Jan 27, 2022

@einschneidend Jcenter is an unreliable service with a bad reputation, recently they had a big outage which break also Gradle Plugin Portal because they still rely on it.
Many companies restrict dependencies from Jcenter (we do the same), we re-published DiscreteScrollView to our own repository but now we plan to remove dependency on DiscreteScrollView because of lack of support

@avalanchas
Copy link

@gildor which other dependecy are you replacing it with? or are you coding this behaviour yourself now?

@gildor
Copy link

gildor commented Feb 14, 2022

@avalanchas yes, we already use ViewPager2 in some cases and plan to replace rest of usages but it require more cusomization

@idrios
Copy link

idrios commented Aug 11, 2022

I'm throwing a comment down because this widget is objectively better than trying to use Android's builtin RecyclerView with SnapHelper.

To anyone wanting to use this project but unable to because it's not published anymore, the steps you can take are:

  1. Clone this repository
  2. Build the project to get the .aar file. Easiest way to do this is to just run
./gradlew assemble

The release version of the project will be in

DiscreteScrollView -> library -> build -> outputs -> aar 
  1. Move library-release.aar from DiscreteScrollView into the libs file of your project, that is
YourProject -> app -> libs
  1. Update your project's build.gradle(app) to recognize .aar files if it doesn't already. So update this line in your dependencies:
dependencies {
    implementation fileTree(dir: "libs", include: ["*.jar","*.aar"])
    ....
}
  1. Resync gradle. Congrats on your new and improved RecyclerView!

This information will probably be outdated before it has a chance to help anyone.

@stephanepechard
Copy link

Thanks @idrios for the initial idea. It is even easier if you already have the lib as a dependency, you can just find the .aar file in your .gradle directory. Not up-to-date, but the lib is not much upgraded anyway.

@zhongxianyin
Copy link

zhongxianyin commented Feb 1, 2023 via email

@ttpho
Copy link

ttpho commented Jun 23, 2023

If you can not build arr file, you can download it

https://github.com/devapro/mmvn/blob/0675a4f7f0f15838a56451a26b130d252d228fdd/com/outbrain/discrete-scrollview/1.5.1/discrete-scrollview-1.5.1.aar

and use it

  • add file into libs folder
    app/libs/discrete-scrollview-1.5.1.aar

  • file app/build.gradle, add

implementation(name:'discrete-scrollview-1.5.1', ext:'aar')
  • file build.gradle, add
allprojects {
    repositories {
        // ...
        flatDir {
            dirs("libs")
        }
    }
}

@zhongxianyin
Copy link

zhongxianyin commented Jun 23, 2023 via email

1 similar comment
@zhongxianyin
Copy link

zhongxianyin commented Jul 8, 2023 via email

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