forked from pbudzik/bytecask
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
49 lines (36 loc) · 1.16 KB
/
Copy pathbuild.sbt
File metadata and controls
49 lines (36 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import AssemblyKeys._
organization := "com.github.bytecask"
name := "bytecask"
version := "1.0-SNAPSHOT"
scalaVersion := "2.9.2"
resolvers ++= Seq(
"typesafe" at "http://repo.typesafe.com/typesafe/releases/",
"scala-tools" at "http://scala-tools.org/repo-releases",
"maven" at "http://repo1.maven.org/maven2",
"oracle" at "http://download.oracle.com/maven",
"java-net" at "http://download.java.net/maven/2"
)
libraryDependencies ++= Seq(
"ch.qos.logback" % "logback-classic" % "0.9.30" % "compile",
"org.xerial.snappy" % "snappy-java" % "1.0.4.1",
"com.google.guava" % "guava" % "10.0.1",
"org.scalatest" %% "scalatest" % "1.6.1"% "test"
)
scalacOptions ++= Seq(
"-deprecation",
"-Xmigration",
"-Xcheckinit",
"-optimise",
"-encoding", "utf8"
)
javacOptions ++= Seq("-source", "1.7")
publishTo <<= (version) { version: String =>
val nexus = "https://oss.sonatype.org/content/repositories/"
if (version.trim.endsWith("SNAPSHOT"))
Some("snapshots" at nexus + "snapshots/")
else
Some("releases" at nexus + "releases/")
}
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
seq(assemblySettings: _*)
test in assembly := {}