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

🐛 Fixing the WAR filename contains if version information is missing #456

This commit is contained in:
Marcus Fihlon 2017-11-05 03:08:12 -06:00
parent 82b89edaee
commit 5aef25a4a7
No known key found for this signature in database
GPG key ID: C6B7F469EE363E1F

View file

@ -17,7 +17,8 @@ class Archives {
@ExportedProjectProperty(doc = "The name of the a jar file with a main() method", type = "String") @ExportedProjectProperty(doc = "The name of the a jar file with a main() method", type = "String")
const val JAR_NAME_WITH_MAIN_CLASS = "jarNameWithMainClass" const val JAR_NAME_WITH_MAIN_CLASS = "jarNameWithMainClass"
fun defaultArchiveName(project: Project) = project.name + "-" + project.version fun defaultArchiveName(project: Project) = project.name +
if (project.version == null || project.version == "") "" else "-${project.version}"
fun generateArchive(project: Project, fun generateArchive(project: Project,
context: KobaltContext, context: KobaltContext,