@@ -10,7 +10,7 @@ val StaticTagsVersion = "2.7.1-SNAPSHOT"
10
10
val commonSettings = Seq (
11
11
organization := " org.scommons.shogowada" ,
12
12
13
- scalaVersion := " 2.13.1 " ,
13
+ scalaVersion := " 2.13.5 " ,
14
14
scalacOptions ++= Seq (
15
15
" -deprecation" , " -unchecked" , " -feature" , " -Xcheckinit" , " -target:jvm-1.8" , " -Xfatal-warnings"
16
16
),
@@ -20,7 +20,7 @@ val commonSettings = Seq(
20
20
sonatypeProfileName := " org.scommons" ,
21
21
publishArtifact := false ,
22
22
publishMavenStyle := true ,
23
- publishArtifact in Test := false ,
23
+ Test / publishArtifact := false ,
24
24
publishTo := sonatypePublishToBundle.value,
25
25
pomExtra := {
26
26
<url >https:// github.com/ scommons/ scalajs- reactjs</url >
@@ -56,7 +56,7 @@ val commonSettings = Seq(
56
56
lazy val root = (project in file(" ." ))
57
57
.settings(commonSettings : _* )
58
58
.settings(
59
- skip in publish := true ,
59
+ publish / skip := true ,
60
60
publish := ((): Unit ),
61
61
publishLocal := ((): Unit ),
62
62
publishM2 := ((): Unit )
@@ -90,11 +90,11 @@ lazy val core = project.in(file("core"))
90
90
libraryDependencies ++= Seq (
91
91
" org.scommons.shogowada" %%% " statictags" % StaticTagsVersion
92
92
),
93
- npmDependencies in Compile ++= Seq (
93
+ Compile / npmDependencies ++= Seq (
94
94
" react" -> ReactVersion
95
95
),
96
- (webpack in( Compile , fastOptJS) ) := Seq (),
97
- (webpack in( Compile , fullOptJS) ) := Seq (),
96
+ (Compile / fastOptJS / webpack ) := Seq (),
97
+ (Compile / fullOptJS / webpack ) := Seq (),
98
98
publishArtifact := true
99
99
)
100
100
.enablePlugins(ScalaJSPlugin , ScalaJSBundlerPlugin )
@@ -104,13 +104,13 @@ lazy val dom = project.in(file("dom"))
104
104
.settings(
105
105
name := " scalajs-reactjs-dom" ,
106
106
libraryDependencies ++= Seq (
107
- " org.scala-js" %%% " scalajs-dom" % " 0.9.8 "
107
+ " org.scala-js" %%% " scalajs-dom" % " 2.2.0 "
108
108
),
109
- npmDependencies in Compile ++= Seq (
109
+ Compile / npmDependencies ++= Seq (
110
110
" react-dom" -> ReactVersion
111
111
),
112
- (webpack in( Compile , fastOptJS) ) := Seq (),
113
- (webpack in( Compile , fullOptJS) ) := Seq (),
112
+ (Compile / fastOptJS / webpack ) := Seq (),
113
+ (Compile / fullOptJS / webpack ) := Seq (),
114
114
publishArtifact := true
115
115
)
116
116
.enablePlugins(ScalaJSPlugin , ScalaJSBundlerPlugin )
@@ -120,11 +120,11 @@ lazy val history = project.in(file("history"))
120
120
.settings(commonSettings : _* )
121
121
.settings(
122
122
name := " scalajs-history" ,
123
- npmDependencies in Compile ++= Seq (
123
+ Compile / npmDependencies ++= Seq (
124
124
" history" -> HistoryVersion
125
125
),
126
- (webpack in( Compile , fastOptJS) ) := Seq (),
127
- (webpack in( Compile , fullOptJS) ) := Seq (),
126
+ (Compile / fastOptJS / webpack ) := Seq (),
127
+ (Compile / fullOptJS / webpack ) := Seq (),
128
128
publishArtifact := true
129
129
)
130
130
.enablePlugins(ScalaJSPlugin , ScalaJSBundlerPlugin )
@@ -133,11 +133,11 @@ lazy val router = project.in(file("router"))
133
133
.settings(commonSettings : _* )
134
134
.settings(
135
135
name := " scalajs-reactjs-router" ,
136
- npmDependencies in Compile ++= Seq (
136
+ Compile / npmDependencies ++= Seq (
137
137
" react-router" -> ReactRouterVersion
138
138
),
139
- (webpack in( Compile , fastOptJS) ) := Seq (),
140
- (webpack in( Compile , fullOptJS) ) := Seq (),
139
+ (Compile / fastOptJS / webpack ) := Seq (),
140
+ (Compile / fullOptJS / webpack ) := Seq (),
141
141
publishArtifact := true
142
142
)
143
143
.enablePlugins(ScalaJSPlugin , ScalaJSBundlerPlugin )
@@ -147,11 +147,11 @@ lazy val routerDom = project.in(file("router-dom"))
147
147
.settings(commonSettings : _* )
148
148
.settings(
149
149
name := " scalajs-reactjs-router-dom" ,
150
- npmDependencies in Compile ++= Seq (
150
+ Compile / npmDependencies ++= Seq (
151
151
" react-router-dom" -> ReactRouterVersion
152
152
),
153
- (webpack in( Compile , fastOptJS) ) := Seq (),
154
- (webpack in( Compile , fullOptJS) ) := Seq (),
153
+ (Compile / fastOptJS / webpack ) := Seq (),
154
+ (Compile / fullOptJS / webpack ) := Seq (),
155
155
publishArtifact := true
156
156
)
157
157
.enablePlugins(ScalaJSPlugin , ScalaJSBundlerPlugin )
@@ -161,12 +161,12 @@ lazy val redux = project.in(file("redux"))
161
161
.settings(commonSettings : _* )
162
162
.settings(
163
163
name := " scalajs-reactjs-redux" ,
164
- npmDependencies in Compile ++= Seq (
164
+ Compile / npmDependencies ++= Seq (
165
165
" react-redux" -> ReactReduxVersion ,
166
166
" redux" -> ReduxVersion
167
167
),
168
- (webpack in( Compile , fastOptJS) ) := Seq (),
169
- (webpack in( Compile , fullOptJS) ) := Seq (),
168
+ (Compile / fastOptJS / webpack ) := Seq (),
169
+ (Compile / fullOptJS / webpack ) := Seq (),
170
170
publishArtifact := true
171
171
)
172
172
.enablePlugins(ScalaJSPlugin , ScalaJSBundlerPlugin )
@@ -176,11 +176,11 @@ lazy val reduxDevTools = project.in(file("redux-devtools"))
176
176
.settings(commonSettings : _* )
177
177
.settings(
178
178
name := " scalajs-reactjs-redux-devtools" ,
179
- npmDependencies in Compile ++= Seq (
179
+ Compile / npmDependencies ++= Seq (
180
180
" redux-devtools-extension" -> ReduxDevToolsVersion
181
181
),
182
- (webpack in( Compile , fastOptJS) ) := Seq (),
183
- (webpack in( Compile , fullOptJS) ) := Seq (),
182
+ (Compile / fastOptJS / webpack ) := Seq (),
183
+ (Compile / fullOptJS / webpack ) := Seq (),
184
184
publishArtifact := true
185
185
)
186
186
.enablePlugins(ScalaJSPlugin , ScalaJSBundlerPlugin )
@@ -189,7 +189,7 @@ lazy val reduxDevTools = project.in(file("redux-devtools"))
189
189
val exampleCommonSettings = commonSettings ++ Seq (
190
190
name := " scalajs-reactjs-example" ,
191
191
scalaJSUseMainModuleInitializer := true ,
192
- (unmanagedResourceDirectories in Compile ) += baseDirectory.value / " src" / " main" / " webapp"
192
+ (Compile / unmanagedResourceDirectories ) += baseDirectory.value / " src" / " main" / " webapp"
193
193
)
194
194
195
195
lazy val exampleCustomVirtualDOM = project.in(file(" example" ) / " custom-virtual-dom" )
@@ -289,38 +289,38 @@ lazy val exampleTest = project.in(file("example") / "test")
289
289
libraryDependencies ++= Seq (
290
290
" org.eclipse.jetty" % " jetty-server" % " 9.+" ,
291
291
292
- " org.scalatestplus" %% " selenium-3-141" % " 3.2.2 .0" ,
293
- " org.scalatest" %% " scalatest" % " 3.2.2 "
292
+ " org.scalatestplus" %% " selenium-3-141" % " 3.2.9 .0" ,
293
+ " org.scalatest" %% " scalatest" % " 3.2.9 "
294
294
).map(_ % " it,test" ),
295
295
296
- parallelExecution in Test := false ,
297
- parallelExecution in IntegrationTest := false ,
296
+ Test / parallelExecution := false ,
297
+ IntegrationTest / parallelExecution := false ,
298
298
299
299
javaOptions ++= Seq (
300
- s " -Dtarget.path.custom-virtual-dom= ${(crossTarget in exampleCustomVirtualDOM ).value}" ,
301
- s " -Dtarget.path.helloworld= ${(crossTarget in exampleHelloWorld ).value}" ,
302
- s " -Dtarget.path.helloworld-function= ${(crossTarget in exampleHelloWorldFunction ).value}" ,
303
- s " -Dtarget.path.interactive-helloworld= ${(crossTarget in exampleInteractiveHelloWorld ).value}" ,
304
- s " -Dtarget.path.lifecycle= ${(crossTarget in exampleLifecycle ).value}" ,
305
- s " -Dtarget.path.redux-devtools= ${(crossTarget in exampleReduxDevTools ).value}" ,
306
- s " -Dtarget.path.redux-middleware= ${(crossTarget in exampleReduxMiddleware ).value}" ,
307
- s " -Dtarget.path.router= ${(crossTarget in exampleRouter ).value}" ,
308
- s " -Dtarget.path.style= ${(crossTarget in exampleStyle ).value}" ,
309
- s " -Dtarget.path.todo-app= ${(crossTarget in exampleTodoApp ).value}" ,
310
- s " -Dtarget.path.todo-app-redux= ${(crossTarget in exampleTodoAppRedux ).value}"
300
+ s " -Dtarget.path.custom-virtual-dom= ${(exampleCustomVirtualDOM / crossTarget ).value}" ,
301
+ s " -Dtarget.path.helloworld= ${(exampleHelloWorld / crossTarget ).value}" ,
302
+ s " -Dtarget.path.helloworld-function= ${(exampleHelloWorldFunction / crossTarget ).value}" ,
303
+ s " -Dtarget.path.interactive-helloworld= ${(exampleInteractiveHelloWorld / crossTarget ).value}" ,
304
+ s " -Dtarget.path.lifecycle= ${(exampleLifecycle / crossTarget ).value}" ,
305
+ s " -Dtarget.path.redux-devtools= ${(exampleReduxDevTools / crossTarget ).value}" ,
306
+ s " -Dtarget.path.redux-middleware= ${(exampleReduxMiddleware / crossTarget ).value}" ,
307
+ s " -Dtarget.path.router= ${(exampleRouter / crossTarget ).value}" ,
308
+ s " -Dtarget.path.style= ${(exampleStyle / crossTarget ).value}" ,
309
+ s " -Dtarget.path.todo-app= ${(exampleTodoApp / crossTarget ).value}" ,
310
+ s " -Dtarget.path.todo-app-redux= ${(exampleTodoAppRedux / crossTarget ).value}"
311
311
),
312
- (test in IntegrationTest ) := (test in IntegrationTest ).dependsOn(
313
- webpack in fastOptJS in Compile in exampleCustomVirtualDOM ,
314
- webpack in fastOptJS in Compile in exampleHelloWorld ,
315
- webpack in fastOptJS in Compile in exampleHelloWorldFunction ,
316
- webpack in fastOptJS in Compile in exampleInteractiveHelloWorld ,
317
- webpack in fastOptJS in Compile in exampleLifecycle ,
318
- webpack in fastOptJS in Compile in exampleReduxDevTools ,
319
- webpack in fastOptJS in Compile in exampleReduxMiddleware ,
320
- webpack in fastOptJS in Compile in exampleRouter ,
321
- webpack in fastOptJS in Compile in exampleStyle ,
322
- webpack in fastOptJS in Compile in exampleTodoApp ,
323
- webpack in fastOptJS in Compile in exampleTodoAppRedux
312
+ (IntegrationTest / test ) := (IntegrationTest / test ).dependsOn(
313
+ exampleCustomVirtualDOM / Compile / fastOptJS / webpack ,
314
+ exampleHelloWorld / Compile / fastOptJS / webpack ,
315
+ exampleHelloWorldFunction / Compile / fastOptJS / webpack ,
316
+ exampleInteractiveHelloWorld / Compile / fastOptJS / webpack ,
317
+ exampleLifecycle / Compile / fastOptJS / webpack ,
318
+ exampleReduxDevTools / Compile / fastOptJS / webpack ,
319
+ exampleReduxMiddleware / Compile / fastOptJS / webpack ,
320
+ exampleRouter / Compile / fastOptJS / webpack ,
321
+ exampleStyle / Compile / fastOptJS / webpack ,
322
+ exampleTodoApp / Compile / fastOptJS / webpack ,
323
+ exampleTodoAppRedux / Compile / fastOptJS / webpack
324
324
).value,
325
325
fork := true
326
326
)
0 commit comments