-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBuild.sbt
95 lines (71 loc) · 3.17 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
import _root_.sbt.Keys._
import _root_.sbt.Project
import _root_.sbtrelease.ReleaseStateTransformations
import _root_.sbtrelease.ReleaseStateTransformations._
import _root_.sbtrelease.ReleaseStep
import SonatypeKeys._
import sbtrelease._
import ReleaseStateTransformations._
import ReleaseKeys._
import xerial.sbt.Sonatype.SonatypeKeys
sonatypeSettings
releaseSettings
name := "KissJson"
organization := "com.bryghts.kissjson"
scalaVersion := "2.10.3"
profileName := "com.bryghts"
libraryDependencies += "org.scala-lang" % "scala-reflect" % "2.10.3"
libraryDependencies += "org.specs2" %% "specs2" % "2.2.2" % "test"
libraryDependencies += "org.scalacheck" %% "scalacheck" % "1.10.1" % "test"
libraryDependencies += "junit" % "junit" % "4.11" % "test"
libraryDependencies += "net.liftweb" % "lift-json_2.10" % "2.5.1" % "test"
libraryDependencies += "org.codehaus.jackson" % "jackson-core-asl" % "1.9.13" % "test"
libraryDependencies += "org.codehaus.jackson" % "jackson-mapper-asl" % "1.9.13" % "test"
libraryDependencies += "net.minidev" % "json-smart" % "1.2" % "test"
libraryDependencies += "com.google.code.gson" % "gson" % "2.2.4" % "test"
libraryDependencies += "com.typesafe.play" %% "play-json" % "2.2.1" % "test"
libraryDependencies += "com.alibaba" % "fastjson" % "1.1.38" % "test"
libraryDependencies += "net.sf.json-lib" % "json-lib" % "2.4" % "test" classifier("jdk15")
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"
scalacOptions in Test ++= Seq("-Yrangepos")
publishMavenStyle := true
pomExtra := (
<url>http://www.brights.com</url>
<licenses>
<license>
<name>mit</name>
</license>
</licenses>
<scm>
<url>git@github.com:marcesquerra/KissJson.git</url>
<connection>scm:git:git@github.com:marcesquerra/KissJson.git</connection>
</scm>
<developers>
<developer>
<name>Marc Esquerrà i Bayo</name>
<email>esquerra@bryghts.com</email>
</developer>
</developers>
)
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies, // : ReleaseStep
inquireVersions, // : ReleaseStep
runClean, // : ReleaseStep
// runTest, // : ReleaseStep
setReleaseVersion, // : ReleaseStep
commitReleaseVersion, // : ReleaseStep, performs the initial git checks
tagRelease, // : ReleaseStep
ReleaseStep(
action = { state =>
val extracted = Project extract state
extracted.runAggregated(PgpKeys.publishSigned in Global in extracted.get(thisProjectRef), state)
}
), // : ReleaseStep, checks whether `publishTo` is properly set up
ReleaseStep{ state =>
val extracted = Project extract state
extracted.runAggregated(sonatypeReleaseAll in Global in extracted.get(thisProjectRef), state)
}, // : ReleaseStep, checks whether `publishTo` is properly set up
setNextVersion, // : ReleaseStep
commitNextVersion // : ReleaseStep
//pushChanges // : ReleaseStep, also checks that an upstream branch is properly configured
)