diff --git a/js/kobalt.js b/js/kobalt.js index 7baf518..527ab07 100644 --- a/js/kobalt.js +++ b/js/kobalt.js @@ -18,6 +18,10 @@ var content = [ { url: "../write-plug-in-10mn/index.html", title: "A plug-in in 10mn" + }, + { + url: "../write-plug-in/index.html", + title: "Plug-in development" } ]; diff --git a/write-plug-in/index.html b/write-plug-in/index.html new file mode 100644 index 0000000..44c12c7 --- /dev/null +++ b/write-plug-in/index.html @@ -0,0 +1,122 @@ + +
+How to set up your environment to write a Kobalt plug-in.
+ +
+ As a start up point, you can clone the kobalt-line-count
+ project and use it as a guide line to write your own plug-in.
+
+ You can start with a simple build file: +
+ ++import com.beust.kobalt.* +import com.beust.kobalt.plugin.packaging.* +import com.beust.kobalt.plugin.kotlin.* +import com.beust.kobalt.plugin.publish.* + + +val project = kotlinProject { + name = "kobalt-line-count" + group = "com.beust.kobalt" + artifactId = name + version = "0.1" + + dependencies { + compile("com.beust:kobalt:0.154") + } +} + +val packProject = assemble(project) { + mavenJars { + manifest { + attributes("Kobalt-Plugin-Class", "com.beust.kobalt.plugin.linecount.Main") + } + } +} + +val jc = jcenter(project) { + publish = true +} ++ +