1
0
Fork 0
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:
Cedric Beust 2017-03-25 12:45:59 -07:00
parent 8a8b5f638d
commit 86c166ff76
6 changed files with 50 additions and 39 deletions

View file

@ -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"