Skip to content
This repository was archived by the owner on Mar 27, 2023. It is now read-only.

Commit 1c3981c

Browse files
authored
Merge pull request #25 from kciesielski/update-deps
Update dependencies
2 parents 93e69f2 + 8c236c5 commit 1c3981c

File tree

7 files changed

+28
-20
lines changed

7 files changed

+28
-20
lines changed

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ jdk:
44
- oraclejdk8
55
scala:
66
- 2.11.8
7+
install:
8+
- . $HOME/.nvm/nvm.sh
9+
- nvm install stable
10+
- nvm use stable
11+
- npm install
12+
- npm install jsdom
713
script:
814
- sbt ++$TRAVIS_SCALA_VERSION test
915
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && sbt updateImpactSubmit || true'

build.sbt

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import scala.xml.{Node => XNode}
99
import scala.xml.{NodeSeq => XNodeSeq}
1010
import scala.xml.{Elem => XElem}
1111

12+
val slickVersion = "3.1.1"
13+
1214
val json4s = "org.json4s" %% "json4s-native" % "3.4.2"
1315

1416
// testing
@@ -33,9 +35,9 @@ lazy val commonSettingsNoScalaVersion = scalariformSettings ++ Seq(
3335
.setPreference(SpacesAroundMultiImports, false),
3436

3537
// Sonatype OSS deployment
36-
publishTo <<= version { (v: String) =>
38+
publishTo := {
3739
val nexus = "https://oss.sonatype.org/"
38-
if (v.trim.endsWith("SNAPSHOT"))
40+
if (version.value.trim.endsWith("SNAPSHOT"))
3941
Some("snapshots" at nexus + "content/repositories/snapshots")
4042
else
4143
Some("releases" at nexus + "service/local/staging/deploy/maven2")
@@ -71,7 +73,7 @@ lazy val clippy = (project in file("."))
7173
publishArtifact := false,
7274
// heroku
7375
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
7577
)
7678
.aggregate(modelJvm, plugin, pluginSbt, tests, ui)
7779

@@ -133,17 +135,17 @@ lazy val tests = (project in file("tests"))
133135
publishArtifact := false,
134136
libraryDependencies ++= Seq(
135137
json4s, scalatest,
136-
"com.typesafe.akka" %% "akka-http-experimental" % "2.0.1",
138+
"com.typesafe.akka" %% "akka-http" % "10.0.0",
137139
"com.softwaremill.macwire" %% "macros" % "2.2.2" % "provided",
138-
"com.typesafe.slick" %% "slick" % "3.1.1"
140+
"com.typesafe.slick" %% "slick" % slickVersion
139141
),
140142
// during tests, read from the local repository, if at all available
141143
scalacOptions ++= List(s"-Xplugin:${pluginJar.value.getAbsolutePath}", "-P:clippy:url=http://localhost:9000"),
142144
envVars in Test := (envVars in Test).value + ("CLIPPY_PLUGIN_PATH" -> pluginJar.value.getAbsolutePath),
143145
fork in Test := true
144146
).dependsOn(modelJvm)
145147

146-
val slickVersion = "3.1.1"
148+
147149

148150
lazy val ui: Project = (project in file("ui"))
149151
.enablePlugins(BuildInfoPlugin)
@@ -164,7 +166,7 @@ lazy val ui: Project = (project in file("ui"))
164166
"org.flywaydb" % "flyway-core" % "3.2.1"
165167
),
166168
scalaJSProjects := Seq(uiClient),
167-
pipelineStages := Seq(scalaJSProd),
169+
pipelineStages in Assets := Seq(scalaJSProd),
168170
routesGenerator := InjectedRoutesGenerator,
169171
// heroku & fat-jar
170172
assemblyJarName in assembly := "app.jar",
@@ -185,7 +187,7 @@ lazy val ui: Project = (project in file("ui"))
185187
.aggregate(uiClient)
186188
.dependsOn(uiSharedJvm)
187189

188-
val scalaJsReactVersion = "0.10.3"
190+
val scalaJsReactVersion = "0.11.3"
189191

190192
lazy val uiClient: Project = (project in file("ui-client"))
191193
.settings(commonSettings)
@@ -195,19 +197,19 @@ lazy val uiClient: Project = (project in file("ui-client"))
195197
persistLauncher in Test := false,
196198
addCompilerPlugin(compilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full)), // for @Lenses
197199
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",
200202
"com.github.japgolly.scalajs-react" %%% "core" % scalaJsReactVersion,
201203
"com.github.japgolly.scalajs-react" %%% "ext-monocle" % scalaJsReactVersion,
202204
"com.github.japgolly.fork.monocle" %%% "monocle-macro" % "1.2.0"
203205
),
204206
jsDependencies ++= Seq(
205207
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"
208210
)
209211
)
210-
.enablePlugins(ScalaJSPlugin, ScalaJSPlay)
212+
.enablePlugins(ScalaJSPlugin, ScalaJSWeb)
211213
.dependsOn(uiSharedJs)
212214

213215
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")
219221
"com.lihaoyi" %%% "upickle" % "0.3.6"
220222
)
221223
)
222-
.jsConfigure(_ enablePlugins ScalaJSPlay)
224+
.jsConfigure(_ enablePlugins ScalaJSWeb)
223225
.dependsOn(model)
224226

225227
lazy val uiSharedJvm = uiShared.jvm.settings(name := "uiSharedJvm")

project/build.properties

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

project/plugins.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ addSbtPlugin("com.typesafe.sbt" % "sbt-mocha" % "1.1.0")
2121

2222
// scalajs
2323

24-
addSbtPlugin("com.vmunier" % "sbt-play-scalajs" % "0.2.8")
25-
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.8")
24+
addSbtPlugin("com.vmunier" % "sbt-web-scalajs" % "1.0.3")
25+
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.13")

ui-client/src/main/scala/com/softwaremill/clippy/AutowireClient.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package com.softwaremill.clippy
22

33
import org.scalajs.dom
44
import scala.concurrent.Future
5-
import scalajs.concurrent.JSExecutionContext.Implicits.runNow
5+
import scalajs.concurrent.JSExecutionContext.Implicits.queue
66
import upickle.default._
77
import upickle.Js
88

ui-client/src/main/scala/com/softwaremill/clippy/Main.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ object Main extends js.JSApp {
1818
val app = ReactComponentB[Unit]("App")
1919
.initialState(App.State(App.UsePage, Nil, Nil))
2020
.renderBackend[App.Backend]
21-
.buildU
21+
.build
2222

2323
ReactDOM.render(app(), mountNode)
2424
}

ui-client/src/main/scala/com/softwaremill/clippy/Use.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ object Use {
99
val html = org.scalajs.dom.document.getElementById("use").innerHTML
1010
<.span(^.dangerouslySetInnerHtml(html))
1111
}
12-
.buildU
12+
.build
1313
}

0 commit comments

Comments
 (0)