This repository has been archived by the owner on Oct 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
85 lines (77 loc) · 2.09 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import sbtrelease.ReleasePlugin.autoImport.ReleaseTransformations._
initialize := {
val _ = initialize.value
if (sys.props("java.specification.version") != "1.8")
sys.error("Java 8 is required for this project.")
}
lazy val commonSettings = Seq(
organization := "io.rdbc",
organizationName := "rdbc contributors",
scalaVersion := "2.12.6",
scalacOptions ++= Vector(
"-unchecked",
"-deprecation",
"-language:_",
"-target:jvm-1.8",
"-encoding", "UTF-8"
),
licenses += ("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0.html")),
startYear := Some(2017),
resolvers += Resolver.bintrayRepo("rdbc", "maven"),
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
setNextVersion,
commitNextVersion,
pushChanges
),
scalastyleFailOnError := true
)
lazy val examplesRoot = (project in file("."))
.settings(commonSettings: _*)
.aggregate(`play-scala`, `play-java`, `simple-java`)
lazy val `play-scala` = (project in file("play-scala"))
.settings(commonSettings: _*)
.settings(
name := "rdbc-play-scala",
libraryDependencies ++= Vector(
Library.rdbcScalaApi,
Library.rdbcUtil,
Library.rdbcPoolScala,
Library.rdbcPgsqlNetty,
Library.webjars,
Library.jquery,
Library.webshim,
guice
)
).enablePlugins(PlayScala)
lazy val `play-java` = (project in file("play-java"))
.settings(commonSettings: _*)
.settings(
name := "rdbc-play-java",
libraryDependencies ++= Vector(
Library.rdbcJavaApi,
Library.rdbcUtil,
Library.rdbcPoolJava,
Library.rdbcPgsqlNetty,
Library.webjars,
Library.jquery,
Library.webshim,
guice
)
).enablePlugins(PlayJava)
lazy val `simple-java` = (project in file("simple-java"))
.settings(commonSettings: _*)
.settings(
name := "rdbc-simple-java",
libraryDependencies ++= Vector(
Library.rdbcJavaApi,
Library.rdbcPoolJava,
Library.rdbcPgsqlNetty,
Library.logback
)
)