From 4953786af9c4e4732d23d82490108672570293c6 Mon Sep 17 00:00:00 2001 From: Hugo van Rijswijk Date: Thu, 7 Dec 2023 11:39:48 +0100 Subject: [PATCH] Update imports --- build.sbt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build.sbt b/build.sbt index 1c87f81..48103da 100644 --- a/build.sbt +++ b/build.sbt @@ -1,5 +1,6 @@ import org.scalajs.linker.interface.{ESFeatures, ESVersion} -import _root_.io.github.davidgregory084.{DevMode, ScalacOption} +import org.typelevel.scalacoptions.{ScalacOption, ScalacOptions} +import org.typelevel.sbt.tpolecat.DevMode // Skip publish root publish / skip := true @@ -48,7 +49,7 @@ lazy val WeaponRegeX = projectMatrix name := "weapon-regex", libraryDependencies += "com.lihaoyi" %%% "fastparse" % "3.0.2", libraryDependencies += "org.scalameta" %%% "munit" % "0.7.29" % Test, - tpolecatScalacOptions += ScalacOptions.source3, + tpolecatScalacOptions ++= Set(ScalacOptions.source3, ScalacOptions.release("8")), tpolecatExcludeOptions ++= Set(ScalacOptions.warnNonUnitStatement, ScalacOptions.warnUnusedNoWarn) ) .jvmPlatform( @@ -64,7 +65,7 @@ lazy val WeaponRegeX = projectMatrix // Add JS-specific settings here scalaJSLinkerConfig ~= (_.withModuleKind(ModuleKind.ESModule) .withESFeatures(ESFeatures.Defaults.withESVersion(ESVersion.ES2020))), - scalacOptions += scalaJSSourceUri.value + tpolecatScalacOptions += ScalacOptions.other(scalaJSSourceUri.value) ) )