mirror of
https://github.com/ethauvin/kobalt-doc.git
synced 2025-04-25 12:07:10 -07:00
Merge branch 'master' of github.com:cbeust/kobalt-doc
Conflicts: plug-ins/index.html
This commit is contained in:
commit
9a53a4b34d
5 changed files with 85 additions and 34 deletions
|
@ -534,6 +534,44 @@ $ ./kobaltw uploadBintray
|
|||
<dd>The first parameter is the file you want to upload and the second one is the path where it will be uploaded to.</dd>
|
||||
</dl>
|
||||
|
||||
<h3 class="section" indent="1" id="configuring-pom">Configuring your POM file</h3>
|
||||
<p>
|
||||
When you upload your package to Bintray or JCenter in Maven form, Kobalt will create a default
|
||||
POM file for you. You can configure it with the <code>pom{}</code> directive in your project.
|
||||
Here is an example:
|
||||
</p>
|
||||
|
||||
<pre class="brush:java">
|
||||
import org.apache.maven.model.*
|
||||
|
||||
val kobalt = project {
|
||||
pom = Model().apply {
|
||||
name = project.name
|
||||
description = "A build system in Kotlin"
|
||||
url = "http://beust.com/kobalt"
|
||||
licenses = listOf(License().apply {
|
||||
name = "Apache 2.0"
|
||||
url = "http://www.apache .org/licenses/LICENSE-2.0"
|
||||
})
|
||||
scm = Scm().apply {
|
||||
url = "http://github.com/cbeust/kobalt"
|
||||
connection = "https://github.com/cbeust/kobalt.git"
|
||||
developerConnection = "git@github.com:cbeust/kobalt.git"
|
||||
}
|
||||
developers = listOf(Developer().apply {
|
||||
name = "Cedric Beust"
|
||||
email = "cedric@beust.com"
|
||||
})
|
||||
}
|
||||
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
Note that the classes used in this snippet (<code>Model</code>, <code>License</code>, etc...) are
|
||||
the actual Apache Maven class, so you have access to the full POM model.
|
||||
</p>
|
||||
|
||||
<!---
|
||||
<h2 class="section" id="dokka">Dokka</h2>
|
||||
|
||||
<p>
|
||||
|
@ -572,10 +610,11 @@ $ ./kobaltw uploadBintray
|
|||
<dt>skip</dt>
|
||||
<dd>If true, don't generate anything.</dd>
|
||||
</dl>
|
||||
|
||||
-->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Table of contents -->
|
||||
<div class="col-md-3" id="table-of-contents">
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue