organization := "com.github.dcshock"
name := "forklift-server"
version := "2.0"
enablePlugins(JavaAppPackaging)
javacOptions ++= Seq("-source", "1.8")
initialize := {
val _ = initialize.value
if (sys.props("java.specification.version") != "1.8")
sys.error("Java 8 is required for this project.")
}
resolvers ++= Seq(
"Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots",
"Maven Central" at "http://repo1.maven.org/maven2",
"Fuse Snapshots" at "http://repo.fusesource.com/nexus/content/repositories/snapshots",
"Fuse" at "http://repo.fusesource.com/nexus/content/groups/public"
)
libraryDependencies ++= Seq(
"com.github.dcshock" % "forklift" % "2.0",
"com.github.dcshock" % "forklift-activemq" % "2.0",
"com.github.dcshock" % "forklift-replay" % "2.0",
"com.github.dcshock" % "forklift-retry" % "2.0",
"com.github.dcshock" % "forklift-stats" % "1.0",
"com.github.dcshock" % "consul-rest-client" % "0.10",
"org.apache.activemq" % "activemq-broker" % "5.14.0",
"io.searchbox" % "jest" % "2.0.0",
"args4j" % "args4j" % "2.0.31",
"org.codehaus.janino" % "janino" % "2.6.1",
"com.fasterxml.jackson.core" % "jackson-databind" % "2.7.3",
"com.fasterxml.jackson.datatype" % "jackson-datatype-jsr310" % "2.7.3",
"ch.qos.logback.contrib" % "logback-json-core" % "0.1.2",
"ch.qos.logback.contrib" % "logback-json-classic" % "0.1.2",
"ch.qos.logback.contrib" % "logback-jackson" % "0.1.2",
"javax.inject" % "javax.inject" % "1",
"com.novocode" % "junit-interface" % "0.11" % "test",
"commons-io" % "commons-io" % "2.4" % "test"
)
// Remove scala dependency for pure Java libraries
autoScalaLibrary := false
// Remove the scala version from the generated/published artifact
crossPaths := false
publishMavenStyle := true
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")
}
pomIncludeRepository := { _ => false }
pomExtra := (
https://github.com/dcshock/forklift
BSD-style
http://www.opensource.org/licenses/bsd-license.php
repo
git@github.com:dcshock/forklift.git
scm:git:git@github.com:dcshock/forklift.git
dcshock
Matt Conroy
http://www.mattconroy.com
)
useGpg := true