From c00bd7d5343b22b85def3e0259f9894dadcd49f3 Mon Sep 17 00:00:00 2001 From: huanmeng-qwq <1871735932@qq.com> Date: Fri, 10 Jan 2025 21:11:45 +0800 Subject: [PATCH] Update buildscript --- .../src/main/kotlin/publish-conventions.gradle.kts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/buildSrc/src/main/kotlin/publish-conventions.gradle.kts b/buildSrc/src/main/kotlin/publish-conventions.gradle.kts index 22587fb..4fd9b33 100644 --- a/buildSrc/src/main/kotlin/publish-conventions.gradle.kts +++ b/buildSrc/src/main/kotlin/publish-conventions.gradle.kts @@ -106,11 +106,11 @@ val cleanUpload by tasks.creating(Delete::class) { tasks.sonatypeCentralUpload { // gradle sonatypeCentralUpload -PCENTRAL_USERNAME= -PCENTRAL_PASSWORD= -PCENTRAL_PRIVATE_KEY= -PCENTRAL_PRIVATE_KEY_PWD= -PCENTRAL_PUBLIC_KEY= - val centralUsername = read(System.getenv("MAVEN_USERNAME") ?: findProperty("CENTRAL_USERNAME")?.toString()) - val centralPassword = read(System.getenv("MAVEN_PASSWORD") ?: findProperty("CENTRAL_PASSWORD")?.toString()) - val privateKey = read(System.getenv("MAVEN_PRIVATE_KEY") ?: findProperty("CENTRAL_PRIVATE_KEY")?.toString()) - val privateKeyPwd = read(System.getenv("MAVEN_PRIVATE_KEY_PWD") ?: findProperty("CENTRAL_PRIVATE_KEY_PWD")?.toString()) - val publicKey = read(System.getenv("MAVEN_PUBLIC_KEY") ?: findProperty("CENTRAL_PUBLIC_KEY")?.toString()) + val centralUsername = read(System.getenv("CENTRAL_USERNAME") ?: findProperty("CENTRAL_USERNAME")?.toString()) + val centralPassword = read(System.getenv("CENTRAL_PASSWORD") ?: findProperty("CENTRAL_PASSWORD")?.toString()) + val privateKey = read(System.getenv("CENTRAL_PRIVATE_KEY") ?: findProperty("CENTRAL_PRIVATE_KEY")?.toString()) + val privateKeyPwd = read(System.getenv("CENTRAL_PRIVATE_KEY_PWD") ?: findProperty("CENTRAL_PRIVATE_KEY_PWD")?.toString()) + val publicKey = read(System.getenv("CENTRAL_PUBLIC_KEY") ?: findProperty("CENTRAL_PUBLIC_KEY")?.toString()) dependsOn(tasks.build, tasks.generatePomFileForMavenPublication, cleanUpload) this.username = centralUsername this.password = centralPassword