Maven Local Repository Plug-in for the Kobalt build system https://github.com/ethauvin/kobalt-maven-local
Find a file
2017-03-06 21:15:28 -08:00
.idea Added example to IDEA project. 2017-03-06 20:22:20 -08:00
example Release 0.5.2 prep 2017-03-06 21:15:28 -08:00
kobalt Release 0.5.2 prep 2017-03-06 21:15:28 -08:00
lib Rebuild IDEA project from scratch. 2017-03-06 14:19:35 -08:00
src Kotlin 1.1 and Kobalt 1.0.x optimization 2017-03-06 14:20:01 -08:00
.gitignore Added TravicCI configuration. 2016-07-20 23:26:17 -07:00
.travis.yml Fix for TravisCI 2016-07-21 15:39:25 -07:00
kobalt-maven-local.iml Rebuild IDEA project from scratch. 2017-03-06 14:19:35 -08:00
kobaltw Moved code from apply {} to init {} 2016-07-20 18:30:44 -07:00
kobaltw.bat Initial commit. 2016-07-20 16:02:48 -07:00
LICENSE.TXT Added License. 2016-07-20 16:06:58 -07:00
README.md Release 0.5.2 prep 2017-03-06 21:15:28 -08:00

Maven Local Repository plug-in for Kobalt

License (3-Clause BSD) Build Status Download

The plug-in will detect the Maven Local Repository location, similarly to Gradle's mavenLocal() repository handler.

To use the plug-in include the following in your Build.kt file:

import net.thauvin.erik.kobalt.plugin.maven.local.*

val bs = buildScript {
    plugins("net.thauvin.erik:kobalt-maven-local:")
}

val p = project {
    name = "example"
}

Use the localMaven() directive to tell Kobalt to look for artifacts in the Maven Local Repository:

val repos = repos(localMaven())

To publish to the Maven Local Repository use the publishToMavenLocal task:

./kobaltw publishToMavenLocal

View Example

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 <localRepository> is set:

<localRepository>~/foo/repository</localRepository>

$M2_HOME/conf/settings.xml

If the $M2_HOME environment variable and <localRepository> are set.

~/.m2/repository

If the directory exists.