We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98be6d2 commit cbd98a0Copy full SHA for cbd98a0
file/gradle/upload/sonatype/sonatypeUploadJava.gradle
@@ -13,6 +13,19 @@ if (projectPropertiesFile.exists()) {
13
properties.load(projectPropertiesFile.newDataInputStream())
14
}
15
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
29
// read properties
30
def projectName = properties.getProperty("project.name")
31
def projectGroupId = properties.getProperty("project.groupId")
0 commit comments