This repository has been archived by the owner on Dec 8, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
115 lines (107 loc) · 3.49 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
import ReleaseTransformations._
scalaVersion := "2.12.1"
val buildSettings = Seq[Setting[_]](
scalaVersion := "2.12.1",
crossScalaVersions := Seq("2.12.1", "2.11.8"),
organization := "org.wvlet",
description := "A framework for structured data mapping",
crossPaths := true,
publishMavenStyle := true,
// For performance testing, ensure each test run one-by-one
concurrentRestrictions in Global := Seq(Tags.limit(Tags.Test, 1)),
incOptions := incOptions.value.withNameHashing(true),
logBuffered in Test := false,
updateOptions := updateOptions.value.withCachedResolution(true),
sonatypeProfileName := "org.wvlet",
pomExtra := {
<url>/~https://github.com/xerial/wvlet</url>
<licenses>
<license>
<name>Apache 2</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<scm>
<connection>scm:git:github.com/wvlet/wvlet.git</connection>
<developerConnection>scm:git:git@github.com:wvlet/wvlet.git</developerConnection>
<url>github.com/wvlet/wvlet.git</url>
</scm>
<developers>
<developer>
<id>leo</id>
<name>Taro L. Saito</name>
<url>http://xerial.org/leo</url>
</developer>
</developers>
},
// Use sonatype resolvers
resolvers ++= Seq(
Resolver.sonatypeRepo("releases"),
Resolver.sonatypeRepo("snapshots")
),
// Release settings
releaseTagName := { (version in ThisBuild).value },
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
ReleaseStep(action = Command.process("publishSigned", _), enableCrossBuild = true),
setNextVersion,
commitNextVersion,
ReleaseStep(action = Command.process("sonatypeReleaseAll", _), enableCrossBuild = true),
pushChanges
),
releaseCrossBuild := true
)
lazy val root =
Project(id = "object-schema-root", base = file(".")).settings(
buildSettings,
publishArtifact := false,
publish := {},
publishLocal := {}
).aggregate(objectSchema, wvletJmx, wvletOpts, wvletConfig)
val wvletLog = "org.wvlet" %% "wvlet-log" % "1.1"
val wvletTest = "org.wvlet" %% "wvlet-test" % "0.27" % "test"
lazy val objectSchema =
Project(id = "object-schema", base = file("object-schema")).settings(
buildSettings,
description := "wvlet object schema inspector",
libraryDependencies ++= Seq(
wvletLog,
wvletTest,
"org.scala-lang" % "scalap" % scalaVersion.value,
"org.scala-lang" % "scala-reflect" % scalaVersion.value
)
)
lazy val wvletJmx =
Project(id = "wvlet-jmx", base = file("wvlet-jmx")).settings(
buildSettings,
description := "A library for exposing Scala object data through JMX",
libraryDependencies ++= Seq(
wvletLog,
wvletTest,
"org.scala-lang" % "scala-reflect" % scalaVersion.value
)
).dependsOn(objectSchema)
lazy val wvletConfig =
Project(id = "wvlet-config", base = file("wvlet-config")).settings(
buildSettings,
description := "wvlet configuration module",
libraryDependencies ++= Seq(
wvletTest,
"org.yaml" % "snakeyaml" % "1.14"
)
).dependsOn(objectSchema)
lazy val wvletOpts =
Project(id = "wvlet-opts", base = file("wvlet-opts")).settings(
buildSettings,
description := "wvlet command-line option parser",
libraryDependencies ++= Seq(
wvletTest,
"org.scala-lang.modules" %% "scala-parser-combinators" % "1.0.4"
)
) dependsOn(objectSchema)