From 4c532b08bbc57ec0470dc5ee3063053ef127ad32 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Sat, 7 Nov 2015 19:24:36 -0800 Subject: [PATCH] Update "ten-minutes". --- ten-minutes/index.html | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/ten-minutes/index.html b/ten-minutes/index.html index 8e3e30d..2a6cd79 100644 --- a/ten-minutes/index.html +++ b/ten-minutes/index.html @@ -83,27 +83,27 @@ val project = kotlinProject { ... -

- Next, we want the manifest of our jar file to point to our main Kobalt plug-in class: -

+

+ Next, we need to create our plugin.xml file in the src/main/resources/META-INF directory. + Once there, it will be automatically copied in the right place in our jar file: +

-packaging {
-    jar {
-        manifest {
-            attributes("Kobalt-Plugin-Class", "com.beust.kobalt.plugin.linecount.Main")
-        }
-    }
-}
+<kobalt-plugin>
+    <name>kobalt-line-count</name>
+    <plugins>
+        <class-name>com.beust.kobalt.plugin.linecount.LineCountPlugin</class-name>
+    </plugins>
+</kobalt-plugin>
 
-

- Now we're ready to code. -

+

+ Now we're ready to code. +

-

- Let's start by writing the simplest plug-in we can: -

+

+ Let's start by writing the simplest plug-in we can: +

 package com.beust.kobalt.plugin.linecount