perf: 优化插件更新检测器

This commit is contained in:
2025-06-16 02:49:28 +08:00
parent 942239be91
commit 0f942a7687
5 changed files with 11 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
plugins {
id("java-library")
id("maven-publish")
id("com.github.johnrengelman.shadow") version "8.1.1"
id("com.gradleup.shadow") version "8.3.6"
}
group = "cn.hamster3.mc.plugin"
@@ -12,7 +12,7 @@ subprojects {
apply {
plugin("java-library")
plugin("maven-publish")
plugin("com.github.johnrengelman.shadow")
plugin("com.gradleup.shadow")
}
group = rootProject.group
@@ -64,10 +64,9 @@ subprojects {
repositories {
maven {
url = uri("https://maven.airgame.net/public")
credentials {
username = rootProject.properties.getOrDefault("maven_username", "").toString()
password = rootProject.properties.getOrDefault("maven_password", "").toString()
username = findProperty("MAVEN_AIRGAME_USERNAME")?.toString() ?: ""
password = findProperty("MAVEN_AIRGAME_PASSWORD")?.toString() ?: ""
}
}
}