- 
                Notifications
    
You must be signed in to change notification settings  - Fork 705
 
Scala and sbt for MacPorts users
        ljrittle edited this page Aug 23, 2012 
        ·
        2 revisions
      
    As of this writing, MacPorts (2.1.2) installs sbt 0.12, which is not supported by either master or develop. Applying this patch was found to work:
diff --git a/build.sbt b/build.sbt
index 4363ee8..e19a2de 100644
--- a/build.sbt
+++ b/build.sbt
@@ -43,6 +43,8 @@ excludedJars in assembly <<= (fullClasspath in assembly) map { cp =>
 // Some of these files have duplicates, let's ignore:
 mergeStrategy in assembly <<= (mergeStrategy in assembly) { (old) =>
   {
-    case _ => MergeStrategy.last // leiningen build files
+    case s if s.endsWith(".class") => MergeStrategy.last
+    case s if s.endsWith("project.clj") => MergeStrategy.concat
+    case x => old(x)
   }
 }
diff --git a/project/plugins.sbt b/project/plugins.sbt
index 6876bc2..c5086e1 100644
--- a/project/plugins.sbt
+++ b/project/plugins.sbt
@@ -1,6 +1,3 @@
-addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.8.1")
-
-resolvers += Resolver.url("sbt-plugin-releases",
-  url("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)
-
+resolvers += Resolver.url("artifactory", url("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)
+addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.8.3")
You will also need to manually patch /opt/local/bin/sbt or set JAVA_OPTS to (recommendation from master sbt code site):
JAVA_OPTS="-Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=384M"
- Scaladocs
 - Getting Started
 - Type-safe API Reference
 - SQL to Scalding
 - Building Bigger Platforms With Scalding
 - Scalding Sources
 - Scalding-Commons
 - Rosetta Code
 - Fields-based API Reference (deprecated)
 
- Scalding: Powerful & Concise MapReduce Programming
 - Scalding lecture for UC Berkeley's Analyzing Big Data with Twitter class
 - Scalding REPL with Eclipse Scala Worksheets
 
- Scalding with CDH3U2 in a Maven project
 - Running your Scalding jobs in Eclipse
 - Running your Scalding jobs in IDEA intellij
 - Running Scalding jobs on EMR
 - Running Scalding with HBase support: Scalding HBase wiki
 - Using the distributed cache
 - Unit Testing Scalding Jobs
 - TDD for Scalding
 - Using counters
 
- Scalding for the impatient
 - Movie Recommendations and more in MapReduce and Scalding
 - Generating Recommendations with MapReduce and Scalding
 - Poker collusion detection with Mahout and Scalding
 - Portfolio Management in Scalding
 - Find the Fastest Growing County in US, 1969-2011, using Scalding
 - Mod-4 matrix arithmetic with Scalding and Algebird
 - Dean Wampler's Scalding Workshop
 - Typesafe's Activator for Scalding