-
Notifications
You must be signed in to change notification settings - Fork 21
/
build.sbt
60 lines (50 loc) · 2.17 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
name := "overflowdb"
ThisBuild / organization := "io.shiftleft"
ThisBuild / scalaVersion := "2.13.13"
ThisBuild / crossScalaVersions := Seq("2.13.13", "3.4.1")
// TODO once we're on Scala 3.2.2: make chained implicits in `Implicits.scala` available again
// also, change other places that have temporarily been adapted - search for `TODO Scala 3.2.2`
publish / skip := true
lazy val core = project.in(file("core"))
lazy val testdomains = project.in(file("testdomains")).dependsOn(core)
lazy val traversal = project.in(file("traversal")).dependsOn(core)
lazy val formats = project.in(file("formats")).dependsOn(traversal, testdomains % Test)
lazy val coreTests = project.in(file("core-tests")).dependsOn(formats, testdomains)
lazy val traversalTests = project.in(file("traversal-tests")).dependsOn(formats)
ThisBuild / libraryDependencies ++= Seq(
"org.slf4j" % "slf4j-simple" % "2.0.7" % Test,
"org.scalatest" %% "scalatest" % "3.2.16" % Test
)
ThisBuild / scalacOptions ++= Seq(
"-release",
"8",
"-deprecation",
"-feature"
)
ThisBuild / compile / javacOptions ++= Seq(
"-g", // debug symbols
"--release",
"8"
)
ThisBuild / Test / testOptions += Tests.Argument(TestFrameworks.JUnit, "-a", "-v")
ThisBuild / Test / fork := true
ThisBuild / resolvers ++= Seq(
Resolver.mavenLocal,
"Sonatype OSS".at("https://oss.sonatype.org/content/repositories/public")
)
ThisBuild / Compile / scalacOptions ++= Seq(
"-language:implicitConversions"
// "-language:existentials",
)
ThisBuild / publishTo := sonatypePublishToBundle.value
ThisBuild / scmInfo := Some(
ScmInfo(url("https://github.com/ShiftLeftSecurity/overflowdb"), "scm:[email protected]:ShiftLeftSecurity/overflowdb.git")
)
ThisBuild / homepage := Some(url("https://github.com/ShiftLeftSecurity/overflowdb/"))
ThisBuild / licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0"))
ThisBuild / developers := List(
Developer("mpollmeier", "Michael Pollmeier", "[email protected]", url("http://www.michaelpollmeier.com/")),
Developer("ml86", "Markus Lottmann", "[email protected]", url("https://github.com/ml86"))
)
Global / cancelable := true
Global / onChangedBuildSource := ReloadOnSourceChanges