mirror of https://github.com/sbt/sbt.git
Merge pull request #294 from alexarchambault/update/coursier-2.0.7
Update coursier to 2.0.7
This commit is contained in:
commit
103665b72f
|
|
@ -15,7 +15,7 @@ inThisBuild(List(
|
||||||
)
|
)
|
||||||
))
|
))
|
||||||
|
|
||||||
val coursierVersion0 = "2.0.6"
|
val coursierVersion0 = "2.0.7"
|
||||||
|
|
||||||
lazy val `lm-coursier` = project
|
lazy val `lm-coursier` = project
|
||||||
.in(file("modules/lm-coursier"))
|
.in(file("modules/lm-coursier"))
|
||||||
|
|
@ -54,7 +54,8 @@ lazy val `lm-coursier-shaded` = project
|
||||||
"argonaut",
|
"argonaut",
|
||||||
"org.fusesource",
|
"org.fusesource",
|
||||||
"macrocompat",
|
"macrocompat",
|
||||||
"io.github.alexarchambault.windowsansi"
|
"io.github.alexarchambault.windowsansi",
|
||||||
|
"concurrentrefhashmap"
|
||||||
)
|
)
|
||||||
for (ns <- toShade)
|
for (ns <- toShade)
|
||||||
yield ShadingRule.moveUnder(ns, "lmcoursier.internal.shaded")
|
yield ShadingRule.moveUnder(ns, "lmcoursier.internal.shaded")
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
package lmcoursier.internal
|
package lmcoursier.internal
|
||||||
|
|
||||||
import coursier.ivy.IvyRepository
|
|
||||||
import java.net.MalformedURLException
|
import java.net.MalformedURLException
|
||||||
|
import java.nio.file.Paths
|
||||||
|
|
||||||
import coursier.cache.CacheUrl
|
import coursier.cache.CacheUrl
|
||||||
import coursier.core.{Authentication, Repository}
|
import coursier.core.{Authentication, Repository}
|
||||||
|
import coursier.ivy.IvyRepository
|
||||||
import coursier.maven.MavenRepository
|
import coursier.maven.MavenRepository
|
||||||
import org.apache.ivy.plugins.resolver.IBiblioResolver
|
import org.apache.ivy.plugins.resolver.IBiblioResolver
|
||||||
import sbt.librarymanagement.{Configuration => _, MavenRepository => _, _}
|
import sbt.librarymanagement.{Configuration => _, MavenRepository => _, _}
|
||||||
|
|
@ -54,7 +55,14 @@ object Resolvers {
|
||||||
|
|
||||||
// this handles whitespace in path
|
// this handles whitespace in path
|
||||||
private def pathToUriString(path: String): String = {
|
private def pathToUriString(path: String): String = {
|
||||||
"file://" + path.replaceAllLiterally(" ", "%20")
|
val stopAtIdx = path.indexWhere(c => c == '[' || c == '$' || c == '(')
|
||||||
|
if (stopAtIdx > 0) {
|
||||||
|
val (pathPart, patternPart) = path.splitAt(stopAtIdx)
|
||||||
|
Paths.get(pathPart).toUri.toASCIIString + patternPart
|
||||||
|
} else if (stopAtIdx == 0)
|
||||||
|
"file://" + path
|
||||||
|
else
|
||||||
|
Paths.get(path).toUri.toASCIIString
|
||||||
}
|
}
|
||||||
|
|
||||||
def repository(
|
def repository(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue