Skip to content

Commit

Permalink
build: 更新 sonatype 文件读取处理
Browse files Browse the repository at this point in the history
Former-commit-id: a1f8ff5
  • Loading branch information
afkT committed Jun 25, 2022
1 parent aecd3dd commit e92db12
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions file/gradle/upload/sonatype/sonatypeUploadJava.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit e92db12

Please sign in to comment.