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:
parent
01b8f31dec
commit
4c532b08bb
1 changed files with 16 additions and 16 deletions
|
@ -83,27 +83,27 @@ 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.
|
||||||
</p>
|
Once there, it will be automatically copied in the right place in our jar file:
|
||||||
|
</p>
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
packaging {
|
<kobalt-plugin>
|
||||||
jar {
|
<name>kobalt-line-count</name>
|
||||||
manifest {
|
<plugins>
|
||||||
attributes("Kobalt-Plugin-Class", "com.beust.kobalt.plugin.linecount.Main")
|
<class-name>com.beust.kobalt.plugin.linecount.LineCountPlugin</class-name>
|
||||||
}
|
</plugins>
|
||||||
}
|
</kobalt-plugin>
|
||||||
}
|
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Now we're ready to code.
|
Now we're ready to code.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Let's start by writing the simplest plug-in we can:
|
Let's start by writing the simplest plug-in we can:
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
package com.beust.kobalt.plugin.linecount
|
package com.beust.kobalt.plugin.linecount
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue