Merge pull request #5423 from dwijnand/1.4/fix-coursier-classpath-order

Fix Coursier classpath order
This commit is contained in:
eugene yokota 2020-02-08 01:33:53 -05:00 committed by GitHub
commit f5bd0fd096
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 31 additions and 1 deletions

View File

@ -76,7 +76,7 @@ object Dependencies {
def addSbtZincCompile = addSbtModule(sbtZincPath, "zincCompile", zincCompile)
def addSbtZincCompileCore = addSbtModule(sbtZincPath, "zincCompileCore", zincCompileCore)
val lmCoursierShaded = "io.get-coursier" %% "lm-coursier-shaded" % "2.0.0-RC6"
val lmCoursierShaded = "io.get-coursier" %% "lm-coursier-shaded" % "2.0.0-RC6-1"
def sjsonNew(n: String) = Def.setting("com.eed3si9n" %% n % contrabandSjsonNewVersion.value)
val sjsonNewScalaJson = sjsonNew("sjson-new-scalajson")

View File

@ -0,0 +1,5 @@
scalaVersion := "2.13.1"
csrConfiguration := csrConfiguration.value.withCache(target.value / "coursier-cache")
libraryDependencies += "com.typesafe.play" %% "play-test" % "2.8.0-RC1" % Test // worked around in 2.8.0
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.8" % Test

View File

@ -0,0 +1,20 @@
package t
import com.typesafe.config.ConfigFactory
import org.scalatest.{ MustMatchers, WordSpec }
class UnitSpec extends WordSpec with MustMatchers {
def conf = ConfigFactory.defaultReference()
"Config" should {
"return Akka HTTP server provider" in {
val serverProvider = conf.getString("play.server.provider")
serverProvider mustBe "play.core.server.AkkaHttpServerProvider"
}
"be able to load Netty settings" in {
val nettyTransport = conf.getString("play.server.netty.transport")
nettyTransport mustBe "jdk"
}
}
}

View File

@ -0,0 +1,5 @@
# https://github.com/coursier/coursier/issues/1466
# aka https://github.com/sbt/sbt/issues/5282
> test
> set csrConfiguration ~= (_.withClasspathOrder(false))
-> test