@@ -19,7 +19,8 @@ object ProjectPlugin extends AutoPlugin {
19
19
object autoImport {
20
20
21
21
object V {
22
- lazy val http4s = " 0.20.15"
22
+ lazy val cats = " 2.1.0"
23
+ lazy val http4s = " 0.21.0-M6"
23
24
lazy val circe = " 0.12.3"
24
25
lazy val log4s = " 1.7.0"
25
26
lazy val scalatest = " 3.1.0"
@@ -44,33 +45,27 @@ object ProjectPlugin extends AutoPlugin {
44
45
.user(" evaluator" )
45
46
.add(artifact, artifactTargetPath)
46
47
.cmdRaw(
47
- s " java -Dhttp.port= $$ PORT -Deval.auth.secretKey= $$ EVAL_SECRET_KEY -jar $artifactTargetPath" )
48
+ s " java -Dhttp.port= $$ PORT -Deval.auth.secretKey= $$ EVAL_SECRET_KEY -jar $artifactTargetPath"
49
+ )
48
50
},
49
- imageNames in docker := Seq (ImageName (repository =
50
- s " registry.heroku.com/ ${sys.props.getOrElse(" evaluator.heroku.name" , " scala-evaluator" )}/web " ))
51
+ imageNames in docker := Seq (
52
+ ImageName (repository =
53
+ s " registry.heroku.com/ ${sys.props.getOrElse(" evaluator.heroku.name" , " scala-evaluator" )}/web "
54
+ )
55
+ )
51
56
)
52
57
53
58
lazy val serverScalaMacroDependencies : Seq [Setting [_]] = {
54
59
Seq (
55
60
libraryDependencies += " org.scala-lang" % " scala-compiler" % scalaVersion.value,
56
- libraryDependencies += " org.scala-lang" % " scala-reflect" % scalaVersion.value,
57
- libraryDependencies += compilerPlugin(%% (" paradise" ) cross CrossVersion .full),
58
- libraryDependencies ++= {
59
- CrossVersion .partialVersion(scalaVersion.value) match {
60
- // if scala 2.11+ is used, quasiquotes are merged into scala-reflect
61
- case Some ((2 , scalaMajor)) if scalaMajor >= 11 => Seq ()
62
- // in Scala 2.10, quasiquotes are provided by macro paradise
63
- case Some ((2 , 10 )) =>
64
- Seq (
65
- %% (" quasiquotes" ) cross CrossVersion .binary
66
- )
67
- }
68
- }
61
+ libraryDependencies += " org.scala-lang" % " scala-reflect" % scalaVersion.value
69
62
)
70
63
}
71
64
72
65
lazy val serverHttpDependencies = Seq (
73
66
libraryDependencies ++= Seq (
67
+ %% (" cats-core" , V .cats),
68
+ %% (" cats-effect" , V .cats),
74
69
%% (" circe-core" , V .circe),
75
70
%% (" circe-generic" , V .circe),
76
71
% (" slf4j-simple" , V .slf4jSimple),
@@ -93,6 +88,8 @@ object ProjectPlugin extends AutoPlugin {
93
88
94
89
lazy val smoketestDependencies = Seq (
95
90
libraryDependencies ++= Seq (
91
+ %% (" cats-core" , V .cats),
92
+ %% (" cats-effect" , V .cats),
96
93
%% (" circe-core" , V .circe),
97
94
%% (" circe-generic" , V .circe),
98
95
%% (" circe-parser" , V .circe),
@@ -113,7 +110,8 @@ object ProjectPlugin extends AutoPlugin {
113
110
resolvers ++= Seq (
114
111
Resolver .mavenLocal,
115
112
Resolver .sonatypeRepo(" snapshots" ),
116
- Resolver .sonatypeRepo(" releases" )),
113
+ Resolver .sonatypeRepo(" releases" )
114
+ ),
117
115
orgGithubSetting := GitHubSettings (
118
116
organization = " scala-exercises" ,
119
117
project = name.value,
@@ -123,11 +121,11 @@ object ProjectPlugin extends AutoPlugin {
123
121
organizationEmail = " hello@47deg.com"
124
122
),
125
123
orgLicenseSetting := ApacheLicense ,
126
- scalaVersion := " 2.12.10 " ,
124
+ scalaVersion := " 2.13.1 " ,
127
125
scalaOrganization := " org.scala-lang" ,
126
+ scalacOptions ~= (_ filterNot (_ == " -Xfuture" )),
127
+ scalacOptions += " -Ymacro-annotations" ,
128
128
javacOptions ++= Seq (" -encoding" , " UTF-8" , " -Xlint:-options" ),
129
- scalacOptions += " -Ypartial-unification" ,
130
- fork in Test := false ,
131
129
parallelExecution in Test := false ,
132
130
cancelable in Global := true ,
133
131
headerLicense := Some (
@@ -137,6 +135,7 @@ object ProjectPlugin extends AutoPlugin {
137
135
| Copyright (C) 2015-2019 47 Degrees, LLC. <http://www.47deg.com>
138
136
|
139
137
| """ .stripMargin
140
- ))
138
+ )
139
+ )
141
140
) ++ shellPromptSettings
142
141
}
0 commit comments