Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Move stuff around to more sane locations
o Remove amount of config needed in build.sbt o Move publishing stuff to separate publish.sbt o Move source to default positions o 2.11 build
- Loading branch information
Showing
12 changed files
with
41 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,81 +1,14 @@ | ||
import sbtrelease.ReleasePlugin._ | ||
|
||
name := "scala-storm" | ||
|
||
scalaVersion := "2.10.4" | ||
scalaVersion := "2.11.2" | ||
|
||
crossScalaVersions := Seq("2.9.2", "2.10.4") | ||
crossScalaVersions := Seq("2.10.4", "2.11.2") | ||
|
||
organization := "com.github.velvia" | ||
|
||
// sbt defaults to <project>/src/test/{scala,java} unless we put this in | ||
unmanagedSourceDirectories in Test <<= Seq( baseDirectory( _ / "test" ) ).join | ||
|
||
unmanagedSourceDirectories in Compile <<= Seq( baseDirectory( _ / "src" ) ).join | ||
|
||
resolvers ++= Seq("clojars" at "http://clojars.org/repo/", | ||
"clojure-releases" at "http://build.clojure.org/releases") | ||
|
||
libraryDependencies += "org.apache.storm" % "storm-core" % "0.9.2-incubating" % "provided" exclude("junit", "junit") | ||
|
||
// This is to prevent error [java.lang.OutOfMemoryError: PermGen space] | ||
javaOptions += "-XX:MaxPermSize=1g" | ||
|
||
javaOptions += "-Xmx2g" | ||
|
||
scalacOptions += "-Yresolve-term-conflict:package" | ||
|
||
scalacOptions ++= { | ||
if (scalaVersion.value.startsWith("2.10")) { | ||
Seq("-feature", "-language:implicitConversions") | ||
} else { | ||
Seq() | ||
} | ||
} | ||
scalacOptions ++= Seq("-feature", "-deprecation", "-Yresolve-term-conflict:package") | ||
|
||
// When doing sbt run, fork a separate process. This is apparently needed by storm. | ||
fork := true | ||
|
||
// set Ivy logging to be at the highest level - for debugging | ||
ivyLoggingLevel := UpdateLogging.Full | ||
|
||
// Aagin this may be useful for debugging | ||
logLevel := Level.Info | ||
|
||
//************ Publishing info ********* | ||
publishMavenStyle := true | ||
|
||
publishTo <<= version { (v: String) => | ||
val nexus = "https://oss.sonatype.org/" | ||
if (v.trim.endsWith("SNAPSHOT")) | ||
Some("snapshots" at nexus + "content/repositories/snapshots") | ||
else | ||
Some("releases" at nexus + "service/local/staging/deploy/maven2") | ||
} | ||
|
||
publishArtifact in Test := false | ||
|
||
pomIncludeRepository := { _ => false } | ||
|
||
pomExtra := ( | ||
<url>https://github.com/velvia/ScalaStorm</url> | ||
<licenses> | ||
<license> | ||
<name>Apache</name> | ||
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url> | ||
<distribution>repo</distribution> | ||
</license> | ||
</licenses> | ||
<scm> | ||
<url>git@github.com:velvia/ScalaStorm.git</url> | ||
<connection>scm:git:git@github.com:velvia/ScalaStorm.git</connection> | ||
</scm> | ||
<developers> | ||
<developer> | ||
<id>velvia</id> | ||
<name>Evan Chan</name> | ||
<url>http://github.com/velvia</url> | ||
</developer> | ||
</developers>) | ||
|
||
seq(releaseSettings: _*) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
publishMavenStyle := true | ||
|
||
publishTo <<= version { (v: String) => | ||
if (v.trim.endsWith("SNAPSHOT")) Some(Opts.resolver.sonatypeSnapshots) else Some(Opts.resolver.sonatypeStaging) | ||
} | ||
|
||
publishArtifact in Test := false | ||
|
||
pomIncludeRepository := { _ => false } | ||
|
||
pomExtra := ( | ||
<url>https://github.com/velvia/ScalaStorm</url> | ||
<licenses> | ||
<license> | ||
<name>Apache</name> | ||
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url> | ||
<distribution>repo</distribution> | ||
</license> | ||
</licenses> | ||
<scm> | ||
<url>git@github.com:velvia/ScalaStorm.git</url> | ||
<connection>scm:git:git@github.com:velvia/ScalaStorm.git</connection> | ||
</scm> | ||
<developers> | ||
<developer> | ||
<id>velvia</id> | ||
<name>Evan Chan</name> | ||
<url>http://github.com/velvia</url> | ||
</developer> | ||
</developers>) | ||
|
||
releaseSettings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.