From e92db12e9fa94487c8c648fc10b33e3ef9c80905 Mon Sep 17 00:00:00 2001 From: cjt Date: Sun, 26 Jun 2022 02:42:16 +0800 Subject: [PATCH] =?UTF-8?q?build:=20=E6=9B=B4=E6=96=B0=20sonatype=20?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E8=AF=BB=E5=8F=96=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: a1f8ff5c02e0f17637b69ad10622bfa18a83e9e2 --- .../upload/sonatype/sonatypeUploadJava.gradle | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/file/gradle/upload/sonatype/sonatypeUploadJava.gradle b/file/gradle/upload/sonatype/sonatypeUploadJava.gradle index 99f2665e19..9c7258686e 100644 --- a/file/gradle/upload/sonatype/sonatypeUploadJava.gradle +++ b/file/gradle/upload/sonatype/sonatypeUploadJava.gradle @@ -13,6 +13,19 @@ if (projectPropertiesFile.exists()) { properties.load(projectPropertiesFile.newDataInputStream()) } +// ========================================= +// = 本地 sonatype properties 文件防止意外上传 = +// ========================================= + +localPropertiesFile = new File(rootDir, "../../File/sonatype.properties") +if (localPropertiesFile.exists()) { + properties.load(localPropertiesFile.newDataInputStream()) +} + +// ======= +// = 结束 = +// ======= + // read properties def projectName = properties.getProperty("project.name") def projectGroupId = properties.getProperty("project.groupId")