From 498bf505a1f72ab367fbab3d52b452c3e089c356 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Sat, 8 Apr 2017 07:52:55 -0700 Subject: [PATCH] Update --- contributing/index.html | 18 ++++++++++++++---- plug-in-development/index.html | 4 ++-- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/contributing/index.html b/contributing/index.html index ca06646..e5f44ef 100644 --- a/contributing/index.html +++ b/contributing/index.html @@ -60,11 +60,11 @@

Edit kobalt.version

First of all, edit the file src/main/resources/kobalt.properties and set it - to a nonexistent version. For example, if the current version is 0.399, - set it to 0.400. + to a nonexistent version. For example, if the current version is 1.0.50, + set it to 1.0.51.

-                    kobalt.version=0.400
+                    kobalt.version=1.0.51
                 

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:

-Couldn't find .../kobalt-0.400.jar, using ...
+Couldn't find .../kobalt-1.0.51.jar, using ...
                 

Note that at the moment, Kobalt expects to be located in $HOME/kotlin/kobalt.

+ +

Add the Kobalt dependency

+

+ Next, add Kobalt as a dependency to your build file: +

+
+    dependencies {
+        compile("com.beust:kobalt:")
+    }
+

Launch configuration

Next, create a launch configuration in IDEA.

diff --git a/plug-in-development/index.html b/plug-in-development/index.html index dc2f9dc..08129dc 100644 --- a/plug-in-development/index.html +++ b/plug-in-development/index.html @@ -86,10 +86,10 @@ val p = project {

     // Regular dependency
-    compile("com.example:myPlugin:0.1")
+    compile("com.example:my-plugin:0.1")
 
     // 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"))
 

With this latter configuration, simply build your plug-in to generate the jar file with ./kobaltw