forked from AVSystem/intellij-hocon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
31 lines (28 loc) · 1.15 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
import org.jetbrains.sbtidea.Keys._
ThisBuild / scalaVersion := "2.13.10"
ThisBuild / intellijPluginName := "intellij-hocon"
ThisBuild / intellijBuild := "241.8102.112"
ThisBuild / githubWorkflowJavaVersions := Seq(JavaSpec.temurin("17"))
val junitInterfaceVersion = "0.11"
lazy val hocon = project.in(file(".")).enablePlugins(SbtIdeaPlugin).settings(
version := "2024.1.99-SNAPSHOT",
Compile / scalaSource := baseDirectory.value / "src",
Test / scalaSource := baseDirectory.value / "test",
Compile / resourceDirectory := baseDirectory.value / "resources",
Global / javacOptions ++= Seq("-source", "17", "-target", "17"),
Global / scalacOptions ++= Seq(
"-deprecation",
"-feature",
"-unchecked",
"-Xfatal-warnings",
),
ideBasePackages := Seq("org.jetbrains.plugins.hocon"),
intellijPlugins := Seq("com.intellij.properties", "com.intellij.java", "com.intellij.java-i18n").map(_.toPlugin),
libraryDependencies ++= Seq(
"com.novocode" % "junit-interface" % junitInterfaceVersion % Test,
),
packageLibraryMappings := Seq.empty, // allow scala-library
patchPluginXml := pluginXmlOptions { xml =>
xml.version = version.value
}
)