mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Added buildFileClasspat().
This commit is contained in:
parent
c06e92b679
commit
25b97dd21f
4 changed files with 22 additions and 0 deletions
|
@ -57,6 +57,11 @@ fun repos(vararg repos : String) {
|
|||
repos.forEach { Kobalt.addRepo(HostConfig(it)) }
|
||||
}
|
||||
|
||||
@Directive
|
||||
fun buildFileClasspath(vararg deps: String) {
|
||||
deps.forEach { Kobalt.addBuildFileClasspath(it) }
|
||||
}
|
||||
|
||||
@Directive
|
||||
fun authRepos(vararg repos : HostConfig) {
|
||||
repos.forEach { Kobalt.addRepo(it) }
|
||||
|
|
|
@ -4,6 +4,7 @@ import com.beust.kobalt.Constants
|
|||
import com.beust.kobalt.HostConfig
|
||||
import com.beust.kobalt.Plugins
|
||||
import com.beust.kobalt.internal.PluginInfo
|
||||
import com.beust.kobalt.maven.DependencyManager
|
||||
import com.google.inject.Guice
|
||||
import com.google.inject.Injector
|
||||
import com.google.inject.Module
|
||||
|
@ -65,6 +66,13 @@ class Kobalt {
|
|||
if (repo.url.endsWith("/")) repo
|
||||
else repo.copy(url = (repo.url + "/")))
|
||||
|
||||
val buildFileClasspath = arrayListOf<IClasspathDependency>()
|
||||
|
||||
fun addBuildFileClasspath(dep: String) {
|
||||
val dependencyManager = Kobalt.INJECTOR.getInstance(DependencyManager::class.java)
|
||||
buildFileClasspath.add(dependencyManager.create(dep))
|
||||
}
|
||||
|
||||
private val KOBALT_PROPERTIES = "kobalt.properties"
|
||||
private val PROPERTY_KOBALT_VERSION = "kobalt.version"
|
||||
private val PROPERTY_KOBALT_VERSION_CHECK_TIMEOUT = "kobalt.version.checkTimeout" // ISO-8601
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue