@@ -2,23 +2,7 @@ name := "taklib"
22
33lazy val commonSettings = Seq (
44 version := " 0.2.0" ,
5- scalaVersion := " 2.12.1" ,
6- scalacOptions ++= Seq (
7- " -deprecation" ,
8- " -encoding" , " UTF-8" , // yes, this is 2 args
9- " -feature" ,
10- " -unchecked" ,
11- " -Xfatal-warnings" ,
12- " -Xlint" ,
13- " -Yno-adapted-args" ,
14- // "-Ywarn-dead-code", // N.B. doesn't work well with the ??? hole
15- " -Ywarn-numeric-widen" ,
16- " -Ywarn-value-discard" ,
17- " -Ywarn-unused" ,
18- " -Ywarn-unused-import" ,
19- " -Xfuture" ,
20- " -Ypartial-unification"
21- )
5+ scalaVersion := " 2.13.8"
226)
237
248lazy val taklib = (project in file(" taklib" ))
@@ -34,54 +18,63 @@ lazy val opentak = (project in file("opentak"))
3418 .settings(commonSettings, name := " opentak" )
3519
3620// Remove these options in 'sbt console' because they're not nice for interactive usage
37- scalacOptions in (taklib, Compile , console) ~= (_.filterNot(Set (" -Xfatal-warnings" , " -Ywarn-unused-import" ).contains))
38- scalacOptions in (takcli, Compile , console) ~= (_.filterNot(Set (" -Xfatal-warnings" , " -Ywarn-unused-import" ).contains))
39- scalacOptions in (tpsserver, Compile , console) ~= (_.filterNot(Set (" -Xfatal-warnings" , " -Ywarn-unused-import" ).contains))
40- scalacOptions in (opentak, Compile , console) ~= (_.filterNot(Set (" -Xfatal-warnings" , " -Ywarn-unused-import" ).contains))
21+ scalacOptions in (taklib, Compile , console) ~= (_.filterNot(
22+ Set (" -Xfatal-warnings" , " -Ywarn-unused-import" ).contains
23+ ))
24+ scalacOptions in (takcli, Compile , console) ~= (_.filterNot(
25+ Set (" -Xfatal-warnings" , " -Ywarn-unused-import" ).contains
26+ ))
27+ scalacOptions in (tpsserver, Compile , console) ~= (_.filterNot(
28+ Set (" -Xfatal-warnings" , " -Ywarn-unused-import" ).contains
29+ ))
30+ scalacOptions in (opentak, Compile , console) ~= (_.filterNot(
31+ Set (" -Xfatal-warnings" , " -Ywarn-unused-import" ).contains
32+ ))
4133
4234resolvers += Resolver .sonatypeRepo(" releases" )
4335
44- val catsVersion = " 0.9 .0"
45- val parserCombinators = " org.scala-lang.modules" %% " scala-parser-combinators" % " 1.0.5 "
36+ val catsVersion = " 2.7 .0"
37+ val parserCombinators = " org.scala-lang.modules" %% " scala-parser-combinators" % " 2. 1.0"
4638val dependencies = Seq (
47- " org.typelevel" %% " cats" % catsVersion,
39+ " org.typelevel" %% " cats-core " % catsVersion,
4840 parserCombinators,
49- " org.scala-graph" %% " graph-core" % " 1.11 .4"
41+ " org.scala-graph" %% " graph-core" % " 1.13 .4"
5042)
5143val testDependencies = Seq (
52- " org.scalatest" %% " scalatest" % " 3.0.1" % " test" ,
53- " org.scalacheck" %% " scalacheck" % " 1.13.4" % " test" ,
54- " com.ironcorelabs" %% " cats-scalatest" % " 2.2.0" % " test"
44+ " org.scalatest" %% " scalatest" % " 3.2.11" % " test" ,
45+ " org.scalacheck" %% " scalacheck" % " 1.15.4" % " test" ,
46+ " com.ironcorelabs" %% " cats-scalatest" % " 3.1.1" % " test" ,
47+ " org.typelevel" %% " discipline-core" % " 1.4.0" % " test" ,
48+ " org.typelevel" %% " discipline-scalatest" % " 2.0.0" ,
49+ " org.typelevel" %% " cats-kernel-laws" % catsVersion % " test" ,
50+ " org.scalatestplus" %% " scalacheck-1-15" % " 3.2.11.0" % " test"
5551)
5652
57- libraryDependencies in taklib ++= dependencies
58- libraryDependencies in taklib ++= testDependencies
59- libraryDependencies in takcli ++= Seq (
60- " org.typelevel" %% " cats-effect" % " 0.2 "
53+ taklib / libraryDependencies ++= dependencies
54+ taklib / libraryDependencies ++= testDependencies
55+ takcli / libraryDependencies ++= Seq (
56+ " org.typelevel" %% " cats-effect" % " 3.3.5 "
6157)
6258
6359resolvers in tpsserver += Resolver .sonatypeRepo(" snapshots" )
64- val http4sVersion = " 0.17.0-M1 "
65- val circeVersion = " 0.7.0 "
66- libraryDependencies in tpsserver ++= Seq (
67- " io.circe" %% " circe-core" % circeVersion,
60+ val http4sVersion = " 0.23.10 "
61+ val circeVersion = " 0.14.1 "
62+ tpsserver / libraryDependencies ++= Seq (
63+ " io.circe" %% " circe-core" % circeVersion,
6864 " io.circe" %% " circe-generic" % circeVersion,
69- " io.circe" %% " circe-parser" % circeVersion,
65+ " io.circe" %% " circe-parser" % circeVersion,
7066 " io.circe" %% " circe-optics" % circeVersion % " test" ,
71-
7267 " org.http4s" %% " http4s-blaze-server" % http4sVersion,
73- " org.http4s" %% " http4s-circe" % http4sVersion,
74- " org.http4s" %% " http4s-dsl" % http4sVersion,
68+ " org.http4s" %% " http4s-circe" % http4sVersion,
69+ " org.http4s" %% " http4s-dsl" % http4sVersion,
7570 " org.http4s" %% " http4s-blaze-client" % http4sVersion % " test" ,
76- " org.http4s" %% " http4s-client" % http4sVersion % " test" ,
77-
71+ " org.http4s" %% " http4s-client" % http4sVersion % " test" ,
7872 " ch.qos.logback" % " logback-classic" % " 1.2.1"
7973) ++ testDependencies
8074
81- libraryDependencies in opentak += parserCombinators
82- libraryDependencies in opentak ++= testDependencies
83-
75+ opentak / libraryDependencies += parserCombinators
76+ opentak / libraryDependencies ++= testDependencies
8477
8578initialCommands in (taklib, console) += " import com.github.daenyth.taklib._"
8679
87- coverageEnabled in taklib := true
80+ // coverageEnabled in taklib := true
0 commit comments