mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-06-16 05:10:51 -07:00
commit
e39be51cb8
2 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
|
@ -56,7 +56,7 @@ class Profiles(val context: KobaltContext) {
|
|||
val variable = if (match.first) match.second else oldMatch.second
|
||||
|
||||
if (oldMatch.first) {
|
||||
warn("Old profile syntax detected for \"$line\"," +
|
||||
warn("Old profile syntax detected for \"${line.trim()}\"," +
|
||||
" please update to \"val $variable by profile()\"")
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue