-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sbt
85 lines (64 loc) · 1.88 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
//basic project info
name := "puritan"
organization := "com.yuvimasory"
version := "0.0.1-SNAPSHOT"
//scala versions and options
scalaVersion := "2.9.2"
crossScalaVersions := Seq("2.9.1-1", "2.9.1", "2.9.0-1", "2.9.0")
scalacOptions ++= Seq("-deprecation", "-unchecked")
javacOptions ++= Seq("-Xlint:unchecked", "-Xlint:deprecation")
//dependencies
libraryDependencies ++= Seq (
"org.scalaz" %% "scalaz-effect" % "7.0-SNAPSHOT"
// "org.scalacheck" %% "scalacheck" % "1.9" % "test"
)
//improve REPL
initialCommands := ""
//sbt behavior
logLevel in compile := Level.Warn
traceLevel := 5
//dependecy-graph-plugin
net.virtualvoid.sbt.graph.Plugin.graphSettings
//publish
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/ymasory/puritan</url>
<licenses>
<license>
<name>Scala License</name>
<url>https://github.com/ymasory/puritan/blob/master/LICENSE</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>git@github.com:ymasory/puritan.git</url>
<connection>scm:git:git@github.com:ymasory/puritan.git</connection>
</scm>
<developers>
<developer>
<id>ymasory</id>
<name>Yuvi Masory</name>
<email>ymasory@gmail.com</email>
<url>http://yuvimasory.com</url>
</developer>
</developers>
)
pgpPassphrase := Some("".toCharArray)
pgpSigningKey := Some(0L)
// pgpSecretRing := file("")
// pgpPublicRing := file("")
// credentials += Credentials(
// "Sonatype Nexus Repository Manager",
// "oss.sonatype.org",
// "ymasory@gmail.com",
// IO read file("")
// )