-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
159 lines (127 loc) · 4.36 KB
/
build.sbt
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
/* basic project info */
name := "ninetynineprobs"
organization := "com.example"
version := "0.1.0-SNAPSHOT"
description := "this project can foo a bar!"
homepage := Some(url("https://github.com/jbelshaw/99probs"))
startYear := Some(2013)
licenses := Seq(
("GPLv3", url("http://none"))
)
scmInfo := Some(
ScmInfo(
url("https://github.com/jbelshaw/99probs"),
"scm:git:https://github.com/jbelshaw/99probs.git",
Some("scm:git:[email protected]:jbelshaw/99probs.git")
)
)
/* scala versions and options */
scalaVersion := "2.10.0"
offline := false
scalacOptions ++= Seq(
"-feature",
"-deprecation",
"-unchecked"
)
javacOptions ++= Seq("-Xlint:unchecked", "-Xlint:deprecation")
/* dependencies */
libraryDependencies ++= Seq (
// -- lang --
//"org.apache.commons" % "commons-lang3" % "3.1",
//"org.scalaz" %% "scalaz-core" % "7.0.0-M7",
//"org.scalaz" %% "scalaz-effect" % "7.0.0-M7",
// -- util --
"com.github.nscala-time" %% "nscala-time" % "0.2.0",
//"org.spire-math" % "spire_2.10.0" % "0.3.0-M7",
//"com.github.scopt" %% "scopt" % "2.1.0",
//"org.rogach" %% "scallop" % "0.6.3",
// -- collections --
//"com.google.guava" % "guava" % "13.0.1",
"com.chuusai" %% "shapeless" % "1.2.3",
//"de.sciss" %% "fingertree" % "1.2.+",
//"com.assembla.scala-incubator" % "graph-core_2.10" % "1.6.0",
// -- io --
//"commons-io" % "commons-io" % "2.4",
// -- logging & configuration --
"com.typesafe" %% "scalalogging-slf4j" % "1.0.0",
"ch.qos.logback" % "logback-classic" % "1.0.7" % "provided",
"com.typesafe" % "config" % "1.0.0",
// -- database drivers --
"com.h2database" % "h2" % "1.2.127",
"mysql" % "mysql-connector-java" % "5.1.10",
// -- persistence --
// "com.novus" %% "salat" % "1.9.2-SNAPSHOT",
//"net.debasishg" %% "redisclient" % "2.9",
//"com.typesafe" %% "slick" % "1.0.0-RC1",
//"org.squeryl" %% "squeryl" % "0.9.5-6",
// "com.github.nikita-volkov" % "sorm" % "0.3.5",
//"fi.reaktor" %% "sqltyped" % "0.1.0",
//"com.imageworks.scala-migrations" %% "scala-migrations" % "1.1.1",
// -- serialization --
//"org.json4s" %% "json4s-native" % "3.1.0",
//"com.fasterxml.jackson.module" %% "jackson-module-scala" % "2.1.3",
// -- concurrency --
//"com.typesafe.akka" %% "akka-actor" % "2.2-SNAPSHOT",
//"org.scala-stm" %% "scala-stm" % "0.7",
// -- network --
// "net.databinder.dispatch" %% "dispatch-core" % "0.9.2",
// -- testing --
//"org.scalacheck" %% "scalacheck" % "1.10.0" % "test",
//"org.specs2" %% "specs2" % "1.13",
"org.scalatest" % "scalatest_2.10" % "2.0.M5b"
)
/* you may need these repos */
resolvers ++= Seq(
Resolver.sonatypeRepo("snapshots"),
Resolver.typesafeIvyRepo("snapshots"),
Resolver.typesafeIvyRepo("releases"),
Resolver.typesafeRepo("releases"),
Resolver.typesafeRepo("snapshots"),
// JavaNet2Repository,
// JavaNet1Repository,
"Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/"
)
// ivyXML := <dependencies>
// <exclude module="logback-classic" />
// </dependencies>
/* testing */
parallelExecution in Test := false
// testOptions += Tests.Argument(TestFrameworks.Specs2, "console", "junitxml")
// parallelExecution in Global := false //no parallelism between subprojects
/* sbt behavior */
logLevel in compile := Level.Warn
traceLevel := 5
/* publishing */
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")
}
mappings in (Compile, packageBin) ~= { (ms: Seq[(File, String)]) =>
ms filter { case (file, toPath) =>
toPath != "application.conf"
}
}
publishArtifact in Test := false
// publishArtifact in (Compile, packageDoc) := false
// publishArtifact in (Compile, packageSrc) := false
pomIncludeRepository := { _ => false }
pomExtra := (
<developers>
<developer>
<id>jbelshaw</id>
<name>Jarod Belshaw</name>
<email>[email protected]</email>
<!-- <url></url> -->
</developer>
</developers>
)
// Josh Suereth's step-by-step guide to publishing on sonatype
// httpcom://www.scala-sbt.org/using_sonatype.html
/* assembly plugin */
mainClass in AssemblyKeys.assembly := Some("com.example.99probs.Main")
assemblySettings
test in AssemblyKeys.assembly := {}