mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 00:17:11 -07:00
New profile syntax: val debug by profile()
This commit is contained in:
parent
8a8b5f638d
commit
86c166ff76
6 changed files with 50 additions and 39 deletions
|
@ -24,7 +24,7 @@ class ProfileTest @Inject constructor(compilerFactory: BuildFileCompiler.IFactor
|
|||
return """
|
||||
import com.beust.kobalt.*
|
||||
import com.beust.kobalt.api.*
|
||||
val profile = false
|
||||
val profile by profile()
|
||||
val $projectVal = project {
|
||||
name = if (profile) "profileOn" else "profileOff"
|
||||
directory = "$projectDirectory"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue