1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-25 07:57:12 -07:00

👌 Code review change

Thanks to @ethauvin for his very good hint!
This commit is contained in:
Marcus Fihlon 2017-11-06 19:49:28 +01:00
parent 5aef25a4a7
commit 2e2444c2bc
No known key found for this signature in database
GPG key ID: C6B7F469EE363E1F

View file

@ -18,7 +18,7 @@ class Archives {
const val JAR_NAME_WITH_MAIN_CLASS = "jarNameWithMainClass"
fun defaultArchiveName(project: Project) = project.name +
if (project.version == null || project.version == "") "" else "-${project.version}"
if (project.version.isNullOrBlank()) "" else "-${project.version}"
fun generateArchive(project: Project,
context: KobaltContext,