-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.sbt
60 lines (48 loc) · 2.34 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 := "cpg_miner"
ThisBuild / organization := "za.ac.sun"
ThisBuild / scalaVersion := "3.3.0"
val cpgVersion = "1.4.34"
val joernVersion = "2.0.239"
val overflowdbVersion = "1.182"
lazy val schema = Projects.schema
lazy val domainClasses = Projects.domainClasses
lazy val schemaExtender = Projects.schemaExtender
dependsOn(domainClasses)
libraryDependencies ++= Seq(
"com.github.pathikrit" %% "better-files" % "3.9.2",
"com.github.scopt" %% "scopt" % "4.1.0",
"org.apache.logging.log4j" % "log4j-slf4j2-impl" % "2.20.0" % Optional,
"io.joern" %% "x2cpg" % Versions.joern,
"io.joern" %% "joern-cli" % Versions.joern,
"io.joern" %% "javasrc2cpg" % Versions.joern,
"io.joern" %% "semanticcpg" % Versions.joern,
"io.joern" %% "dataflowengineoss" % Versions.joern,
"org.scalatest" %% "scalatest" % "3.2.15" % Test
)
// mostly so that `sbt assembly` works, but also to ensure that we don't end up
// with unexpected shadowing in jar hell
excludeDependencies ++= Seq(
ExclusionRule("io.shiftleft", "codepropertygraph-domain-classes_3"),
)
assembly / assemblyMergeStrategy := {
case "log4j2.xml" => MergeStrategy.first
case "module-info.class" => MergeStrategy.first
case "META-INF/versions/9/module-info.class" => MergeStrategy.first
case "io/github/retronym/java9rtexport/Export.class" => MergeStrategy.first
case PathList("scala", "collection", "internal", "pprint", _) => MergeStrategy.first
case x =>
val oldStrategy = (ThisBuild / assemblyMergeStrategy).value
oldStrategy(x)
}
ThisBuild / Compile / scalacOptions ++= Seq("-feature", "-deprecation", "-language:implicitConversions")
enablePlugins(JavaAppPackaging)
ThisBuild / licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0"))
Global / onChangedBuildSource := ReloadOnSourceChanges
ThisBuild / resolvers ++= Seq(
Resolver.mavenLocal,
"Sonatype OSS" at "https://oss.sonatype.org/content/repositories/public",
"Atlassian" at "https://packages.atlassian.com/mvn/maven-atlassian-external",
"Gradle Releases" at "https://repo.gradle.org/gradle/libs-releases/"
)
Compile / doc / sources := Seq.empty
Compile / packageDoc / publishArtifact := false