diff --git a/build.sbt b/build.sbt index c08126f..da55e42 100644 --- a/build.sbt +++ b/build.sbt @@ -76,12 +76,12 @@ lazy val render = crossProject(JVMPlatform, JSPlatform) WebDeps.plotlyJs, Deps.scalaTest % "test" ), - resourceGenerators.in(Compile) += Def.task { + (Compile / resourceGenerators) += Def.task { import sys.process._ val log = state.value.log - val dir = classDirectory.in(Compile).value / "plotly" + val dir = (Compile / classDirectory).value / "plotly" val ver = version.value val f = dir / "plotly-scala.properties" @@ -133,10 +133,10 @@ lazy val demo = project .dependsOn(renderJs) .settings( shared, - skip.in(publish) := true, + (publish / skip) := true, plotlyPrefix, - test.in(Test) := {}, - testOnly.in(Test) := {}, + (Test / test) := {}, + (Test / testOnly) := {}, libraryDependencies += Deps.scalatags.value, jsDependencies ++= Seq( WebDeps.plotlyJs @@ -180,7 +180,7 @@ lazy val tests = project .dependsOn(coreJvm, renderJvm) .settings( shared, - skip.in(publish) := true, + (publish / skip) := true, plotlyPrefix, fetchTestData, libraryDependencies ++= Seq( @@ -199,5 +199,5 @@ lazy val almond = project ) crossScalaVersions := Nil -skip.in(publish) := true +(publish / skip) := true disablePlugins(MimaPlugin) diff --git a/project/Settings.scala b/project/Settings.scala index 5365b42..b83d26d 100644 --- a/project/Settings.scala +++ b/project/Settings.scala @@ -79,11 +79,11 @@ object Settings { } } - process(dir / "plotly", Vector(), scalaSource.in(Compile).value / "plotly" / "demo") + process(dir / "plotly", Vector(), (Compile / scalaSource).value / "plotly" / "demo") files }, - sourceGenerators.in(Compile) += customSourceGenerators.taskValue + (Compile / sourceGenerators) += customSourceGenerators.taskValue ) private val scala212 = "2.12.16" @@ -127,9 +127,9 @@ object Settings { lazy val fetchTestData = { - unmanagedResources.in(Test) ++= { + (Test / unmanagedResources) ++= { val log = streams.value.log - val baseDir = baseDirectory.in(LocalRootProject).value + val baseDir = (LocalRootProject / baseDirectory).value val testsPostsDir = baseDir / "plotly-documentation" / "_posts" if (!testsPostsDir.exists()) gitLock.synchronized { diff --git a/project/build.properties b/project/build.properties index dbae93b..22af262 100644 --- a/project/build.properties +++ b/project/build.properties @@ -1 +1 @@ -sbt.version=1.4.9 +sbt.version=1.7.1