forked from olafurpg/scala-db-codegen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
57 lines (56 loc) · 1.85 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
54
55
56
57
lazy val publishSettings = Seq(
publishMavenStyle := true,
publishMavenStyle := true,
publishArtifact := true,
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
},
publishArtifact in Test := false,
licenses := Seq(
"Apache 2" -> url("https://www.apache.org/licenses/LICENSE-2.0.txt")),
homepage := Some(url("https://github.com/tekacs/scala-db-codegen")),
autoAPIMappings := true,
apiURL := Some(url("https://github.com/tekacs/scala-db-codegen")),
scmInfo := Some(
ScmInfo(
url("https://github.com/tekacs/scala-db-codegen"),
"scm:git:[email protected]:tekacs/scala-db-codegen.git"
)
),
pomExtra :=
<developers>
<developer>
<id>tekacs</id>
<name>Amar Sood</name>
<url>https://tekacs.com</url>
</developer>
<developer>
<id>olafurpg</id>
<name>Ólafur Páll Geirsson</name>
<url>https://geirsson.com</url>
</developer>
</developers>
)
lazy val `db-codegen` =
(project in file("."))
.settings(packSettings)
.settings(publishSettings)
.settings(
name := "scala-db-codegen",
organization := "com.tekacs",
scalaVersion := "2.11.8",
version := com.tekacs.codegen.Versions.nightly,
packMain := Map("scala-db-codegen" -> "com.tekacs.codegen.Codegen"),
libraryDependencies ++= Seq(
"io.getquill" %% "quill-core" % "0.8.0",
"com.h2database" % "h2" % "1.4.192",
"org.postgresql" % "postgresql" % "9.4-1201-jdbc41",
"com.github.alexarchambault" %% "case-app" % "1.0.0-RC3",
"org.scalameta" %% "scalameta" % "1.1.0",
"org.scalatest" %% "scalatest" % "3.0.0" % "test"
)
)