Skip to content

Commit 4c44d8e

Browse files
committed
add -Xsource:3
1 parent 792959a commit 4c44d8e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

build.sbt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,17 @@ lazy val core = (project in file("core")).settings(
7171
),
7272
sbtPlugin := false,
7373
Global / transitiveClassifiers := Seq(Artifact.SourceClassifier),
74+
scalacOptions ++= {
75+
CrossVersion.partialVersion(scalaVersion.value) match {
76+
case Some((2, _)) =>
77+
Seq(
78+
"-Wconf:msg=package object inheritance:warning", // TODO
79+
"-Xsource:3",
80+
)
81+
case _ =>
82+
Nil
83+
}
84+
},
7485
scalacOptions ++= Seq(
7586
"-deprecation",
7687
"-unchecked",

0 commit comments

Comments
 (0)