-
Notifications
You must be signed in to change notification settings - Fork 77
/
Copy pathbuild.sbt
21 lines (17 loc) · 1.06 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
name := "codepropertygraph-domain-classes"
libraryDependencies ++= Seq(
"io.joern" %% "flatgraph-core" % Versions.flatgraph,
"io.joern" %% "flatgraph-help" % Versions.flatgraph,
)
lazy val generatedSrcDir = settingKey[File]("root for generated sources - we want to check those in")
generatedSrcDir := (Compile/sourceDirectory).value / "generated"
Compile/unmanagedSourceDirectories += generatedSrcDir.value
Compile/compile := (Compile/compile).dependsOn(Projects.schema/Compile/generateDomainClasses).value
/* generated sources occasionally have some warnings..
* we're trying to minimise them on a best effort basis, but don't want
* to fail the build because of them */
Compile / scalacOptions --= Seq("-Wconf:cat=deprecation:w,any:e", "-Wunused", "-Ywarn-unused")
// TODO uncomment, or rather find a better way to delete the generated files on `sbt clean`...
// this is just a temporarily commented out to fix the release build...
// minified command that fails if the below line isn't commented: `sbt clean doc`
// cleanFiles += baseDirectory.value / "src/main/generated"