@@ -3,14 +3,14 @@ import sbt._
3
3
object Common {
4
4
import Keys ._
5
5
6
- val defaultScalaVersion = " 2.13.1 "
6
+ val defaultScalaVersion = " 2.13.14 "
7
7
8
8
val testSettings : Seq [Setting [_]] = Seq (
9
- testOptions in Test += Tests .Cleanup { loader =>
9
+ Test / testOptions += Tests .Cleanup { loader =>
10
10
val c = loader.loadClass(" unfiltered.spec.Cleanup$" )
11
11
c.getMethod(" cleanup" ).invoke(c.getField(" MODULE$" ).get(c))
12
12
},
13
- testOptions in Test += Tests .Argument (TestFrameworks .ScalaCheck , " -verbosity" , " 3" )
13
+ Test / testOptions += Tests .Argument (TestFrameworks .ScalaCheck , " -verbosity" , " 3" )
14
14
)
15
15
16
16
val settings : Seq [Setting [_]] = Seq (
@@ -20,7 +20,7 @@ object Common {
20
20
21
21
scalaVersion := defaultScalaVersion,
22
22
23
- scalacOptions in ( Compile ) ++= Seq (
23
+ Compile / scalacOptions ++= Seq (
24
24
" -deprecation" ,
25
25
" -feature" ,
26
26
" -unchecked" ,
@@ -33,7 +33,7 @@ object Common {
33
33
" -Ywarn-value-discard"
34
34
),
35
35
36
- scalacOptions in ( Compile ) ++= {
36
+ Compile / scalacOptions ++= {
37
37
CrossVersion .partialVersion(scalaVersion.value) match {
38
38
case Some ((2 , v)) if v <= 12 =>
39
39
Seq (" -Yno-adapted-args" , " -Xfuture" )
@@ -42,7 +42,7 @@ object Common {
42
42
}
43
43
},
44
44
45
- scalacOptions in ( Test ) ~= { (opts : Seq [String ]) =>
45
+ Test / scalacOptions ~= { (opts : Seq [String ]) =>
46
46
opts.diff(
47
47
Seq (
48
48
" -Xlint"
@@ -65,7 +65,7 @@ object Common {
65
65
Some (" releases" at nexus + " service/local/staging/deploy/maven2" )
66
66
},
67
67
68
- publishArtifact in Test := false ,
68
+ Test / publishArtifact := false ,
69
69
70
70
licenses := Seq (" LGPL v3" -> url(" http://www.gnu.org/licenses/lgpl.txt" )),
71
71
0 commit comments