forked from zio/zio-quill
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
125 lines (117 loc) · 4.21 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
lazy val quill =
(project in file("."))
.settings(tutSettings ++ commonSettings ++ Seq(
scalaVersion := "2.11.7",
tutSourceDirectory := baseDirectory.value / "target" / "README.md"))
.settings(sourceGenerators in Compile <+= Def.task {
val source = baseDirectory.value / "README.md"
val file = baseDirectory.value / "target" / "README.md"
val str = IO.read(source).replace("```scala", "```tut")
IO.write(file, str)
Seq()
})
.dependsOn(`quill-core`, `quill-sql`, `quill-jdbc`, `quill-finagle-mysql`, `quill-async`)
.aggregate(`quill-core`, `quill-sql`, `quill-jdbc`, `quill-finagle-mysql`, `quill-async`)
lazy val `quill-core` =
(project in file("quill-core"))
.settings(commonSettings: _*)
.settings(libraryDependencies ++= Seq(
"com.typesafe" % "config" % "1.3.0",
"com.typesafe.scala-logging" %% "scala-logging" % "3.1.0",
"org.scala-lang" % "scala-reflect" % scalaVersion.value
))
lazy val `quill-sql` =
(project in file("quill-sql"))
.settings(commonSettings: _*)
.dependsOn(`quill-core` % "compile->compile;test->test")
lazy val `quill-jdbc` =
(project in file("quill-jdbc"))
.settings(commonSettings: _*)
.settings(
libraryDependencies ++= Seq(
"com.zaxxer" % "HikariCP" % "2.3.9",
"mysql" % "mysql-connector-java" % "5.1.36" % "test",
"com.h2database" % "h2" % "1.4.190" % "test",
"org.postgresql" % "postgresql" % "9.4-1206-jdbc41"
),
parallelExecution in Test := false
)
.dependsOn(`quill-sql` % "compile->compile;test->test")
lazy val `quill-finagle-mysql` =
(project in file("quill-finagle-mysql"))
.settings(commonSettings: _*)
.settings(
libraryDependencies ++= Seq(
"com.twitter" %% "finagle-mysql" % "6.27.0"
),
parallelExecution in Test := false
)
.dependsOn(`quill-sql` % "compile->compile;test->test")
lazy val `quill-async` =
(project in file("quill-async"))
.settings(commonSettings: _*)
.settings(
libraryDependencies ++= Seq(
"com.github.mauricio" %% "db-async-common" % "0.2.18",
"com.github.mauricio" %% "mysql-async" % "0.2.18",
"com.github.mauricio" %% "postgresql-async" % "0.2.18"
),
parallelExecution in Test := false
)
.dependsOn(`quill-sql` % "compile->compile;test->test")
lazy val commonSettings = Seq(
organization := "io.getquill",
scalaVersion := "2.11.7",
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "2.2.4" % "test",
"ch.qos.logback" % "logback-classic" % "1.1.3" % "test"
),
EclipseKeys.createSrc := EclipseCreateSrc.Default + EclipseCreateSrc.Resource,
unmanagedClasspath in Test += baseDirectory.value / "src" / "test" / "resources",
scalacOptions ++= Seq(
"-deprecation",
"-encoding", "UTF-8",
"-feature",
"-unchecked",
"-Xlint",
"-Yno-adapted-args",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard",
"-Xfuture",
"-Ywarn-unused-import"
),
fork in Test := true,
releasePublishArtifactsAction := PgpKeys.publishSigned.value,
scoverage.ScoverageKeys.coverageMinimum := 100,
scoverage.ScoverageKeys.coverageFailOnMinimum := false,
EclipseKeys.eclipseOutput := Some("bin"),
publishMavenStyle := 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")
},
pomExtra := (
<url>http://github.com/fwbrasil/quill</url>
<licenses>
<license>
<name>Apache License 2.0</name>
<url>https://raw.githubusercontent.com/getquill/quill/master/LICENSE.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:fwbrasil/quill.git</url>
<connection>scm:git:[email protected]:fwbrasil/quill.git</connection>
</scm>
<developers>
<developer>
<id>fwbrasil</id>
<name>Flavio W. Brasil</name>
<url>http://github.com/fwbrasil/</url>
</developer>
</developers>)
)