Maven Local Repository plug-in for Kobalt
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:
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
The plug-in looks for the Maven Local Repository in the following locations:
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
If <localRepository> is set:
<localRepository>~/foo/repository</localRepository>If the $M2_HOME environment variable and <localRepository> are set.
If the directory exists.