Skip to content

Commit b88f4c5

Browse files
committed
更改gradle
1 parent 8aeac76 commit b88f4c5

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

publish.gradle

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,13 @@ publishing {
8585
bintray {
8686
// You should configure "bintray.user" and "bintray.apiKey" in the gradle.properties
8787
// that in gradle cache directory (~/.gradle/gradle.properties)
88-
user = getProperty("bintray.user")
89-
key = getProperty("bintray.apikey")
88+
try {
89+
user = getProperty("bintray.user")
90+
key = getProperty("bintray.apikey")
91+
} catch (Exception) {
92+
user = ""
93+
key = ""
94+
}
9095

9196
publications = ['myPublicationName'] //对应前面的publishing.publications.mavenJava
9297
publish = true //是否发布

publish.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
#/home/liyujiang/.m2/repository
4-
./gradlew publishToMavenLocal --info
4+
#./gradlew publishToMavenLocal --info
55

66
# http://jcenter.bintray.com
7-
#./gradlew bintrayUpload --stacktrace
7+
./gradlew bintrayUpload --stacktrace

0 commit comments

Comments
 (0)