Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5ec9415

Browse files
committedOct 5, 2022
-release flag not availabe in Scala 2.11
1 parent 4da26b8 commit 5ec9415

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed
 

‎project/Common.scala

+8-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,14 @@ object Common extends AutoPlugin {
4040
scalacOptions ++= Seq("-Xfatal-warnings"),
4141
scalacOptions ++= {
4242
if (scalaBinaryVersion.value != "3") {
43-
Seq("-release", "11", "-Xlint", "-g:vars")
43+
Seq("-Xlint", "-g:vars")
44+
} else {
45+
Seq.empty
46+
}
47+
},
48+
scalacOptions ++= {
49+
if (scalaBinaryVersion.value != "2.11") {
50+
Seq("-release", "11")
4451
} else {
4552
Seq.empty
4653
}

0 commit comments

Comments
 (0)
Please sign in to comment.