Merge pull request #7265 from armanbilge/patch-1

Update typelevel toolkit, configure test artifact
This commit is contained in:
adpi2 2023-05-23 10:01:34 +02:00 committed by GitHub
commit 71adb62d86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -289,14 +289,17 @@ libraryDependencies += (toolkitTest % Test)
}
private def typelevelToolkitTemplate(): Unit = {
val defaultTypelevelToolkitV = "0.0.8"
val defaultTypelevelToolkitV = "0.0.11"
val scalaV = ask("Scala version", defaultScalaV)
val toolkitV = ask("Typelevel Toolkit version", defaultTypelevelToolkitV)
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"
libraryDependencies += toolkit
libraryDependencies += (toolkitTest % Test)
"""
IO.write(new File("build.sbt"), content)
copyResource("TypelevelMain.scala.txt", new File("src/main/scala/example/Main.scala"))