1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt-doc.git synced 2025-04-25 12:07:10 -07:00

Document profiles.

This commit is contained in:
Cedric Beust 2017-03-25 14:38:58 -07:00
parent de5a26c4ed
commit 7ac01e8ab0

View file

@ -941,14 +941,14 @@ Now, all you need to do is to upload your package:
line parameters.
</p>
<p>
You start by defining boolean values initialized to <code>false</code> in your build file:
You start by defining the profiles in your build file as follows:
</p>
<pre class="brush:java">
val experimental = false
val premium = false
val experimental by profile()
val premium by profile()
</pre>
<p>
Then you use this variable wherever you need it in your build file:
These variables are of type <code>Boolean</code> and you can use them anywhere in your build file:
</p>
<pre class="brush:java">
val p = project {