-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.sbt
51 lines (44 loc) · 1.78 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
import org.jetbrains.sbtidea.Keys.intellijPlugins
import sbt.Keys.name
import sbtbuildinfo.BuildInfoPlugin.autoImport.buildInfoOptions
// IntelliJ plugin docs here: https://github.com/JetBrains/sbt-idea-plugin
ThisBuild / intellijPluginName := "edg-ide"
ThisBuild / intellijBuild := "231.8109.175"
ThisBuild / intellijPlatform := IntelliJPlatform.IdeaCommunity
lazy val edgCompiler = (project in file("PolymorphicBlocks/compiler")) // proto imported transitively
.enablePlugins(SbtIdeaPlugin) // sbt-idea-plugin doesn't import properly if this isn't enabled
lazy val root = (project in file("."))
.dependsOn(edgCompiler % "compile->compile; test->test")
.enablePlugins(SbtIdeaPlugin)
.settings(
scalaVersion := "2.13.14",
scalacOptions += "-deprecation",
javacOptions ++= "--release" :: "11" :: Nil,
name := "edg-ide",
version := "0.1-SNAPSHOT",
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.2.0" % "test",
"org.eclipse.elk" % "org.eclipse.elk.alg.layered" % "0.7.0",
"com.github.librepdf" % "openpdf" % "1.3.30",
"de.siegmar" % "fastcsv" % "2.1.0",
),
intellijPlugins ++= Seq(
"com.intellij.properties",
"PythonCore",
).map(_.toPlugin),
patchPluginXml := pluginXmlOptions { xml =>
xml.version = version.value
xml.pluginDescription = "EDG IDE Description"
xml.sinceBuild = (ThisBuild / intellijBuild).value
xml.untilBuild = "223.*"
},
intellijVMOptions := intellijVMOptions.value.copy(
xmx = 4096,
xms = 1024
),
).enablePlugins(BuildInfoPlugin)
.settings(
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion),
buildInfoOptions += BuildInfoOption.BuildTime,
buildInfoPackage := "edg_ide.build",
)