-
Notifications
You must be signed in to change notification settings - Fork 25
/
built.sbt
75 lines (66 loc) · 2.38 KB
/
built.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
import Dependencies._
lazy val commonSettings = Seq(
version := Version.sfcurve,
scalaVersion := Version.scala,
crossScalaVersions := Version.crossScala,
description := "SFCurve is a space filling curve library for the JVM.",
organization := "org.locationtech.sfcurve",
licenses := Seq("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.html")),
homepage := Some(url("https://github.com/locationtech/sfcurve")),
scalacOptions ++= Seq(
"-deprecation",
"-unchecked",
"-language:implicitConversions",
"-language:reflectiveCalls",
"-language:postfixOps",
"-language:existentials",
"-feature"),
publishTo <<= version { (v: String) =>
if (v.trim.endsWith("SNAPSHOT"))
Some("Eclipse Snapshot Repository" at "https://repo.eclipse.org/content/repositories/sfcurve-snapshots")
else
Some("Eclipse Repository" at "https://repo.eclipse.org/content/repositories/sfcurve-releases")
},
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials"),
//publishTo := Some(Resolver.file("file", new File(Path.userHome.absolutePath+"/.m2/repository"))),
publishMavenStyle := true,
publishArtifact in Test := false,
pomIncludeRepository := { _ => false },
pomExtra := (
<scm>
<url>https://github.com/locationtech/sfcurve</url>
<connection>scm:https://github.com/locationtech/sfcurve</connection>
</scm>
<developers>
<developer>
<id>jnh5y</id>
<name>Jim Hughes</name>
<url>http://github.com/jnh5y/</url>
</developer>
<developer>
<id>lossyrob</id>
<name>Rob Emanuele</name>
<url>http://github.com/lossyrob/</url>
</developer>
</developers>),
shellPrompt := { s => Project.extract(s).currentProject.id + " > " }
) ++ net.virtualvoid.sbt.graph.Plugin.graphSettings
lazy val root =
Project("sfcurve", file("."))
.aggregate(api, zorder, hilbert)
.settings(commonSettings: _*)
lazy val api: Project =
Project("api", file("api"))
.settings(commonSettings: _*)
lazy val zorder: Project =
Project("zorder", file("zorder"))
.settings(commonSettings: _*)
.dependsOn(api)
lazy val hilbert: Project =
Project("hilbert", file("hilbert"))
.settings(commonSettings: _*)
.dependsOn(api)
lazy val benchmarks: Project =
Project("benchmarks", file("benchmarks"))
.settings(commonSettings: _*)
.dependsOn(api, zorder, hilbert)