1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt-doc.git synced 2025-04-24 19:47:11 -07:00
This commit is contained in:
Cedric Beust 2017-04-08 07:52:55 -07:00
parent d905494e10
commit 498bf505a1
2 changed files with 16 additions and 6 deletions

View file

@ -60,11 +60,11 @@
<h3 class="section" id="version" indent="1">Edit kobalt.version</h3> <h3 class="section" id="version" indent="1">Edit kobalt.version</h3>
<p> <p>
First of all, edit the file <code>src/main/resources/kobalt.properties</code> and set it First of all, edit the file <code>src/main/resources/kobalt.properties</code> and set it
to a nonexistent version. For example, if the current version is <code>0.399</code>, to a nonexistent version. For example, if the current version is <code>1.0.50</code>,
set it to <code>0.400</code>. set it to <code>1.0.51</code>.
</p> </p>
<pre class="brush:plain"> <pre class="brush:plain">
kobalt.version=0.400 kobalt.version=1.0.51
</pre> </pre>
<p> <p>
When you launch Kobalt from IDEA with a nonexistent version, Kobalt will show a message saying When you launch Kobalt from IDEA with a nonexistent version, Kobalt will show a message saying
@ -73,11 +73,21 @@
Kobalt will display a message looking like: Kobalt will display a message looking like:
</p> </p>
<pre class="brush:plain"> <pre class="brush:plain">
Couldn't find .../kobalt-0.400.jar, using ... Couldn't find .../kobalt-1.0.51.jar, using ...
</pre> </pre>
<p> <p>
Note that at the moment, Kobalt expects to be located in <code>$HOME/kotlin/kobalt</code>. Note that at the moment, Kobalt expects to be located in <code>$HOME/kotlin/kobalt</code>.
</p> </p>
<h3 class="section" id="kobalt-dependency" indent="1">Add the Kobalt dependency</h3>
<p>
Next, add Kobalt as a dependency to your build file:
</p>
<pre class="brush:java">
dependencies {
compile("com.beust:kobalt:")
}</pre>
<h3 class="section" id="launch_configuration" indent="1">Launch configuration</h3> <h3 class="section" id="launch_configuration" indent="1">Launch configuration</h3>
<p>Next, create a launch configuration in IDEA.</p> <p>Next, create a launch configuration in IDEA.</p>
<p> <p>

View file

@ -86,10 +86,10 @@ val p = project {
</p> </p>
<pre class="brush:java"> <pre class="brush:java">
// Regular dependency // Regular dependency
compile("com.example:myPlugin:0.1") compile("com.example:my-plugin:0.1")
// Development dependency // Development dependency
compile(file(homeDir("kotlin/myPlugin/kobaltBuild/libs/myPlugin-0.1.jar")) compile(file(homeDir("kotlin/my-plugin/kobaltBuild/libs/my-plugin-0.1.jar"))
</pre> </pre>
<p> <p>
With this latter configuration, simply build your plug-in to generate the jar file with <code>./kobaltw With this latter configuration, simply build your plug-in to generate the jar file with <code>./kobaltw