File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -22,13 +22,18 @@ lazy val commonSettings = Seq(
22
22
crossScalaVersions := crossScalaVer,
23
23
autoAPIMappings := true ,
24
24
25
- scalacOptions in Compile ++= Seq (
26
- " -deprecation" ,
27
- " -feature" ,
28
- // Enable when documentation does not produce warnings
29
- // "-Xfatal-warnings",
25
+ scalacOptions ++= Seq (" -deprecation" , " -feature" ,
30
26
" -encoding" , " UTF-8"
31
27
),
28
+ scalacOptions := {
29
+ CrossVersion .partialVersion(scalaVersion.value) match {
30
+ case Some ((2 , scalaMajor)) if scalaMajor >= 11 =>
31
+ scalacOptions.value ++ Seq (" -deprecation:false" , " -Xfatal-warnings" )
32
+ case Some ((2 , 10 )) =>
33
+ scalacOptions.value
34
+ }
35
+ },
36
+ javaOptions ++= Seq (" -Dfile.encoding=UTF8" ),
32
37
33
38
publishArtifact in Test := false ,
34
39
publishMavenStyle := true ,
You can’t perform that action at this time.
0 commit comments