Skip to content

Commit

Permalink
Fixed build.gradle bintray credentials check; preparing next release
Browse files Browse the repository at this point in the history
  • Loading branch information
ekoutanov committed Apr 11, 2018
1 parent b454df6 commit b54f328
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ apply plugin: "maven-publish"
apply plugin: "com.jfrog.bintray"

group = "com.obsidiandynamics.zerolog"
version = "0.4.0"
version = "0.5.0-SNAPSHOT"

def envUser = "BINTRAY_USER"
def envKey = "BINTRAY_KEY"
task bintrayCredentialsCheck {
doLast {
if (System.getenv(envUser) == null) {
throw new GradleException('No Bintray username specified; set with "export ${envUser}=<username>"')
throw new GradleException("No Bintray username specified; set with 'export ${envUser}=<username>'")
}
if (System.getenv(envKey) == null) {
throw new GradleException('No Bintray key specified; set with "export ${envKey}=<key>"')
throw new GradleException("No Bintray key specified; set with 'export ${envKey}=<key>'")
}
}
}
Expand Down

0 comments on commit b54f328

Please sign in to comment.