Initial commit
This commit is contained in:
commit
da9aad15e4
29 changed files with 1338 additions and 0 deletions
49
README.md
Normal file
49
README.md
Normal file
|
@ -0,0 +1,49 @@
|
|||
# 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://snyk.io/test/github/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:
|
||||
|
||||
```kotlin
|
||||
import net.thauvin.erik.kobalt.plugin.pom2xml.*
|
||||
|
||||
val bs = buildScript {
|
||||
plugins("net.thauvin.erik:kobalt-pom2xml:")
|
||||
}
|
||||
|
||||
val p = project {
|
||||
name = "example"
|
||||
group = "com.example"
|
||||
artifactId = name
|
||||
version = "0.1"
|
||||
|
||||
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)
|
||||
|
||||
## Parameters
|
||||
|
||||
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`.
|
||||
|
||||
For example:
|
||||
|
||||
```kotlin
|
||||
pom2xml {
|
||||
name = "pom-test.xml"
|
||||
loc = "foo/bar"
|
||||
}
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue