@@ -2,29 +2,39 @@ import sbt.complete.DefaultParsers._
2
2
3
3
version := " 0.1"
4
4
5
- scalaVersion := " 2.12.13 "
5
+ scalaVersion := " 2.13.5 "
6
6
7
- crossScalaVersions := Seq (" 2.12.13 " )
7
+ crossScalaVersions := Seq (" 2.13.5 " )
8
8
9
- libraryDependencies += " org.specs2 " %% " specs2 " % " 2.5 " % " test "
9
+ libraryDependencies += " org.scalameta " %% " munit " % " 0.7.25 " % Test
10
10
11
- val checkScalaVersion = inputKey[Unit ](" Input task to compare the value of scalaVersion setting with a given input." )
11
+ val checkScalaVersion = inputKey[Unit ](
12
+ " Input task to compare the value of scalaVersion setting with a given input."
13
+ )
12
14
checkScalaVersion := {
13
15
val arg : String = (Space ~> StringBasic ).parsed
14
- if (scalaVersion.value != arg) sys.error(s " scalaVersion [ ${scalaVersion.value}] not equal to expected [ $arg] " )
16
+ if (scalaVersion.value != arg)
17
+ sys.error(
18
+ s " scalaVersion [ ${scalaVersion.value}] not equal to expected [ $arg] "
19
+ )
15
20
()
16
21
}
17
22
18
- val checkScoverageEnabled = inputKey[Unit ](" Input task to compare the value of coverageEnabled setting with a given input." )
23
+ val checkScoverageEnabled = inputKey[Unit ](
24
+ " Input task to compare the value of coverageEnabled setting with a given input."
25
+ )
19
26
checkScoverageEnabled := {
20
27
val arg : String = (Space ~> StringBasic ).parsed
21
- if (coverageEnabled.value.toString != arg) sys.error(s " coverageEnabled [ ${coverageEnabled.value}] not equal to expected [ $arg] " )
28
+ if (coverageEnabled.value.toString != arg)
29
+ sys.error(
30
+ s " coverageEnabled [ ${coverageEnabled.value}] not equal to expected [ $arg] "
31
+ )
22
32
()
23
33
}
24
34
25
-
26
35
resolvers ++= {
27
- if (sys.props.get(" plugin.version" ).exists(_.endsWith(" -SNAPSHOT" ))) Seq (Resolver .sonatypeRepo(" snapshots" ))
36
+ if (sys.props.get(" plugin.version" ).exists(_.endsWith(" -SNAPSHOT" )))
37
+ Seq (Resolver .sonatypeRepo(" snapshots" ))
28
38
else Seq .empty
29
39
}
30
40
0 commit comments