更新Gradle脚本 (#3796)

使用version catalog
更新kotlin 1.9.23 ksp 1.0.19
This commit is contained in:
ag2s20150909 authored and GitHub committed 2024-03-11 14:09:30 +08:00
1 parent e0be676cca
commit 324a3dd851
10 files changed
+339 -146

No files matched your search

+21 -3
View File
@@ -1,8 +1,14 @@
pluginManagement {
repositories {
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
}
}
//原仓库
gradlePluginPortal()
google()
mavenCentral()
//镜像仓库,无法连接源仓库自行启用镜像仓库,不要提交修改
//maven { url "https://maven-central-asia.storage-download.googleapis.com/maven2/" }
@@ -17,9 +23,21 @@ dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
//原仓库
google()
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
}
}
maven {
url 'https://jitpack.io'
content {
includeGroupByRegex("com\\.github.*")
}
}
mavenCentral()
maven { url 'https://jitpack.io' }
//镜像仓库,无法连接源仓库自行启用镜像仓库,不要提交修改
//maven { url "https://maven-central-asia.storage-download.googleapis.com/maven2/" }
//maven { url 'https://maven.aliyun.com/repository/google' }