Compare commits
5 commits
Author | SHA1 | Date | |
---|---|---|---|
3ba83d5562 | |||
bd74c5f333 | |||
d3872b38b7 | |||
4d5e996de5 | |||
9855cc4525 |
2 changed files with 11 additions and 6 deletions
14
README.md
14
README.md
|
@ -1,11 +1,11 @@
|
|||
# pom2xml plug-in for [Kobalt](http://beust.com/kobalt/home/index.html)
|
||||
|
||||
[](http://opensource.org/licenses/BSD-3-Clause) [](https://github.com/ethauvin/kobalt-pom2xml/releases/latest) [](https://travis-ci.org/ethauvin/kobalt-pom2xml) [](https://circleci.com/gh/ethauvin/kobalt-pom2xml/tree/master) [ ](https://bintray.com/ethauvin/maven/kobalt-pom2xml/_latestVersion)
|
||||
[](http://opensource.org/licenses/BSD-3-Clause) [](https://github.com/ethauvin/kobalt-pom2xml/releases/latest) [](https://travis-ci.org/ethauvin/kobalt-pom2xml) [](https://circleci.com/gh/ethauvin/kobalt-pom2xml/tree/master) [ ](https://bintray.com/ethauvin/maven/kobalt-pom2xml/_latestVersion)
|
||||
|
||||
|
||||
The plug-in will generate a [Project Object Model](https://maven.apache.org/guides/introduction/introduction-to-the-pom.html) (POM) XML file for your project.
|
||||
|
||||
To use the plug-in include the following in `Build.kt` file:
|
||||
To use the plug-in include the following in `Build.kt`:
|
||||
|
||||
```kotlin
|
||||
import net.thauvin.erik.kobalt.plugin.pom2xml.*
|
||||
|
@ -26,6 +26,12 @@ val p = project {
|
|||
}
|
||||
```
|
||||
|
||||
To invoke the `pom2xml` task:
|
||||
|
||||
```sh
|
||||
./kobaltw pom2xml
|
||||
```
|
||||
|
||||
The `pom.xml` file will be created in the project's directory.
|
||||
|
||||
[View Example](https://github.com/ethauvin/kobalt-pom2xml/blob/master/example/kobalt/src/Build.kt)
|
||||
|
@ -36,8 +42,8 @@ The following optional configuration parameters are available.
|
|||
|
||||
Attribute | Description
|
||||
:---------------|:----------------------------------------------------------------------------------
|
||||
`name` | The directory location to save the POM file to, defaults to the project directory.
|
||||
`loc` | The name of the POM file, defaults to `pom.xml`.
|
||||
`loc` | The directory location to save the POM file to, defaults to the project directory.
|
||||
`name` | The name of the POM file, defaults to `pom.xml`.
|
||||
|
||||
For example:
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* VersionEyePlugin.kt
|
||||
* Pom2XmlPlugin.kt
|
||||
*
|
||||
* Copyright (c) 2018, Erik C. Thauvin (erik@thauvin.net)
|
||||
* All rights reserved.
|
||||
|
@ -39,7 +39,6 @@ import com.beust.kobalt.api.annotation.Task
|
|||
import com.beust.kobalt.misc.warn
|
||||
import com.google.inject.Inject
|
||||
import com.google.inject.Singleton
|
||||
|
||||
import java.io.File
|
||||
|
||||
@Singleton
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue