This repository has been archived by the owner on Jan 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
86 lines (67 loc) · 2.12 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
import ReleaseTransformations._
name := """reddit-plain-query-validator"""
scalaVersion := "2.11.7"
packageSummary := "Reddit Plain Query Validator"
packageDescription := "Reddit Plain Query Validator using FastParse"
maintainer := "Jasper Timmer <[email protected]>"
organization := "com.github.jjwtimmer"
//uncomment the following line if you want cross build
// crossScalaVersions := Seq("2.10.4", "2.11.6")
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")
}
releasePublishArtifactsAction := PgpKeys.publishSigned.value
pomIncludeRepository := { _ => false }
pomExtra :=
<url>https://github.com/jjwtimmer/reddit-plain-query-validator</url>
<licenses>
<license>
<name>BSD-style</name>
<url>http://www.opensource.org/licenses/bsd-license.php</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:jjwtimmer/reddit-plain-query-validator.git</url>
<connection>scm:git:[email protected]:jjwtimmer/reddit-plain-query-validator.git</connection>
</scm>
<developers>
<developer>
<id>jjwtimmer</id>
<name>Jasper Timmer</name>
</developer>
</developers>
scalacOptions ++= Seq(
"-deprecation",
"-unchecked",
"-feature"
)
libraryDependencies ++= Seq(
"com.lihaoyi" %% "fastparse" % "0.3.7",
"ch.qos.logback" % "logback-classic" % "1.1.2",
"org.scalatest" %% "scalatest" % "2.2.1" % "test"
)
scalariformSettings
//uncomment the following line if you want a java app packaging
// enablePlugins(JavaAppPackaging)
// enablePlugins(UniversalPlugin)
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
ReleaseStep(action = Command.process("publishSigned", _)),
setNextVersion,
commitNextVersion,
ReleaseStep(action = Command.process("sonatypeReleaseAll", _)),
pushChanges
)
fork in run := true