https://github.com/ethauvin/kobalt-maven-local
Maven Local Repository Plug-in for the Kobalt build system
https://github.com/ethauvin/kobalt-maven-local
kobalt kotlin maven plugin
Last synced: 5 months ago
JSON representation
Maven Local Repository Plug-in for the Kobalt build system
- Host: GitHub
- URL: https://github.com/ethauvin/kobalt-maven-local
- Owner: ethauvin
- License: bsd-3-clause
- Created: 2016-07-20T23:03:51.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-26T22:59:48.000Z (over 8 years ago)
- Last Synced: 2024-04-16T12:04:29.378Z (over 1 year ago)
- Topics: kobalt, kotlin, maven, plugin
- Language: Kotlin
- Homepage:
- Size: 4.04 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.TXT
Awesome Lists containing this project
README
# Maven Local Repository plug-in for [Kobalt](http://beust.com/kobalt/home/index.html)
[](http://opensource.org/licenses/BSD-3-Clause) [](https://travis-ci.org/ethauvin/kobalt-maven-local) [ ](https://bintray.com/ethauvin/maven/kobalt-maven-local/_latestVersion)
The plug-in will detect the Maven Local Repository location, similarly to Gradle's [mavenLocal()](https://docs.gradle.org/current/dsl/org.gradle.api.artifacts.dsl.RepositoryHandler.html#org.gradle.api.artifacts.dsl.RepositoryHandler:mavenLocal()) repository handler.
To use the plug-in include the following in your `Build.kt` file:
```kotlin
val bs = buildScript {
plugins("net.thauvin.erik:kobalt-maven-local:")
}val p = project {
name = "example"
}
```To publish to the Maven Local Repository use the `publishToMavenLocal` task:
```
./kobaltw publishToMavenLocal
```[View Example](https://github.com/ethauvin/kobalt-maven-local/blob/master/example/kobalt/src/Build.kt)
## Locations
The plug-in looks for the Maven Local Repository in the following locations:
### `maven.repo.local`
Either as a system property or in the project's `local.properties` file.
To set the system property use:
```
./kobaltw -Dmaven.repo.local=~/foo/repository ...
```or in `local.properties` add:
```
maven.repo.local=~/foo/repository
```### `~/.m2/settings.xml`
If `` is set:
```xml
~/foo/repository
```### `$M2_HOME/conf/settings.xml`
If the `$M2_HOME` environment variable and `` are set.
### `~/.m2/repository`
If the directory exists.