@@ -9,6 +9,8 @@ import scala.xml.{Node => XNode}
9
9
import scala .xml .{NodeSeq => XNodeSeq }
10
10
import scala .xml .{Elem => XElem }
11
11
12
+ val slickVersion = " 3.1.1"
13
+
12
14
val json4s = " org.json4s" %% " json4s-native" % " 3.4.2"
13
15
14
16
// testing
@@ -33,9 +35,9 @@ lazy val commonSettingsNoScalaVersion = scalariformSettings ++ Seq(
33
35
.setPreference(SpacesAroundMultiImports , false ),
34
36
35
37
// Sonatype OSS deployment
36
- publishTo <<= version { ( v : String ) =>
38
+ publishTo := {
37
39
val nexus = " https://oss.sonatype.org/"
38
- if (v .trim.endsWith(" SNAPSHOT" ))
40
+ if (version.value .trim.endsWith(" SNAPSHOT" ))
39
41
Some (" snapshots" at nexus + " content/repositories/snapshots" )
40
42
else
41
43
Some (" releases" at nexus + " service/local/staging/deploy/maven2" )
@@ -71,7 +73,7 @@ lazy val clippy = (project in file("."))
71
73
publishArtifact := false ,
72
74
// heroku
73
75
herokuFatJar in Compile := Some ((assemblyOutputPath in ui in assembly).value),
74
- deployHeroku in Compile << = (deployHeroku in Compile ) dependsOn (assembly in ui)
76
+ deployHeroku in Compile : = (deployHeroku in Compile ). dependsOn(assembly in ui).value
75
77
)
76
78
.aggregate(modelJvm, plugin, pluginSbt, tests, ui)
77
79
@@ -133,17 +135,17 @@ lazy val tests = (project in file("tests"))
133
135
publishArtifact := false ,
134
136
libraryDependencies ++= Seq (
135
137
json4s, scalatest,
136
- " com.typesafe.akka" %% " akka-http-experimental " % " 2 .0.1 " ,
138
+ " com.typesafe.akka" %% " akka-http" % " 10 .0.0 " ,
137
139
" com.softwaremill.macwire" %% " macros" % " 2.2.2" % " provided" ,
138
- " com.typesafe.slick" %% " slick" % " 3.1.1 "
140
+ " com.typesafe.slick" %% " slick" % slickVersion
139
141
),
140
142
// during tests, read from the local repository, if at all available
141
143
scalacOptions ++= List (s " -Xplugin: ${pluginJar.value.getAbsolutePath}" , " -P:clippy:url=http://localhost:9000" ),
142
144
envVars in Test := (envVars in Test ).value + (" CLIPPY_PLUGIN_PATH" -> pluginJar.value.getAbsolutePath),
143
145
fork in Test := true
144
146
).dependsOn(modelJvm)
145
147
146
- val slickVersion = " 3.1.1 "
148
+
147
149
148
150
lazy val ui : Project = (project in file(" ui" ))
149
151
.enablePlugins(BuildInfoPlugin )
@@ -164,7 +166,7 @@ lazy val ui: Project = (project in file("ui"))
164
166
" org.flywaydb" % " flyway-core" % " 3.2.1"
165
167
),
166
168
scalaJSProjects := Seq (uiClient),
167
- pipelineStages := Seq (scalaJSProd),
169
+ pipelineStages in Assets := Seq (scalaJSProd),
168
170
routesGenerator := InjectedRoutesGenerator ,
169
171
// heroku & fat-jar
170
172
assemblyJarName in assembly := " app.jar" ,
@@ -185,7 +187,7 @@ lazy val ui: Project = (project in file("ui"))
185
187
.aggregate(uiClient)
186
188
.dependsOn(uiSharedJvm)
187
189
188
- val scalaJsReactVersion = " 0.10 .3"
190
+ val scalaJsReactVersion = " 0.11 .3"
189
191
190
192
lazy val uiClient : Project = (project in file(" ui-client" ))
191
193
.settings(commonSettings)
@@ -195,19 +197,19 @@ lazy val uiClient: Project = (project in file("ui-client"))
195
197
persistLauncher in Test := false ,
196
198
addCompilerPlugin(compilerPlugin(" org.scalamacros" % " paradise" % " 2.1.0" cross CrossVersion .full)), // for @Lenses
197
199
libraryDependencies ++= Seq (
198
- " org.scala-js" %%% " scalajs-dom" % " 0.8.2 " ,
199
- " be.doeraene" %%% " scalajs-jquery" % " 0.8 .1" ,
200
+ " org.scala-js" %%% " scalajs-dom" % " 0.9.1 " ,
201
+ " be.doeraene" %%% " scalajs-jquery" % " 0.9 .1" ,
200
202
" com.github.japgolly.scalajs-react" %%% " core" % scalaJsReactVersion,
201
203
" com.github.japgolly.scalajs-react" %%% " ext-monocle" % scalaJsReactVersion,
202
204
" com.github.japgolly.fork.monocle" %%% " monocle-macro" % " 1.2.0"
203
205
),
204
206
jsDependencies ++= Seq (
205
207
RuntimeDOM % " test" ,
206
- " org.webjars.bower" % " react" % " 0.14.3 " / " react-with-addons.js" minified " react-with-addons.min.js" commonJSName " React" ,
207
- " org.webjars.bower" % " react" % " 0.14.3 " / " react-dom.js" minified " react-dom.min.js" dependsOn " react-with-addons.js" commonJSName " ReactDOM"
208
+ " org.webjars.bower" % " react" % " 15.3.2 " / " react-with-addons.js" minified " react-with-addons.min.js" commonJSName " React" ,
209
+ " org.webjars.bower" % " react" % " 15.3.2 " / " react-dom.js" minified " react-dom.min.js" dependsOn " react-with-addons.js" commonJSName " ReactDOM"
208
210
)
209
211
)
210
- .enablePlugins(ScalaJSPlugin , ScalaJSPlay )
212
+ .enablePlugins(ScalaJSPlugin , ScalaJSWeb )
211
213
.dependsOn(uiSharedJs)
212
214
213
215
lazy val uiShared = (crossProject.crossType(CrossType .Pure ) in file(" ui-shared" ))
@@ -219,7 +221,7 @@ lazy val uiShared = (crossProject.crossType(CrossType.Pure) in file("ui-shared")
219
221
" com.lihaoyi" %%% " upickle" % " 0.3.6"
220
222
)
221
223
)
222
- .jsConfigure(_ enablePlugins ScalaJSPlay )
224
+ .jsConfigure(_ enablePlugins ScalaJSWeb )
223
225
.dependsOn(model)
224
226
225
227
lazy val uiSharedJvm = uiShared.jvm.settings(name := " uiSharedJvm" )
0 commit comments