This repository has been archived by the owner on Jan 28, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
75 lines (70 loc) · 2.35 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
val scala211 = "2.11.11"
val scala212 = "2.12.3"
lazy val commonSettings = Seq(
organization := "org.gnieh",
scalaVersion := scala212,
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.0.3" % Test,
"com.github.pathikrit" %% "better-files" % "2.17.1" % Test),
version := "0.1.0-SNAPSHOT",
description := "Scala XML library revisited",
licenses += ("The Apache Software License, Version 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt")),
homepage := Some(url("https://github.com/gnieh/scala-xml")),
crossScalaVersions := Seq(scala211, scala212),
parallelExecution := false,
fork in test := true,
scalacOptions in (Compile,doc) ++= Seq("-groups", "-implicits"),
autoAPIMappings := true,
scalacOptions ++= Seq("-deprecation", "-feature", "-unchecked", "-Ypartial-unification")) ++ publishSettings
lazy val publishSettings = Seq(
publishMavenStyle := true,
publishArtifact in Test := false,
// The Nexus repo we're publishing to.
publishTo := Some(
if (isSnapshot.value)
Opts.resolver.sonatypeSnapshots
else
Opts.resolver.sonatypeStaging
),
pomIncludeRepository := { x => false },
pomExtra := (
<scm>
<url>https://github.com/gnieh/scala-xml</url>
<connection>scm:git:git://github.com/gnieh/scala-xml.git</connection>
<developerConnection>scm:git:[email protected]:gnieh/scala-xml.git</developerConnection>
<tag>HEAD</tag>
</scm>
<developers>
<developer>
<id>satabin</id>
<name>Lucas Satabin</name>
<email>[email protected]</email>
</developer>
</developers>
<ciManagement>
<system>travis</system>
<url>https://travis-ci.org/#!/gnieh/scala-xml</url>
</ciManagement>
<issueManagement>
<system>github</system>
<url>https://github.com/gnieh/scala-xml/issues</url>
</issueManagement>
))
lazy val xml = project.in(file("."))
.enablePlugins(ScoverageSbtPlugin, ScalaUnidocPlugin)
.settings(commonSettings)
.settings(
name := "xml",
packagedArtifacts := Map())
.aggregate(core, std)
lazy val core = project.in(file("core"))
.enablePlugins(ScoverageSbtPlugin)
.settings(commonSettings)
.settings(
name := "xml-core")
lazy val std = project.in(file("std"))
.enablePlugins(ScoverageSbtPlugin)
.settings(commonSettings)
.settings(
name := "xml-std")
.dependsOn(core)