chore: migrate to version catalog, Gropify

This commit is contained in:
2025-11-12 18:25:13 +08:00
parent e161442477
commit 1e4558b4b3
6 changed files with 114 additions and 152 deletions

View File

@@ -3,25 +3,35 @@ pluginManagement {
gradlePluginPortal()
google()
mavenCentral()
mavenLocal()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven("https://jitpack.io")
maven("https://api.xposed.info/")
maven("https://raw.githubusercontent.com/fankes/maven-repository/main/repository/releases")
}
}
plugins {
id("com.highcapable.sweetdependency") version "1.0.4"
id("com.highcapable.sweetproperty") version "1.0.8"
id("com.highcapable.gropify") version "1.0.0"
}
sweetProperty {
gropify {
global {
all {
common {
permanentKeyValues("GITHUB_CI_COMMIT_ID" to "")
generateFrom(ROOT_PROJECT, SYSTEM_ENV)
locations(GropifyLocation.RootProject, GropifyLocation.SystemEnv)
}
sourcesCode {
android {
includeKeys("GITHUB_CI_COMMIT_ID")
// 关闭类型自动转换功能,防止一些特殊 "COMMIT ID" 被生成为数值
isEnableTypeAutoConversion = false
useTypeAutoConversion = false
}
}
rootProject { all { isEnable = false } }
rootProject { common { isEnabled = false } }
}
rootProject.name = "TSBattery"
include(":app")