-
Notifications
You must be signed in to change notification settings - Fork 15
/
build.sbt
35 lines (32 loc) · 1.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
import org.jetbrains.sbtidea.Keys._
ThisBuild / scalaVersion := "2.13.14"
ThisBuild / intellijPluginName := "intellij-hocon"
ThisBuild / intellijBuild := "242.20224.300"
ThisBuild / githubWorkflowJavaVersions := Seq(JavaSpec.temurin("17"))
val junitInterfaceVersion = "0.11"
val commonsTextVersion = "1.12.0"
val opentest4jVersion = "1.3.0"
lazy val hocon = project.in(file(".")).enablePlugins(SbtIdeaPlugin).settings(
version := "2024.2.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(
"org.apache.commons" % "commons-text" % commonsTextVersion,
"com.novocode" % "junit-interface" % junitInterfaceVersion % Test,
"org.opentest4j" % "opentest4j" % opentest4jVersion % Test,
),
packageLibraryMappings := Seq.empty, // allow scala-library
patchPluginXml := pluginXmlOptions { xml =>
xml.version = version.value
}
)