-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.sbt
117 lines (76 loc) · 3.26 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
import sbt.url
name := jsonHandler.value.stringValue("package.json", "name")
organization := jsonHandler.value.stringValue("package.json", "organization")
val MongoCampHomepage = "https://www.mongocamp.dev"
organizationHomepage := Some(url(MongoCampHomepage))
homepage := Some(url("https://mongodb-driver.mongocamp.dev"))
scmInfo := Some(
ScmInfo(
url("https://github.com/MongoCamp/mongodb-driver"),
"scm:https://github.com/MongoCamp/mongodb-driver.git"
)
)
developers := List(
Developer(
id = "mongocamp",
name = "MongoCamp-Team",
email = "[email protected]",
url = url(MongoCampHomepage)
),
Developer(
id = "sfxcode",
name = "Tom",
email = "[email protected]",
url = url(MongoCampHomepage)
),
Developer(
id = "quadstingray",
name = "QuadStingray",
email = "[email protected]",
url = url(MongoCampHomepage)
)
)
licenses += ("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0.html"))
crossScalaVersions := Seq("2.13.15", "2.12.20")
scalaVersion := crossScalaVersions.value.head
scalacOptions += "-deprecation"
Test / parallelExecution := false
lazy val mongodb = (project in file("."))
.enablePlugins(BuildInfoPlugin)
.settings(
buildInfoKeys ++= Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion),
buildInfoPackage := "dev.mongocamp"
)
buildInfoOptions += BuildInfoOption.BuildTime
resolvers += "Sonatype OSS Snapshots".at("https://oss.sonatype.org/content/repositories/snapshots")
// Test
libraryDependencies += "org.specs2" %% "specs2-core" % "4.20.9" % Test
libraryDependencies += "ch.qos.logback" % "logback-classic" % "1.5.12" % Test
libraryDependencies += "joda-time" % "joda-time" % "2.13.0"
val circeVersion = "0.14.10"
libraryDependencies ++= Seq(
"io.circe" %% "circe-core",
"io.circe" %% "circe-generic",
"io.circe" %% "circe-parser"
).map(_ % circeVersion)
libraryDependencies += "org.mongodb.scala" %% "mongo-scala-driver" % "5.1.4"
// MongoDB 5.2.0 not supported for de.bwaldvogel -> https://github.com/bwaldvogel/mongo-java-server/issues/233
val MongoJavaServerVersion = "1.45.0"
libraryDependencies += "de.bwaldvogel" % "mongo-java-server" % MongoJavaServerVersion % Provided
libraryDependencies += "de.bwaldvogel" % "mongo-java-server-h2-backend" % MongoJavaServerVersion % Provided
libraryDependencies += "org.xerial.snappy" % "snappy-java" % "1.1.10.7" % Provided
libraryDependencies += "com.github.luben" % "zstd-jni" % "1.5.6-7" % Provided
libraryDependencies += "org.apache.lucene" % "lucene-queryparser" % "10.0.0"
libraryDependencies += "com.github.pathikrit" %% "better-files" % "3.9.2"
libraryDependencies += "com.typesafe" % "config" % "1.4.3"
libraryDependencies += "com.typesafe.scala-logging" %% "scala-logging" % "3.9.5"
libraryDependencies += "org.scala-lang.modules" %% "scala-collection-compat" % "2.12.0"
libraryDependencies += "com.vdurmont" % "semver4j" % "3.1.0"
libraryDependencies += "com.github.jsqlparser" % "jsqlparser" % "5.0"
libraryDependencies += "org.liquibase" % "liquibase-core" % "4.30.0" % Test
buildInfoPackage := "dev.mongocamp.driver.mongodb"
buildInfoOptions += BuildInfoOption.BuildTime
scalafmtOnCompile := false
coverageMinimumStmtTotal := 70
coverageFailOnMinimum := true
jsonFiles += (baseDirectory.value / "package.json")