forked from mpollmeier/gremlin-scala
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
75 lines (69 loc) · 2.68 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
name := "root"
organization in ThisBuild := "com.michaelpollmeier"
scalaVersion in ThisBuild := "2.12.4"
crossScalaVersions := Seq(scalaVersion.value, "2.11.12")
releaseCrossBuild := true
import ReleaseTransformations._
val gremlinVersion = "3.3.1"
val commonSettings = Seq(
libraryDependencies ++= Seq(
"org.apache.tinkerpop" % "gremlin-core" % gremlinVersion,
"org.scala-lang" % "scala-reflect" % scalaVersion.value,
"com.chuusai" %% "shapeless" % "2.3.3",
"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.3" % Test,
"org.scalamock" %% "scalamock-scalatest-support" % "3.5.0" % Test
),
resolvers += "Apache public".at("https://repository.apache.org/content/groups/public/"),
resolvers += Resolver.mavenLocal,
scalacOptions ++= Seq(
// "-Xlint"
// "-Xfatal-warnings",
// , "-Xlog-implicits"
//"-Ydebug",
"-language:implicitConversions",
"-language:existentials",
"-feature",
"-deprecation" //hard to handle when supporting multiple scala versions...
),
publishTo := { // format: off
if (isSnapshot.value) Some("snapshots".at("https://oss.sonatype.org/content/repositories/snapshots"))
else Some("releases".at("https://oss.sonatype.org/service/local/staging/deploy/maven2"))
},
homepage := Some(url("https://github.com/mpollmeier/gremlin-scala")),
licenses +=("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0.html")),
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>, // format: on
releasePublishArtifactsAction := PgpKeys.publishSigned.value
)
lazy val root = project
.in(file("."))
.aggregate(`gremlin-scala`, macros)
.settings(skip in publish := true, publishTo := {
Some("publishMeNot".at("https://publish/me/not"))
})
lazy val `gremlin-scala` = project
.in(file("gremlin-scala"))
.settings(commonSettings: _*)
.dependsOn(macros)
// macros can't be in the same compilation unit
lazy val macros = project
.in(file("macros"))
.settings(commonSettings: _*)
ThisBuild / scalafmtOnCompile := true