forked from mpollmeier/gremlin-scala
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
72 lines (66 loc) · 2.71 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"
organization := "com.michaelpollmeier"
publishArtifact := false
scalaVersion := "2.11.7"
val commonSettings = Seq(
organization := "com.michaelpollmeier",
licenses +=("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0.html")),
homepage := Some(url("https://github.com/mpollmeier/gremlin-scala")),
version := "3.0.2-incubating.1-SNAPSHOT",
scalaVersion := "2.11.7",
libraryDependencies <++= scalaVersion { scalaVersion =>
val gremlinVersion = "3.0.2-incubating"
Seq(
"org.apache.tinkerpop" % "gremlin-core" % gremlinVersion exclude("org.slf4j", "slf4j-log4j12"),
"org.apache.tinkerpop" % "tinkergraph-gremlin" % gremlinVersion exclude("org.slf4j", "slf4j-log4j12"),
"org.scala-lang" % "scala-reflect" % scalaVersion,
"com.novocode" % "junit-interface" % "0.11" % "test->default",
"com.chuusai" %% "shapeless" % "2.2.5",
"org.scala-lang.modules" %% "scala-xml" % "1.0.4", //just specified to eliminate sbt warnings
"org.apache.tinkerpop" % "gremlin-test" % gremlinVersion % Test,
"junit" % "junit" % "4.12" % Test,
"org.scalatest" %% "scalatest" % "2.2.5" % 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"
),
// testOptions in Test += Tests.Argument("-oF"), // full stack traces
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>git@github.com:mpollmeier/gremlin-scala.git</url>
<connection>scm:git:git@github.com: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: _*)