Skip to content

Commit

Permalink
Small build improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
paslavsky committed Jul 10, 2020
1 parent ba7a1ac commit aad79e7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ plugins {

val ktor_version: String by project
val _version = project.findProperty("version").let {
if ((it as? String).isNullOrBlank()) {
ktor_version
if ((it as? String).isNullOrEmpty() || it == "unspecified") {
val tag = System.getenv("TRAVIS_TAG")
if (tag.isNullOrEmpty()) ktor_version else tag
} else {
it!!
}
Expand Down

0 comments on commit aad79e7

Please sign in to comment.