Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28456] Android: Remove deprecated usage of jcenter() repo from gradle

GitHub Issuen/a
TypeImprovement
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2021-05-28T12:35:08.000+0000
Affected Version/sn/a
Fix Version/sRelease 10.0.1
ComponentsAndroid
Labelsandroid, breaking-change, build, gradle
ReporterJoshua Quick
AssigneeJoshua Quick
Created2021-05-19T03:09:25.000+0000
Updated2021-07-06T19:32:00.000+0000

Description

*Summary:* The JCenter repository has been deprecated and their plan is to shut it down by February 1, 2022. https://developer.android.com/studio/build/jcenter-migration This impacts Android gradle builds which fetch dependencies from this repository. A "build.gradle" script references this repo via the jcenter() function. *To-Do:* Replace our usage of jcenter() with mavenCentral() here... https://github.com/appcelerator/titanium_mobile/blob/master/android/build.gradle https://github.com/appcelerator/titanium_mobile/blob/master/android/templates/build/root.build.gradle *Breaking-Change:* Changing our default templates from jcenter() to mavenCentral() might break module builds and hyperloop builds if the developer's "build.gradle" references a dependency that only exists in the deprecated jcenter() repo. If this is the case, then they can restore the deprecated behavior by re-adding the repo to their "build.gradle" as shown below. Just note that this will eventually stop working by February 2022.
// build.gradle
repositories {
	jcenter()
}

Comments

  1. Joshua Quick 2021-05-19

    PR (master): https://github.com/appcelerator/titanium_mobile/pull/12821 PR (hyperloop-examples): https://github.com/appcelerator/hyperloop-examples/pull/89
  2. Christopher Williams 2021-05-27

    merged to master, backport PR for 10_0_X in progress.
  3. Ewan Harris 2021-05-28

    10_0_X PR merged

JSON Source