From 9ab5be20e9df1fefabf56e8865db39274cacf88e Mon Sep 17 00:00:00 2001 From: fankesyooni Date: Tue, 11 Feb 2025 09:17:06 +0800 Subject: [PATCH] chore: update project files --- plugin-build/unmeta/build.gradle.kts | 48 +++++++++++++++------------- 1 file changed, 25 insertions(+), 23 deletions(-) diff --git a/plugin-build/unmeta/build.gradle.kts b/plugin-build/unmeta/build.gradle.kts index eb45838..e99bdc0 100644 --- a/plugin-build/unmeta/build.gradle.kts +++ b/plugin-build/unmeta/build.gradle.kts @@ -43,9 +43,11 @@ publishing { } scm { - val (vcsHost, vcsUser, vcsRepo) = property("VCS_URL").toString() - .substringAfter("https://") - .split("/") + val (vcsHost, vcsUser, vcsRepo) = + property("VCS_URL") + .toString() + .substringAfter("https://") + .split("/") url.set(property("VCS_URL").toString()) connection.set("scm:git:git://$vcsHost/$vcsUser/$vcsRepo.git") developerConnection.set("scm:git:ssh://git@$vcsHost:$vcsUser/$vcsRepo.git") @@ -71,13 +73,13 @@ publishing { } } -//signing { -// val signingKey = System.getenv("GPG_SIGNING_KEY") -// val signingPassword = System.getenv("GPG_SIGNING_PASSWORD") -// useInMemoryPgpKeys(signingKey.chunked(64).joinToString("\n"), signingPassword) -// sign(tasks["jar"]) -// sign(publishing.publications["mavenJava"]) -//} +// signing { +// val signingKey = System.getenv("GPG_SIGNING_KEY") +// val signingPassword = System.getenv("GPG_SIGNING_PASSWORD") +// useInMemoryPgpKeys(signingKey.chunked(64).joinToString("\n"), signingPassword) +// sign(tasks["jar"]) +// sign(publishing.publications["mavenJava"]) +// } gradlePlugin { plugins { @@ -97,16 +99,16 @@ gradlePlugin { vcsUrl.set(property("VCS_URL").toString()) } -tasks.create("setupPluginUploadFromEnvironment") { - doLast { - val key = System.getenv("GRADLE_PUBLISH_KEY") - val secret = System.getenv("GRADLE_PUBLISH_SECRET") - - if (key == null || secret == null) { - throw GradleException("gradlePublishKey and/or gradlePublishSecret are not defined environment variables") - } - - System.setProperty("gradle.publish.key", key) - System.setProperty("gradle.publish.secret", secret) - } -} +// tasks.create("setupPluginUploadFromEnvironment") { +// doLast { +// val key = System.getenv("GRADLE_PUBLISH_KEY") +// val secret = System.getenv("GRADLE_PUBLISH_SECRET") +// +// if (key == null || secret == null) { +// throw GradleException("gradlePublishKey and/or gradlePublishSecret are not defined environment variables") +// } +// +// System.setProperty("gradle.publish.key", key) +// System.setProperty("gradle.publish.secret", secret) +// } +// }