matomo-org/matomo-sdk-android

Migration to mavenCentral()

abhishekBansal opened this issue · 6 comments

As JCenter has decided to drop curtains on its services, are there any plans to move to mavenCentral() in near future?

EDIT: apologies, apparently I am misinformed

Same here, by using Gradle 7.0, it displayed a big warning saying Jcenter is already shutdown and the jcenter() support in AS will be removed with gradle 8.0

The RepositoryHandler.jcenter() method has been deprecated. This is scheduled to be removed in Gradle 8.0. JFrog announced JCenter's shutdown in February 2021. Use mavenCentral() instead. Consult the upgrading guide for further information: https://docs.gradle.org/7.0/userguide/upgrading_version_6.html#jcenter_deprecation

When I remove jcenter() by
image

I run into

   > Could not find org.matomo.sdk:tracker:4.1.2.
     Required by:
         project :app > project :commonLib

But there is an easy solution https://jitpack.io/#matomo-org/matomo-sdk-android/v4.1.2

allprojects {
  repositories {
    ...
    maven { url 'https://jitpack.io' }
  }
}

and

dependencies {
  implementation 'com.github.matomo-org:matomo-sdk-android:v4.1.2'
}

I'll leave this open as the final goal would be to setup mavenCentral, but for now we can remove jcenter and go with JitPack.

The URL in the quick start part of the README should be updated too to com.github.matomo-org:matomo-sdk-android instead of org.matomo.sdk:tracker

Same for the part in the wiki.

Thanks, fixed.