mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Add ~/.m2/repository in the list of default repos.
This commit is contained in:
parent
64c2a13048
commit
23119c4936
1 changed files with 8 additions and 3 deletions
|
@ -3,9 +3,11 @@ package com.beust.kobalt.api
|
|||
import com.beust.kobalt.Args
|
||||
import com.beust.kobalt.HostConfig
|
||||
import com.beust.kobalt.Plugins
|
||||
import com.beust.kobalt.homeDir
|
||||
import com.beust.kobalt.misc.MainModule
|
||||
import com.google.inject.Guice
|
||||
import com.google.inject.Injector
|
||||
import java.io.File
|
||||
import java.io.InputStream
|
||||
import java.util.*
|
||||
|
||||
|
@ -18,12 +20,15 @@ public class Kobalt {
|
|||
|
||||
var context: KobaltContext? = null
|
||||
|
||||
private val DEFAULT_REPOS = arrayListOf(
|
||||
val MAVEN_REPO = homeDir(".m2" + File.separator + "repository")
|
||||
|
||||
private val DEFAULT_REPOS = listOf(
|
||||
"http://repo1.maven.org/maven2/",
|
||||
"https://maven-central.storage.googleapis.com/",
|
||||
"https://repository.jboss.org/nexus/content/repositories/root_repository/",
|
||||
"https://jcenter.bintray.com/"
|
||||
)
|
||||
"https://jcenter.bintray.com/",
|
||||
if (File(MAVEN_REPO).exists()) MAVEN_REPO else ""
|
||||
).filter { it != "" }
|
||||
|
||||
val repos = HashSet<HostConfig>(DEFAULT_REPOS.map { HostConfig(it) })
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue