chore: migrate to version catalog, Gropify

This commit is contained in:
2025-11-12 18:50:40 +08:00
parent 6a8661a320
commit 17c9a08919
6 changed files with 101 additions and 138 deletions

View File

@@ -5,23 +5,36 @@ pluginManagement {
mavenCentral()
}
}
plugins {
id("com.highcapable.sweetdependency") version "1.0.4"
id("com.highcapable.sweetproperty") version "1.0.8"
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")
}
}
sweetProperty {
plugins {
id("com.highcapable.gropify") version "1.0.0"
}
gropify {
global {
all {
common {
includeKeys(
"GITHUB_CI_COMMIT_ID",
"^project\\..*\$".toRegex()
)
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 = "ColorOSNotifyIcon"
include(":app")