mirror of
https://github.com/fankes/ColorOSNotifyIcon.git
synced 2025-12-10 15:53:49 +08:00
chore: migrate to version catalog, Gropify
This commit is contained in:
@@ -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")
|
||||
Reference in New Issue
Block a user