mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-06-16 21:30: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"
|
const val JAR_NAME_WITH_MAIN_CLASS = "jarNameWithMainClass"
|
||||||
|
|
||||||
fun defaultArchiveName(project: Project) = project.name +
|
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,
|
fun generateArchive(project: Project,
|
||||||
context: KobaltContext,
|
context: KobaltContext,
|
||||||
|
|
|
@ -56,7 +56,7 @@ class Profiles(val context: KobaltContext) {
|
||||||
val variable = if (match.first) match.second else oldMatch.second
|
val variable = if (match.first) match.second else oldMatch.second
|
||||||
|
|
||||||
if (oldMatch.first) {
|
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()\"")
|
" please update to \"val $variable by profile()\"")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue