-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
65 lines (53 loc) · 2.29 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
name := "joern-type-stubs"
ThisBuild / organization := "io.joern"
ThisBuild / scalaVersion := "3.4.1"
// parsed by project/Versions.scala, updated by updateDependencies.sh
val cpgVersion = "1.6.11"
val joernVersion = "2.0.344"
val overflowdbVersion = "1.192"
lazy val schema = Projects.schema
lazy val domainClasses = Projects.domainClasses
dependsOn(domainClasses)
libraryDependencies ++= Seq(
"com.github.pathikrit" %% "better-files" % Versions.betterFiles,
"com.github.scopt" %% "scopt" % Versions.scopt,
"org.apache.logging.log4j" % "log4j-slf4j2-impl" % Versions.log4j % Optional,
"io.joern" %% "x2cpg" % Versions.joern,
"io.joern" %% "rubysrc2cpg" % Versions.joern,
"io.joern" %% "joern-cli" % Versions.joern,
"io.joern" %% "semanticcpg" % Versions.joern,
"io.joern" %% "semanticcpg" % Versions.joern % Test classifier "tests",
"net.ruippeixotog" %% "scala-scraper" % Versions.scalaScraper,
"org.scalatest" %% "scalatest" % Versions.scalatest % 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