Skip to content

Commit cbd98a0

Browse files
committed
build: 更新 sonatype 文件读取处理
Former-commit-id: a1f8ff5 Former-commit-id: e92db12
1 parent 98be6d2 commit cbd98a0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

file/gradle/upload/sonatype/sonatypeUploadJava.gradle

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,19 @@ if (projectPropertiesFile.exists()) {
1313
properties.load(projectPropertiesFile.newDataInputStream())
1414
}
1515

16+
// =========================================
17+
// = 本地 sonatype properties 文件防止意外上传 =
18+
// =========================================
19+
20+
localPropertiesFile = new File(rootDir, "../../File/sonatype.properties")
21+
if (localPropertiesFile.exists()) {
22+
properties.load(localPropertiesFile.newDataInputStream())
23+
}
24+
25+
// =======
26+
// = 结束 =
27+
// =======
28+
1629
// read properties
1730
def projectName = properties.getProperty("project.name")
1831
def projectGroupId = properties.getProperty("project.groupId")

0 commit comments

Comments
 (0)