-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.sbt
71 lines (67 loc) · 2.3 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
val scala212 = "2.12.10"
val scala213 = "2.13.4"
scalaVersion in ThisBuild := scala213
scalacOptions in ThisBuild ++= Seq("-unchecked", "-deprecation")
lazy val `play-mongo-bson` = (project in file("."))
.settings(publish := Unit, publishLocal := Unit, publishArtifact := false)
.aggregate(lib, sample)
lazy val lib = (project in file("lib")).settings(
name := "play-mongo-bson",
organization := "ai.snips",
libraryDependencies ++= Seq(
"com.typesafe.play" %% "play" % "2.8.7" % Provided,
"org.mongodb.scala" %% "mongo-scala-driver" % "4.2.0" % Provided,
"org.scalatest" %% "scalatest" % "3.2.3" % Test,
"ch.qos.logback" % "logback-classic" % "1.2.3" % Test
),
crossScalaVersions := Seq(scala213, scala212),
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")
},
credentials += Credentials(
"Sonatype Nexus Repository Manager",
"oss.sonatype.org",
System.getenv("SONATYPE_USERNAME"),
System.getenv("SONATYPE_PASSWORD")
),
releasePublishArtifactsAction := PgpKeys.publishSigned.value,
publishMavenStyle := true,
publishArtifact in Test := false,
pomIncludeRepository := { _ => false },
pomExtra :=
<url>https://snips.ai</url>
<licenses>
<license>
<name>MIT</name>
<url>https://opensource.org/licenses/MIT</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:snipsco/play-mongo-bson.git</url>
<connection>scm:git:[email protected]:snipsco/play-mongo-bson.git</connection>
</scm>
<developers>
<developer>
<id>kali</id>
<name>Mathieu Poumeyrol</name>
<url>https://snips.ai</url>
</developer>
<developer>
<id>gstraymond</id>
<name>Guillaume Saint-Raymond</name>
<url>https://snips.ai</url>
</developer>
</developers>
)
lazy val sample = (project in file("sample")).enablePlugins(PlayScala).settings(
libraryDependencies ++= Seq(
guice,
"org.mongodb.scala" %% "mongo-scala-driver" % "4.2.0"
),
publish := Unit, publishLocal := Unit, publishArtifact := false
).dependsOn(lib)