mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 00:17:11 -07:00
🐛 Fixing the WAR filename contains if version information is missing #456
This commit is contained in:
parent
82b89edaee
commit
5aef25a4a7
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue