Dragon-Egg / sleeping_syar

Twitter client for Android
3 stars 1 forks source link

JCenter shutdown #36

Open ys3669 opened 3 years ago

ys3669 commented 3 years ago

本リポジトリへの影響

JCenter が2021年5月1日にシャットダウンすることになったので Android アプリエンジニア観点でメモをまとめた

リンク先にあるようにAGP(Android Gradle plugin)の依存先 現状AGPはv3.3.2 classpath 'com.android.tools.build:gradle:3.3.2'(最新4.1.2) v4.1.3? or v4.2(現状beta04) 通常だとbata5->rc0(~5)->release のステップ 更新があり次第更新するor軽減方法の模索 要注視といったところ

build.gradle

  buildscript {
      ext.kotlin_version = '1.3.21'
      repositories {
-         jcenter()
          mavenCentral()
          maven {
              url "https://maven.springframework.org/release"
          }
          google()
      }
A problem occurred configuring root project 'sleeping_syar'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not find org.jetbrains.trove4j:trove4j:20160824.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.pom
       - https://maven.springframework.org/release/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.pom
       - https://dl.google.com/dl/android/maven2/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.pom
     Required by:
         project : > com.android.tools.build:gradle:4.1.0 > com.android.tools.build:builder:4.1.0 > com.android.tools:sdk-common:27.1.0

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
ys3669 commented 3 years ago

easylauncher を忘れてた

/app/build.gradle

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.akaita.android:easylauncher:1.3.1'
    }
shin19 commented 3 years ago

シャットダウン日が2022年2月1日に変更

UPDATE: To better support the community in this migration, JFrog has extended the JCenter new package versions submission deadline through March 31st 2021. To clarify, the JCenter repository will keep serving packages for 12 months until February 1st 2022. Only the JCenter REST API and UI will be sunsetted on May 1st 2021. https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/