-
Notifications
You must be signed in to change notification settings - Fork 433
/
build.sbt
81 lines (76 loc) · 2.66 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
name := "pdal-jni"
lazy val commonSettings = Seq(
version := "1.7.0" + Environment.versionSuffix,
scalaVersion := "2.11.11",
crossScalaVersions := Seq("2.12.4", "2.11.11"),
organization := "io.pdal",
description := "PDAL JNI bindings",
licenses := Seq("BSD" -> url("https://github.com/PDAL/PDAL/blob/master/LICENSE.txt")),
homepage := Some(url("http://www.pdal.io")),
publishMavenStyle := true,
pomIncludeRepository := { _ => false },
scalacOptions ++= Seq(
"-deprecation",
"-unchecked",
"-language:implicitConversions",
"-language:reflectiveCalls",
"-language:higherKinds",
"-language:postfixOps",
"-language:existentials",
"-feature"
),
test in assembly := {},
shellPrompt := { s => Project.extract(s).currentProject.id + " > " },
commands ++= Seq(
Commands.processJavastyleCommand("publish"),
Commands.processJavastyleCommand("publishSigned")
),
publishArtifact in Test := false,
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
},
pomExtra := (
<scm>
<url>git@github.com:PDAL/PDAL.git</url>
<connection>scm:git:git@github.com:PDAL/PDAL.git</connection>
</scm>
<developers>
<developer>
<id>pomadchin</id>
<name>Grigory Pomadchin</name>
<url>http://github.com/pomadchin/</url>
</developer>
</developers>
)
)
lazy val root = (project in file("."))
.settings(commonSettings: _*)
.aggregate(`core-scala`, core, native)
lazy val `core-scala` = project
.settings(commonSettings: _*)
.settings(name := "pdal-scala")
.settings(target in javah := (sourceDirectory in nativeCompile in native).value / "include")
.settings(libraryDependencies ++= Seq(
Dependencies.circeCore,
Dependencies.circeGeneric,
Dependencies.circeGenericExtras,
Dependencies.circeParser,
Dependencies.jtsCore,
Dependencies.scalaTest % Test
))
.settings(headerLicense := Some(HeaderLicense.ALv2("2017", "Azavea")))
.settings(licenses := Seq("Apache-2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0.html")))
.dependsOn(core)
lazy val core = project
.settings(commonSettings: _*)
.settings(name := "pdal")
.settings(target in javah := (sourceDirectory in nativeCompile in native).value / "include")
.settings(libraryDependencies += Dependencies.scalaTest % Test)
.dependsOn(Environment.dependOnNative(native % Runtime): _*)
lazy val native = project
.settings(sourceDirectory in nativeCompile := sourceDirectory.value)
.enablePlugins(JniNative)