-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sbt
53 lines (43 loc) · 1.19 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
sbtPlugin := true
organization := "com.github.daniel-shuy"
name := "sbt-liquibase-slick-codegen"
licenses := Seq(
"Apache License, Version 2.0" -> url(
"http://www.apache.org/licenses/LICENSE-2.0.txt"
)
)
homepage := Some(
url("https://github.com/daniel-shuy/liquibase-slick-codegen-sbt-plugin")
)
scmInfo := Some(
ScmInfo(
url("https://github.com/daniel-shuy/liquibase-slick-codegen-sbt-plugin"),
"git@github.com:daniel-shuy/liquibase-slick-codegen-sbt-plugin.git"
)
)
developers := List(
Developer(
"daniel-shuy",
"Daniel Shuy",
"daniel_shuy@hotmail.com",
url("https://github.com/daniel-shuy")
)
)
addSbtPlugin("com.permutive" % "sbt-liquibase" % "1.2.0")
crossSbtVersions := Seq(
"0.13.17",
"1.3.3"
)
def slickVersion(scalaVersion: String) =
CrossVersion.partialVersion(scalaVersion) match {
case Some((2, 10)) | Some((2, 11)) => "3.0.0"
case Some((2, 12)) => "3.2.0"
case _ =>
throw new IllegalArgumentException(
s"Unsupported Scala version $scalaVersion"
)
}
libraryDependencies ++= Seq(
"com.typesafe.slick" %% "slick-codegen" % slickVersion(scalaVersion.value),
"com.h2database" % "h2" % "2.3.230"
)