DiscreteScrollView icon indicating copy to clipboard operation
DiscreteScrollView copied to clipboard

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

Open entibaldi opened this issue 4 years ago • 16 comments

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.

entibaldi avatar Feb 04 '21 11:02 entibaldi

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?

jemshit avatar Jun 03 '21 10:06 jemshit

@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.

stephanepechard avatar Jun 03 '21 15:06 stephanepechard

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

devaniumesh avatar Jun 08 '21 10:06 devaniumesh

Any updates on this topic?

Ynnck123 avatar Aug 05 '21 18:08 Ynnck123

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.

jemshit avatar Aug 06 '21 07:08 jemshit

JCenter will allow downloads of existing artifacts indefinitely

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

einschneidend avatar Jan 27 '22 01:01 einschneidend

@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

gildor avatar Jan 27 '22 03:01 gildor

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

avalanchas avatar Feb 11 '22 11:02 avalanchas

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

gildor avatar Feb 14 '22 04:02 gildor

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.

idrios avatar Aug 11 '22 05:08 idrios

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.

stephanepechard avatar Feb 01 '23 20:02 stephanepechard

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

zhongxianyin avatar Feb 01 '23 20:02 zhongxianyin

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")
        }
    }
}

ttpho avatar Jun 23 '23 06:06 ttpho

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

zhongxianyin avatar Jun 23 '23 06:06 zhongxianyin

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

zhongxianyin avatar Jul 08 '23 05:07 zhongxianyin