Skip to content

Commit c86ddad

Browse files
committed
Update SBT and update dependencies
1 parent e2d9ff4 commit c86ddad

File tree

6 files changed

+22
-32
lines changed

6 files changed

+22
-32
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ sudo: false
22
language: scala
33
jdk:
44
- oraclejdk8
5-
scala: 2.12.4
5+
scala: 2.12.7
66
cache:
77
directories:
88
- $HOME/.ivy2
99
- $HOME/.sbt
10-
script: ./.ci_scripts/validate.sh
10+
script: ./.ci_scripts/validate.sh

build.sbt

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
import Dependencies._
2-
31
name := "query-monad-code"
42

53
version := "1.0-SNAPSHOT"
64

7-
scalaVersion in ThisBuild := "2.12.6"
5+
scalaVersion in ThisBuild := "2.12.7"
86

97
// Common values
108
val commonSettings = Seq(
@@ -51,12 +49,9 @@ val commonSettings = Seq(
5149
)
5250

5351
// Scalafmt
54-
scalafmtOnCompile in ThisBuild := true
55-
scalafmtOnCompile := true
56-
scalafmtTestOnCompile in ThisBuild := true
57-
scalafmtTestOnCompile := true
58-
scalafmtConfig in ThisBuild := file("project/scalafmt.conf")
52+
ThisBuild / scalafmtOnCompile := true
5953

54+
// Wartremover
6055
wartremoverErrors ++= Warts.unsafe
6156

6257
//
@@ -71,7 +66,7 @@ lazy val core = (project in file("core"))
7166
name := "query-core",
7267
libraryDependencies ++= Seq(
7368
Dependencies.acolyte % Test,
74-
Dependencies.anorm % Test,
69+
Dependencies.anorm % Test,
7570
Dependencies.cats,
7671
Dependencies.specs2 % Test
7772
)
@@ -84,12 +79,12 @@ lazy val playSqlModule = (project in file("modules/play-sql"))
8479
name := "query-play-sql",
8580
libraryDependencies ++= Seq(
8681
jdbc,
87-
evolutions % Test,
88-
logback % Test,
89-
Dependencies.acolyte % Test,
82+
evolutions % Test,
83+
logback % Test,
84+
Dependencies.acolyte % Test,
9085
Dependencies.acolytePlay % Test,
91-
Dependencies.anorm % Test,
92-
Dependencies.h2 % Test,
86+
Dependencies.anorm % Test,
87+
Dependencies.h2 % Test,
9388
Dependencies.scalaLogging,
9489
Dependencies.specs2 % Test
9590
)

examples/todo-app/app/controller/TodoController.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class TodoController(
9191
ConnectedAction.async { implicit request =>
9292
check(login) {
9393
val query = for {
94-
- <- SqlQueryT.fromQuery[ErrorOrResult, Todo](
94+
_ <- SqlQueryT.fromQuery[ErrorOrResult, Todo](
9595
todoStore
9696
.getTodo(todoId)
9797
.map(_.toRight("Todo doesn't exist"))

project/Dependencies.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ object Dependencies {
55

66
lazy val acolytePlay = "org.eu.acolyte" %% "play-jdbc" % "1.0.51"
77

8-
lazy val anorm = "org.playframework.anorm" %% "anorm" % "2.6.0"
8+
lazy val anorm = "org.playframework.anorm" %% "anorm" % "2.6.2"
99

10-
lazy val cats = "org.typelevel" %% "cats-core" % "1.0.1"
10+
lazy val cats = "org.typelevel" %% "cats-core" % "1.4.0"
1111

12-
lazy val h2 = "com.h2database" % "h2" % "1.4.196"
12+
lazy val h2 = "com.h2database" % "h2" % "1.4.197"
1313

14-
lazy val postgres = "org.postgresql" % "postgresql" % "42.2.2"
14+
lazy val postgres = "org.postgresql" % "postgresql" % "42.2.5"
1515

1616
lazy val scalaLogging = "com.typesafe.scala-logging" %% "scala-logging" % "3.9.0"
1717

18-
lazy val specs2 = "org.specs2" %% "specs2-core" % "4.0.2"
18+
lazy val specs2 = "org.specs2" %% "specs2-core" % "4.3.5"
1919

2020
lazy val jbcrypt = "org.mindrot" % "jbcrypt" % "0.4"
2121
}

project/build.properties

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

project/plugins.sbt

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
1-
val neoScalafmtVersion = "1.14"
2-
addSbtPlugin("com.lucidchart" % "sbt-scalafmt" % neoScalafmtVersion)
3-
// addSbtPlugin("com.lucidchart" % "sbt-scalafmt-coursier" % neoScalafmtVersion)
1+
addSbtPlugin("com.geirsson" % "sbt-scalafmt" % "1.5.1")
2+
addSbtPlugin("org.wartremover" % "sbt-wartremover" % "2.3.7")
43

5-
// The Play plugin
6-
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.6.10")
7-
8-
// addSbtPlugin("io.get-coursier" % "sbt-coursier" % "1.0.0-RC13")
9-
10-
addSbtPlugin("org.wartremover" % "sbt-wartremover" % "2.2.1")
4+
// The Play plugin, used for the play-sql module
5+
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.6.20")

0 commit comments

Comments
 (0)