Skip to content

Commit 670f2b9

Browse files
committed
Only publish uber jar for the whole driver
1 parent d5e2212 commit 670f2b9

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

project/MongoScalaBuild.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ object MongoScalaBuild extends Build {
3939
)
4040

4141
val publishSettings = Publish.settings
42+
val publishAssemblySettings = Publish.publishAssemblySettings
4243
val noPublishSettings = Publish.noPublishing
4344

4445
/*
@@ -130,6 +131,7 @@ object MongoScalaBuild extends Build {
130131
.settings(scoverageSettings)
131132
.settings(docSettings)
132133
.settings(publishSettings)
134+
.settings(publishAssemblySettings)
133135
.dependsOn(bson)
134136

135137
lazy val bson = Project(

project/Publish.scala

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,19 @@ object Publish {
4949
props.getProperty(username),
5050
props.getProperty(password)),
5151
publishSnapshot <<= publishSnapshotTask
52-
) ++ Seq(
53-
assemblyJarName in assembly := "mongo-scala-driver-alldep.jar",
54-
test in assembly := {},
55-
artifact in (Compile, assembly) := {
56-
val art = (artifact in (Compile, assembly)).value
57-
art.copy(`classifier` = Some("alldep"))
58-
}
59-
) ++ addArtifact(artifact in (Compile, assembly), assembly)
52+
)
6053
}
6154
}
6255

56+
lazy val publishAssemblySettings = Seq(
57+
assemblyJarName in assembly := "mongo-scala-driver-alldep.jar",
58+
test in assembly := {},
59+
artifact in (Compile, assembly) := {
60+
val art = (artifact in (Compile, assembly)).value
61+
art.copy(`classifier` = Some("alldep"))
62+
}
63+
) ++ addArtifact(artifact in (Compile, assembly), assembly)
64+
6365
lazy val mavenSettings = Seq(
6466
publishTo := {
6567
val nexus = "https://oss.sonatype.org/"

0 commit comments

Comments
 (0)