mirror of https://github.com/sbt/sbt.git
Merge pull request #7265 from armanbilge/patch-1
Update typelevel toolkit, configure test artifact
This commit is contained in:
commit
71adb62d86
|
|
@ -289,14 +289,17 @@ libraryDependencies += (toolkitTest % Test)
|
||||||
}
|
}
|
||||||
|
|
||||||
private def typelevelToolkitTemplate(): Unit = {
|
private def typelevelToolkitTemplate(): Unit = {
|
||||||
val defaultTypelevelToolkitV = "0.0.8"
|
val defaultTypelevelToolkitV = "0.0.11"
|
||||||
val scalaV = ask("Scala version", defaultScalaV)
|
val scalaV = ask("Scala version", defaultScalaV)
|
||||||
val toolkitV = ask("Typelevel Toolkit version", defaultTypelevelToolkitV)
|
val toolkitV = ask("Typelevel Toolkit version", defaultTypelevelToolkitV)
|
||||||
val content = s"""
|
val content = s"""
|
||||||
val toolkit = "org.typelevel" %% "toolkit" % "$toolkitV"
|
val toolkitV = "$toolkitV"
|
||||||
|
val toolkit = "org.typelevel" %% "toolkit" % toolkitV
|
||||||
|
val toolkitTest = "org.typelevel" %% "toolkit-test" % toolkitV
|
||||||
|
|
||||||
ThisBuild / scalaVersion := "$scalaV"
|
ThisBuild / scalaVersion := "$scalaV"
|
||||||
libraryDependencies += toolkit
|
libraryDependencies += toolkit
|
||||||
|
libraryDependencies += (toolkitTest % Test)
|
||||||
"""
|
"""
|
||||||
IO.write(new File("build.sbt"), content)
|
IO.write(new File("build.sbt"), content)
|
||||||
copyResource("TypelevelMain.scala.txt", new File("src/main/scala/example/Main.scala"))
|
copyResource("TypelevelMain.scala.txt", new File("src/main/scala/example/Main.scala"))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue