Skip to content

Commit 27ac19f

Browse files

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

build.sbt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,12 @@ lazy val render = crossProject(JVMPlatform, JSPlatform)
7676
WebDeps.plotlyJs,
7777
Deps.scalaTest % "test"
7878
),
79-
resourceGenerators.in(Compile) += Def.task {
79+
(Compile / resourceGenerators) += Def.task {
8080
import sys.process._
8181

8282
val log = state.value.log
8383

84-
val dir = classDirectory.in(Compile).value / "plotly"
84+
val dir = (Compile / classDirectory).value / "plotly"
8585
val ver = version.value
8686

8787
val f = dir / "plotly-scala.properties"
@@ -133,10 +133,10 @@ lazy val demo = project
133133
.dependsOn(renderJs)
134134
.settings(
135135
shared,
136-
skip.in(publish) := true,
136+
(publish / skip) := true,
137137
plotlyPrefix,
138-
test.in(Test) := {},
139-
testOnly.in(Test) := {},
138+
(Test / test) := {},
139+
(Test / testOnly) := {},
140140
libraryDependencies += Deps.scalatags.value,
141141
jsDependencies ++= Seq(
142142
WebDeps.plotlyJs
@@ -180,7 +180,7 @@ lazy val tests = project
180180
.dependsOn(coreJvm, renderJvm)
181181
.settings(
182182
shared,
183-
skip.in(publish) := true,
183+
(publish / skip) := true,
184184
plotlyPrefix,
185185
fetchTestData,
186186
libraryDependencies ++= Seq(
@@ -199,5 +199,5 @@ lazy val almond = project
199199
)
200200

201201
crossScalaVersions := Nil
202-
skip.in(publish) := true
202+
(publish / skip) := true
203203
disablePlugins(MimaPlugin)

project/Settings.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,11 @@ object Settings {
7979
}
8080
}
8181

82-
process(dir / "plotly", Vector(), scalaSource.in(Compile).value / "plotly" / "demo")
82+
process(dir / "plotly", Vector(), (Compile / scalaSource).value / "plotly" / "demo")
8383

8484
files
8585
},
86-
sourceGenerators.in(Compile) += customSourceGenerators.taskValue
86+
(Compile / sourceGenerators) += customSourceGenerators.taskValue
8787
)
8888

8989
private val scala212 = "2.12.16"
@@ -127,9 +127,9 @@ object Settings {
127127

128128

129129
lazy val fetchTestData = {
130-
unmanagedResources.in(Test) ++= {
130+
(Test / unmanagedResources) ++= {
131131
val log = streams.value.log
132-
val baseDir = baseDirectory.in(LocalRootProject).value
132+
val baseDir = (LocalRootProject / baseDirectory).value
133133
val testsPostsDir = baseDir / "plotly-documentation" / "_posts"
134134
if (!testsPostsDir.exists())
135135
gitLock.synchronized {

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.4.9
1+
sbt.version=1.7.1

0 commit comments

Comments
 (0)