1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt-doc.git synced 2025-04-25 20:07:11 -07:00

Update "ten-minutes".

This commit is contained in:
Cedric Beust 2015-11-07 19:24:36 -08:00
parent 01b8f31dec
commit 4c532b08bb

View file

@ -84,17 +84,17 @@ val project = kotlinProject {
</pre> </pre>
<p> <p>
Next, we want the manifest of our jar file to point to our main Kobalt plug-in class: Next, we need to create our <code>plugin.xml</code> file in the <code>src/main/resources/META-INF</code> directory.
Once there, it will be automatically copied in the right place in our jar file:
</p> </p>
<pre> <pre>
packaging { &lt;kobalt-plugin&gt;
jar { &lt;name&gt;kobalt-line-count&lt;/name&gt;
manifest { &lt;plugins&gt;
attributes("Kobalt-Plugin-Class", "com.beust.kobalt.plugin.linecount.Main") &lt;class-name&gt;com.beust.kobalt.plugin.linecount.LineCountPlugin&lt;/class-name&gt;
} &lt;/plugins&gt;
} &lt;/kobalt-plugin&gt;
}
</pre> </pre>
<p> <p>