mirror of https://github.com/sbt/sbt.git
Add scripted scala3-auto-scala-library
This commit is contained in:
parent
4b91541a69
commit
28ad11b07f
|
|
@ -0,0 +1,19 @@
|
|||
autoScalaLibrary := false
|
||||
scalaVersion := "3.0.0-M2"
|
||||
libraryDependencies += "com.chuusai" % "shapeless_2.13" % "2.3.3"
|
||||
|
||||
val checkScalaLibrary = TaskKey[Unit]("checkScalaLibrary")
|
||||
|
||||
checkScalaLibrary := {
|
||||
val scalaLibsJars = (Compile / managedClasspath).value
|
||||
.map(_.data.getName)
|
||||
.filter(name => name.startsWith("scala-library") || name.startsWith("scala3-library"))
|
||||
.sorted
|
||||
val expectedScalaLibsJars = Seq(
|
||||
"scala-library-2.13.0.jar"
|
||||
)
|
||||
assert(
|
||||
scalaLibsJars == expectedScalaLibsJars,
|
||||
s"$scalaLibsJars != $expectedScalaLibsJars"
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
> checkScalaLibrary
|
||||
Loading…
Reference in New Issue