File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -85,8 +85,13 @@ publishing {
8585bintray {
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 // 是否发布
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments