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

Bintray is shutting down on February 1st, 2022. Move to maven central by then. #703

Closed
arkon opened this issue Feb 14, 2021 · 16 comments
Closed
Labels

Comments

@arkon
Copy link

arkon commented Feb 14, 2021

Could you consider publishing the existing artifacts to Maven Central?

cf. https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/

@PierfrancescoSoffritti
Copy link
Owner

Yes, i'm aware of this. Looks like we have until Feb 1st, 2022 to take action.

@PierfrancescoSoffritti PierfrancescoSoffritti changed the title FYI: Bintray is shutting down on May 1st, 2020 Bintray is shutting down on May 1st, 2020. Move to maven central May 5, 2021
This was referenced May 28, 2021
@PierfrancescoSoffritti PierfrancescoSoffritti changed the title Bintray is shutting down on May 1st, 2020. Move to maven central Bintray is shutting down on February 1st, 2022. Move to maven central by then. May 31, 2021
@vishalkumarsinghvi
Copy link

Hey, @PierfrancescoSoffritti Any update for the new release with mavencentral?

@PierfrancescoSoffritti
Copy link
Owner

PierfrancescoSoffritti commented Jun 10, 2021

not yet, there is still plenty of time

@arkon
Copy link
Author

arkon commented Jul 1, 2021

This became the blocker for me for dropping jcenter, so for anyone else who's interested, you can use jitpack for consuming this library as well. e.g.:

- implementation 'com.pierfrancescosoffritti.androidyoutubeplayer:core:10.0.5'
+ implementation 'com.github.PierfrancescoSoffritti.android-youtube-player:core:10.0.5'

@PierfrancescoSoffritti
Copy link
Owner

@arkon Why was it urgent for you to drop jcenter?

@arkon
Copy link
Author

arkon commented Jul 10, 2021

Not urgent; I just generally try to complete migrations ASAP so that we can avoid last minute issues. I'd still be interested in consuming the library via Maven Central if possible.

@PierfrancescoSoffritti
Copy link
Owner

sure, thanks for letting me know :)

@mdkamal054
Copy link

implementation 'com.github.PierfrancescoSoffritti.android-youtube-player:core:10.0.5'

Thanks man its working in mavenCentral

@sgpentester
Copy link

Gradle is able to synchronize normally now after adding the new implementation statement, however, it is still not possible to build the project, or does anyone know how to fix this? I am unable to Rebuild my code.

image

@sgpentester
Copy link

When I try to Rebuild my code, I get the following error message in my Build Output:

Could not GET 'https://repo.spring.io/plugins-release/com/github/PierfrancescoSoffritti/android-youtube-player/core/10.0.5/core-10.0.5.pom'. Received status code 401 from server: 
Disable Gradle 'offline mode' and sync project

I have already disabled my Gradle 'offline mode' though. Or can someone share a working maven configuration to put in gradle file?

If I don't use the following configuration with the https://repo.spring.io/plugins-release/ I do not even get a chance to get build my code:

    repositories {
        mavenCentral()
        maven { url "https://repo.spring.io/plugins-release/" }
    }

If I remove maven { url "https://repo.spring.io/plugins-release/" } :

Execution failed for task ':app:mergeDebugNativeLibs'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Could not find com.github.PierfrancescoSoffritti.android-youtube-player:core:10.0.5.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/github/PierfrancescoSoffritti/android-youtube-player/core/10.0.5/core-10.0.5.pom
       - https://repo.maven.apache.org/maven2/com/github/PierfrancescoSoffritti/android-youtube-player/core/10.0.5/core-10.0.5.pom
     Required by:
         project :app

But now I am struggling with the 401 error that I shared at the start of this comment. If anyone is able to help it will be great! Thanks.

@arkon
Copy link
Author

arkon commented Sep 4, 2021

As per my comment, it's from the JitPack repository, not Maven Central.

@PierfrancescoSoffritti
Copy link
Owner

You can read more here https://jitpack.io/

@sgpentester
Copy link

Thanks @arkon & @PierfrancescoSoffritti for the prompt response, it really helps and works like a charm!!

@PierfrancescoSoffritti
Copy link
Owner

Hi everyone, thanks for your patience. Version 11.0.0 is out and now the library is available on MavenCentral :)

@abubakarasifmughal
Copy link

This became the blocker for me for dropping jcenter, so for anyone else who's interested, you can use jitpack for consuming this library as well. e.g.:

- implementation 'com.pierfrancescosoffritti.androidyoutubeplayer:core:10.0.5'
+ implementation 'com.github.PierfrancescoSoffritti.android-youtube-player:core:10.0.5'

This worked for me.
My complete file looks like this

apply plugin: "com.android.library"

def DEFAULT_COMPILE_SDK_VERSION = 28
def DEFAULT_BUILD_TOOLS_VERSION = "28.0.3"
def DEFAULT_TARGET_SDK_VERSION = 28
def DEFAULT_MIN_SDK_VERSION = 21

android {
    compileSdkVersion rootProject.hasProperty('compileSdkVersion') ? rootProject.compileSdkVersion : DEFAULT_COMPILE_SDK_VERSION
    buildToolsVersion rootProject.hasProperty('buildToolsVersion') ? rootProject.buildToolsVersion : DEFAULT_BUILD_TOOLS_VERSION

    defaultConfig {
        minSdkVersion rootProject.hasProperty('minSdkVersion') ? rootProject.minSdkVersion : DEFAULT_MIN_SDK_VERSION
        targetSdkVersion rootProject.hasProperty('targetSdkVersion') ? rootProject.targetSdkVersion : DEFAULT_TARGET_SDK_VERSION
        versionCode 1
        versionName "1.0"
    }

    lintOptions {
        abortOnError false
    }
    compileOptions {
        sourceCompatibility = '1.8'
        targetCompatibility = '1.8'
    }
}

allprojects {
    repositories {
        google()
        mavenCentral()
        maven { url 'https://jitpack.io' }
    }
}

dependencies {
    // implementation 'com.pierfrancescosoffritti.androidyoutubeplayer:core:10.0.5'
    implementation 'com.github.PierfrancescoSoffritti.android-youtube-player:core:10.0.5'
    implementation 'com.facebook.react:react-native:+'
}

Thanks

@PierfrancescoSoffritti
Copy link
Owner

Why use an old version from jitpack instead of latest from maven?

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

No branches or pull requests

7 participants
@arkon @PierfrancescoSoffritti @vishalkumarsinghvi @abubakarasifmughal @sgpentester @mdkamal054 and others