Skip to content

Commit

Permalink
Recover Xfuture/Xsource setting
Browse files Browse the repository at this point in the history
  • Loading branch information
thyandrecardoso committed May 4, 2024
1 parent b0405bb commit f92ea70
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ import ReleaseTransformations._
name := "uap-scala"
organization := "org.uaparser"

scalaVersion := "2.13.13"
crossScalaVersions := Seq("2.12.19", "2.13.13", "3.1.1")

scalacOptions ++= Seq(
"-Xfatal-warnings",
"-deprecation",
Expand All @@ -12,6 +15,8 @@ scalacOptions ++= Seq(
)

val scala2Flags = Seq(
"-Xlint:adapted-args",
"-Xsource:2.13.13",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-unused:imports"
Expand All @@ -21,16 +26,13 @@ scalacOptions := {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((3, _)) =>
scalacOptions.value :+ "-language:implicitConversions"
case Some((2, scalaMajor)) if scalaMajor >= 11 =>
scalacOptions.value ++ scala2Flags :+ "-Xlint:adapted-args"
case Some((2, _)) =>
scalacOptions.value ++ scala2Flags
case _ =>
scalacOptions.value ++ scala2Flags :+ "-Yno-adapted-args"
scalacOptions.value
}
}

scalaVersion := "2.13.13"
crossScalaVersions := Seq("2.12.19", "2.13.13", "3.1.1")

libraryDependencies += "org.yaml" % "snakeyaml" % "2.2"

libraryDependencies := {
Expand Down

0 comments on commit f92ea70

Please sign in to comment.