mirror of
https://github.com/ethauvin/kobalt-doc.git
synced 2025-04-25 03:57: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>
|
||||
|
||||
<p>
|
||||
Next, we want the manifest of our jar file to point to our main Kobalt plug-in class:
|
||||
</p>
|
||||
<p>
|
||||
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>
|
||||
|
||||
<pre>
|
||||
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>
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
Now we're ready to code.
|
||||
</p>
|
||||
<p>
|
||||
Now we're ready to code.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Let's start by writing the simplest plug-in we can:
|
||||
</p>
|
||||
<p>
|
||||
Let's start by writing the simplest plug-in we can:
|
||||
</p>
|
||||
|
||||
<pre>
|
||||
package com.beust.kobalt.plugin.linecount
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue