mirror of
https://github.com/ethauvin/kobalt-doc.git
synced 2025-04-25 03:57:11 -07:00
Document profiles.
This commit is contained in:
parent
de5a26c4ed
commit
7ac01e8ab0
1 changed files with 4 additions and 4 deletions
|
@ -941,14 +941,14 @@ Now, all you need to do is to upload your package:
|
||||||
line parameters.
|
line parameters.
|
||||||
</p>
|
</p>
|
||||||
<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>
|
</p>
|
||||||
<pre class="brush:java">
|
<pre class="brush:java">
|
||||||
val experimental = false
|
val experimental by profile()
|
||||||
val premium = false
|
val premium by profile()
|
||||||
</pre>
|
</pre>
|
||||||
<p>
|
<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>
|
</p>
|
||||||
<pre class="brush:java">
|
<pre class="brush:java">
|
||||||
val p = project {
|
val p = project {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue