Skip to content

Commit a71a300

Browse files
Merge pull request #22 from dataswift/update-dependencies
update dependencies
2 parents 5dd6eb9 + c3ab302 commit a71a300

File tree

6 files changed

+45
-72
lines changed

6 files changed

+45
-72
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ tmp
66
.history
77
dist
88
/.idea
9+
/.bsp
910
/*.iml
1011
/out
1112
/.idea_modules

build.sbt

+29-30
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import Dependencies.Library
22

3-
val scala212 = "2.12.13"
4-
val scala213 = "2.13.4"
3+
//val scala212 = "2.12.13"
4+
val scala213 = "2.13.6"
55

66
inThisBuild(
77
List(
8-
scalaVersion := scala212
8+
scalaVersion := scala213
99
)
1010
)
1111

@@ -24,9 +24,8 @@ lazy val driver = project
2424
.enablePlugins(BasicSettings)
2525
.settings(
2626
name := "slick-postgres-driver",
27-
commonSettings,
28-
crossScalaVersions := Seq(scala212, scala213),
29-
scalaVersion := scala212
27+
commonSettings
28+
// crossScalaVersions := Seq(scala212, scala213),
3029
)
3130
.settings(
3231
libraryDependencies ++= Seq(
@@ -46,40 +45,40 @@ lazy val driver = project
4645
.configs(IntegrationTest)
4746
.settings(
4847
Defaults.itSettings,
49-
fork in IntegrationTest := true,
50-
envVars in IntegrationTest := Map("TESTCONTAINERS_RYUK_DISABLED" -> "true")
48+
IntegrationTest / fork := true,
49+
IntegrationTest / envVars := Map("TESTCONTAINERS_RYUK_DISABLED" -> "true")
5150
)
5251

53-
lazy val plugin = project
54-
.in(file("sbt-slick-postgres-generator"))
55-
.enablePlugins(BasicSettings)
56-
.settings(
57-
name := "sbt-slick-postgres-generator",
58-
sbtPlugin := true,
59-
commonSettings
60-
)
61-
.settings(
62-
libraryDependencies ++= Seq(
63-
Library.Db.liquibase,
64-
Library.Slick.slickCodegen,
65-
Library.Slick.slickHikari,
66-
Library.Slick.slickPg,
67-
Library.Slick.slickPgCore,
68-
Library.Slick.slickPgJoda,
69-
Library.Slick.slickPgPlayJson
70-
)
71-
)
72-
.dependsOn(driver)
52+
//lazy val plugin = project
53+
// .in(file("sbt-slick-postgres-generator"))
54+
// .enablePlugins(BasicSettings)
55+
// .settings(
56+
// name := "sbt-slick-postgres-generator",
57+
// sbtPlugin := true,
58+
// commonSettings
59+
// )
60+
// .settings(
61+
// libraryDependencies ++= Seq(
62+
// Library.Db.liquibase,
63+
// Library.Slick.slickCodegen,
64+
// Library.Slick.slickHikari,
65+
// Library.Slick.slickPg,
66+
// Library.Slick.slickPgCore,
67+
// Library.Slick.slickPgJoda,
68+
// Library.Slick.slickPgPlayJson
69+
// )
70+
// )
71+
// .dependsOn(driver)
7372

7473
lazy val genDriver = project
7574
.in(file("."))
7675
.settings(
7776
publishLocal := {},
7877
publishM2 := {},
7978
publishArtifact := false,
80-
skip in publish := true
79+
publish / skip := true
8180
)
8281
.settings(
8382
name := "slick-postgres-generator-driver"
8483
)
85-
.aggregate(driver, plugin)
84+
.aggregate(driver)

project/BuildSettings.scala

+10-13
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ object BasicSettings extends AutoPlugin {
1717
override def trigger = allRequirements
1818

1919
// * Scalac Options
20-
val scalacOptions212Only =
21-
Seq(
22-
"-Ywarn-adapted-args", // Warn if an argument list is modified to match the receiver.
23-
"-Ywarn-inaccessible", // Warn about inaccessible types in method signatures.
24-
"-Ywarn-nullary-override" // Warn when non-nullary overrides nullary, e.g. def foo() over def foo.
25-
)
20+
// val scalacOptions212Only =
21+
// Seq(
22+
// "-Ywarn-adapted-args", // Warn if an argument list is modified to match the receiver.
23+
// "-Ywarn-inaccessible", // Warn about inaccessible types in method signatures.
24+
// "-Ywarn-nullary-override" // Warn when non-nullary overrides nullary, e.g. def foo() over def foo.
25+
// )
2626

2727
val scalacOptionsCommon =
2828
Seq(
@@ -58,16 +58,13 @@ object BasicSettings extends AutoPlugin {
5858
)
5959
),
6060
scalacOptions ++= {
61-
CrossVersion.partialVersion(scalaVersion.value) match {
62-
case Some((2, 12)) => scalacOptions212Only ++ scalacOptionsCommon
63-
case Some((2, 13)) => scalacOptionsCommon
64-
}
61+
scalacOptionsCommon
6562
},
66-
scalacOptions in Test ~= { (options: Seq[String]) =>
63+
Test / scalacOptions ~= { (options: Seq[String]) =>
6764
options filterNot (_ == "-Ywarn-dead-code") // Allow dead code in tests (to support using mockito).
6865
},
69-
parallelExecution in Test := false,
70-
fork in Test := true,
66+
Test / parallelExecution := false,
67+
Test / fork := true,
7168
// Needed to avoid https://github.com/travis-ci/travis-ci/issues/3775 in forked tests
7269
// in Travis with `sudo: false`.
7370
// See https://github.com/sbt/sbt/issues/653

project/Dependencies.scala

+4-4
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@ object Dependencies {
3838
}
3939

4040
object Utils {
41-
val jodaTime = "joda-time" % "joda-time" % "2.9.9"
42-
val slf4j = "org.slf4j" % "slf4j-api" % "1.7.18"
41+
val jodaTime = "joda-time" % "joda-timec" % "2.10.12"
42+
val slf4j = "org.slf4j" % "slf4j-api" % "1.7.32"
4343
}
4444

4545
object ScalaTest {
46-
private val version = "3.2.2"
46+
private val version = "3.2.10"
4747
val test = "org.scalatest" %% "scalatest" % version % IntegrationTest
4848
}
4949

5050
object TestContainers {
51-
private val version = "0.38.4"
51+
private val version = "0.39.8"
5252
val scalaTest = "com.dimafeng" %% "testcontainers-scala-scalatest" % version % IntegrationTest
5353
val postgresql = "com.dimafeng" %% "testcontainers-scala-postgresql" % version % IntegrationTest
5454
}

project/build.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Written by Andrius Aucinas <andrius.aucinas@hatdex.org>, 14/08/17 09:17
77
#
88

9-
sbt.version=1.4.6
9+
sbt.version=1.5.5

slick-postgres-driver/src/main/scala-2.12/org/hatdex/libs/dal/BaseSchemaMigrationImpl.scala

-24
This file was deleted.

0 commit comments

Comments
 (0)