-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
80 lines (64 loc) · 2.48 KB
/
Copy pathbuild.sbt
File metadata and controls
80 lines (64 loc) · 2.48 KB
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
val mScalaVersion = "2.12.13"
val mInterfacesVersion = "1.0.0"
val mCommonsVersion = "1.0.0"
val mLauncherVersion = "1.0.0"
val mCrossVersion = """^(\d+\.\d+)""".r.findFirstIn(mScalaVersion).get
val exclusionRules = Seq(
ExclusionRule("org.scala-lang", "scala-library"),
ExclusionRule("org.scala-lang", "scala-reflect"),
ExclusionRule("org.scala-lang", "scala-compiler"),
ExclusionRule("systems.opalia", s"interfaces_$mCrossVersion"),
ExclusionRule("org.osgi", "org.osgi.core"),
ExclusionRule("org.osgi", "org.osgi.service.component"),
ExclusionRule("org.osgi", "org.osgi.compendium")
)
def commonSettings: Seq[Setting[_]] = {
Seq(
organizationName := "Opalia Systems",
organizationHomepage := Some(url("https://opalia.systems")),
organization := "systems.opalia",
homepage := Some(url("https://github.com/OpaliaSystems/opalia-service-sql")),
version := "1.0.0",
scalaVersion := mScalaVersion
)
}
lazy val `testing` =
(project in file("testing"))
.settings(
name := "testing",
commonSettings,
libraryDependencies ++= Seq(
"systems.opalia" %% "interfaces" % mInterfacesVersion,
"systems.opalia" %% "commons" % mCommonsVersion,
"systems.opalia" %% "osgi-launcher" % mLauncherVersion,
"org.scalatest" %% "scalatest" % "3.2.5" % "test"
)
)
lazy val `database-impl-sql` =
(project in file("database-impl-sql"))
.settings(
name := "database-impl-sql",
description := "The project provides an implementation for accessing various SQL databases.",
commonSettings,
bundleSettings,
OsgiKeys.privatePackage ++= Seq(
"systems.opalia.service.sql.impl.*"
),
OsgiKeys.importPackage ++= Seq(
"scala.*",
"systems.opalia.interfaces.*"
),
libraryDependencies ++= Seq(
"org.osgi" % "osgi.core" % "8.0.0" % "provided",
"org.osgi" % "org.osgi.service.component.annotations" % "1.4.0",
"org.osgi" % "org.osgi.service.jdbc" % "1.0.0",
"systems.opalia" %% "interfaces" % mInterfacesVersion % "provided",
"systems.opalia" %% "commons" % mCommonsVersion excludeAll (exclusionRules: _*),
"org.apache.commons" % "commons-dbcp2" % "2.8.0",
"org.jooq" % "jooq" % "3.12.4",
"com.h2database" % "h2" % "1.4.199",
"org.postgresql" % "postgresql" % "42.2.19",
"org.mariadb.jdbc" % "mariadb-java-client" % "2.7.2",
"com.microsoft.sqlserver" % "mssql-jdbc" % "9.2.1.jre8"
)
)