Upgrade to Pro — share decks privately, control downloads, hide ads and more …

KotprefをJCenterからMaven Centralに移行した話

chibatching
April 05, 2021
840

KotprefをJCenterからMaven Centralに移行した話

20221/04/05 Kotlin Tech Talk
https://mercari.connpass.com/event/206751/

chibatching

April 05, 2021
Tweet

Transcript

  1. KotprefをJCenterから Maven Centralに 移行した話 About migration of Kotpref from JCenter

    to Maven Central by chibatching @Kotlin Tech Talk, 2021/04/05
  2. Into the Sunset • 2021/02/03 JCenter含むJFrogの公開パッ ケージホスティングサービスが5/1で 停止すると発表 ◦ 5/1の停止はUIとAPI

    ◦ ホスティング自体は2022/2/1 まで継続 https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/
  3. GitHub Packages • GitHubが提供するパッケージホスティングサービス ◦ Mavenリポジトリにも対応 ◦ 利用者側でライブラリ毎にリポジトリの追加が必要 ◦ GitHubへの認証も必要

    repositories { maven { url “https://maven.pkg.github.com/OWNER/REPOSITORY” credentials { username = “github_user_name” password = “github_password” } } }
  4. JitPack • GitHub上のソースコードからアーティファクトを生成してくれる • バージョン名はタグ • デフォルトではGroup IDやArtifact IDが固定 ◦

    com.github.User:Repo:Tag ◦ 独自ドメインにも対応しているので既存のものに合わせられる場合もある • 初回ダウンロードが遅い ◦ バージョンの初回リクエスト時にビルドするため