-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
84 lines (76 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
76
77
78
79
80
81
82
83
84
import xerial.sbt.Sonatype._
val CIRCE_VERSION = "0.13.0"
ThisBuild / scalaVersion := "2.13.1"
val commonSettings = Seq(
organization := "works.worace",
homepage := Some(url("https://github.com/worace/circe-geojson")),
libraryDependencies ++= Seq(
"org.scalameta" %% "munit" % "0.7.1" % Test
),
crossScalaVersions := Seq("2.12.11", "2.13.1"),
scalaVersion := "2.13.1",
testFrameworks += new TestFramework("munit.Framework"),
scalacOptions ++= Seq("-Xfatal-warnings", "-feature", "-deprecation"),
licenses := Seq("APL2" -> url("https://www.apache.org/licenses/LICENSE-2.0.txt")),
sonatypeProjectHosting := Some(GitHubHosting("worace", "circe-geojson", "[email protected]")),
developers := List(
Developer(
"worace",
"Horace Williams",
url("https://worace.works")
)
)
)
lazy val root = Project(
id = "root",
base = file(".")
).settings(commonSettings: _*)
.dependsOn(core, jts)
.aggregate(core, jts)
.enablePlugins(GhpagesPlugin)
.enablePlugins(SiteScaladocPlugin)
.enablePlugins(ScalaUnidocPlugin)
.settings(
name := "circe-geojson",
excludeFilter in ghpagesCleanSite := "CNAME",
siteSubdirName in ScalaUnidoc := "api",
addMappingsToSiteDir(mappings in (ScalaUnidoc, packageDoc), siteSubdirName in ScalaUnidoc),
git.remoteRepo := "[email protected]:worace/circe-geojson.git",
ghpagesNoJekyll := true
)
lazy val core = project
.settings(commonSettings: _*)
.settings(
name := "circe-geojson-core",
description := "GeoJSON ADT and Circe encoders/decoders"
)
.settings(
libraryDependencies ++= Seq(
"io.circe" %% "circe-core" % CIRCE_VERSION,
"io.circe" %% "circe-generic" % CIRCE_VERSION,
"io.circe" %% "circe-generic-extras" % CIRCE_VERSION,
"io.circe" %% "circe-parser" % CIRCE_VERSION
)
)
lazy val jts = project
.dependsOn(core % "test->test;compile->compile")
.settings(commonSettings: _*)
.settings(
name := "circe-geojson-jts",
description := "Conversions to and from circe-geojson-core types for JTS Geometries"
)
.settings(
libraryDependencies ++= Seq(
"org.locationtech.jts" % "jts-core" % "1.16.1"
)
)
lazy val docs = project
.dependsOn(core, jts)
.in(file("usage"))
.enablePlugins(MdocPlugin)
.settings(
mdocVariables := Map(
"VERSION" -> version.value
)
)