Skip to content

Commit ad09dec

Browse files
committed
Fixes #71
1 parent f3197da commit ad09dec

File tree

3 files changed

+3
-27
lines changed

3 files changed

+3
-27
lines changed

java-scala/CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
Version 0.3.0 (2014-07-02)
22
--------------------------
33
Added configurable list of domains which should count as "internal" (#18)
4+
Remove sbt-assembly and legacy Maven publish code (#71)
45
Made tests JSON-driven (#4)
56
Added CHANGELOG (#68)

java-scala/project/BuildSettings.scala

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -29,33 +29,11 @@ object BuildSettings {
2929
resolvers ++= Dependencies.resolutionRepos
3030
)
3131

32-
// sbt-assembly settings for building a fat jar
33-
import sbtassembly.Plugin._
34-
import AssemblyKeys._
35-
lazy val sbtAssemblySettings = assemblySettings ++ Seq(
36-
assembleArtifact in packageScala := false,
37-
jarName in assembly <<= (name, version) { (name, version) => name + "-" + version + ".jar" },
38-
mergeStrategy in assembly <<= (mergeStrategy in assembly) {
39-
(old) => {
40-
case x if x.startsWith("META-INF/") => MergeStrategy.discard
41-
case x => old(x)
42-
}
43-
}
44-
)
45-
4632
// Publish settings
4733
// TODO: update with ivy credentials etc when we start using Nexus
4834
lazy val publishSettings = Seq[Setting[_]](
49-
50-
crossPaths := false,
51-
publishTo <<= version { version =>
52-
val keyFile = (Path.userHome / ".ssh" / "admin_keplar.osk")
53-
val basePath = "/var/www/maven.snplow.com/prod/public/%s".format {
54-
if (version.trim.endsWith("SNAPSHOT")) "snapshots/" else "releases/"
55-
}
56-
Some(Resolver.sftp("SnowPlow Analytics Maven repository", "prodbox", 8686, basePath) as ("admin", keyFile))
57-
}
35+
crossPaths := false
5836
)
5937

60-
lazy val buildSettings = basicSettings ++ sbtAssemblySettings ++ publishSettings
38+
lazy val buildSettings = basicSettings ++ publishSettings
6139
}

java-scala/project/plugins.sbt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
resolvers += Resolver.url("artifactory", url("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)
2-
3-
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.8.2")

0 commit comments

Comments
 (0)