Compare commits
No commits in common. "master" and "0.1.0" have entirely different histories.
2 changed files with 6 additions and 11 deletions
14
README.md
14
README.md
|
@ -1,11 +1,11 @@
|
||||||
# pom2xml plug-in for [Kobalt](http://beust.com/kobalt/home/index.html)
|
# 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.
|
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`:
|
To use the plug-in include the following in `Build.kt` file:
|
||||||
|
|
||||||
```kotlin
|
```kotlin
|
||||||
import net.thauvin.erik.kobalt.plugin.pom2xml.*
|
import net.thauvin.erik.kobalt.plugin.pom2xml.*
|
||||||
|
@ -26,12 +26,6 @@ val p = project {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
To invoke the `pom2xml` task:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
./kobaltw pom2xml
|
|
||||||
```
|
|
||||||
|
|
||||||
The `pom.xml` file will be created in the project's directory.
|
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)
|
[View Example](https://github.com/ethauvin/kobalt-pom2xml/blob/master/example/kobalt/src/Build.kt)
|
||||||
|
@ -42,8 +36,8 @@ The following optional configuration parameters are available.
|
||||||
|
|
||||||
Attribute | Description
|
Attribute | Description
|
||||||
:---------------|:----------------------------------------------------------------------------------
|
:---------------|:----------------------------------------------------------------------------------
|
||||||
`loc` | The directory location to save the POM file to, defaults to the project directory.
|
`name` | 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`.
|
`loc` | The name of the POM file, defaults to `pom.xml`.
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Pom2XmlPlugin.kt
|
* VersionEyePlugin.kt
|
||||||
*
|
*
|
||||||
* Copyright (c) 2018, Erik C. Thauvin (erik@thauvin.net)
|
* Copyright (c) 2018, Erik C. Thauvin (erik@thauvin.net)
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
|
@ -39,6 +39,7 @@ import com.beust.kobalt.api.annotation.Task
|
||||||
import com.beust.kobalt.misc.warn
|
import com.beust.kobalt.misc.warn
|
||||||
import com.google.inject.Inject
|
import com.google.inject.Inject
|
||||||
import com.google.inject.Singleton
|
import com.google.inject.Singleton
|
||||||
|
|
||||||
import java.io.File
|
import java.io.File
|
||||||
|
|
||||||
@Singleton
|
@Singleton
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue