forked from mpollmeier/gremlin-scala
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
72 lines (66 loc) · 2.65 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
name := "root"
val org = "com.michaelpollmeier"
organization := org
val defaultScalaV = "2.12.1"
scalaVersion := defaultScalaV
crossScalaVersions := Seq("2.11.8", defaultScalaV) //prefix sbt command with `+` to run it with these scala versions
releaseCrossBuild := true
val gremlinVersion = "3.2.4"
val commonSettings = Seq(
organization := org,
licenses +=("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0.html")),
homepage := Some(url("https://github.com/mpollmeier/gremlin-scala")),
releasePublishArtifactsAction := PgpKeys.publishSigned.value,
scalaVersion := defaultScalaV,
libraryDependencies ++= Seq(
"org.apache.tinkerpop" % "gremlin-core" % gremlinVersion,
"org.scala-lang" % "scala-reflect" % scalaVersion.value,
"com.chuusai" %% "shapeless" % "2.3.2",
"org.scala-lang.modules" %% "scala-xml" % "1.0.6", //just specified to eliminate sbt warnings
"org.slf4j" % "slf4j-nop" % "1.7.25" % Test,
"org.apache.tinkerpop" % "tinkergraph-gremlin" % gremlinVersion % Test,
"org.apache.tinkerpop" % "gremlin-test" % gremlinVersion % Test,
"org.scalatest" %% "scalatest" % "3.0.1" % Test
),
resolvers += "Apache public" at "https://repository.apache.org/content/groups/public/",
scalacOptions ++= Seq(
"-Xlint"
// "-Xfatal-warnings",
// "-feature"
// "-deprecation", //hard to handle when supporting multiple scala versions...
// , "-Xlog-implicits"
//"-Ydebug"
),
incOptions := incOptions.value.withNameHashing(true), // doesn't work on travis ;(
publishTo := {
val sonatype = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at sonatype + "content/repositories/snapshots")
else
Some("releases" at sonatype + "service/local/staging/deploy/maven2")
},
publishMavenStyle := true,
publishArtifact in Test := false,
pomIncludeRepository := { _ => false },
pomExtra :=
<scm>
<url>[email protected]:mpollmeier/gremlin-scala.git</url>
<connection>scm:git:[email protected]:mpollmeier/gremlin-scala.git</connection>
</scm>
<developers>
<developer>
<id>mpollmeier</id>
<name>Michael Pollmeier</name>
<url>http://www.michaelpollmeier.com</url>
</developer>
</developers>
)
lazy val root = project.in(file("."))
.aggregate(`gremlin-scala`, macros)
lazy val `gremlin-scala` = project.in(file("gremlin-scala"))
.settings(commonSettings: _*)
.dependsOn(macros)
// macros can't be in the same compilation unit according to joan: https://github.com/mpollmeier/gremlin-scala/issues/100
lazy val macros = project.in(file("macros"))
.settings(commonSettings: _*)
publishArtifact := false