forked from zio/zio-intellij
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
38 lines (34 loc) · 1.19 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
lazy val scala213 = "2.13.2"
lazy val pluginVersion = "2021.2.11" + sys.env.get("ZIO_INTELLIJ_BUILD_NUMBER").fold(".1")(v => s".$v")
ThisBuild / intellijPluginName := "zio-intellij"
ThisBuild / intellijBuild := "212"
addCommandAlias("fmt", "all scalafmtSbt scalafmt test:scalafmt")
addCommandAlias(
"check",
"all scalafmtSbtCheck scalafmtCheck test:scalafmtCheck"
)
scalacOptions += "-deprecation"
lazy val `zio-intellij` = project
.in(file("."))
.enablePlugins(SbtIdeaPlugin)
.settings(
scalaVersion := scala213,
version := pluginVersion,
intellijPlugins := Seq(
"com.intellij.java".toPlugin,
"org.intellij.scala:2021.2.15".toPlugin
),
libraryDependencies += "com.novocode" % "junit-interface" % "0.11" % Test,
testOptions += Tests.Argument(TestFrameworks.JUnit, "-v", "-s", "-a", "+c", "+q"),
patchPluginXml := pluginXmlOptions { xml =>
xml.version = version.value
xml.changeNotes = sys.env.getOrElse(
"ZIO_INTELLIJ_CHANGE_NOTES",
s"""<![CDATA[
<ul>
<li>Supporting the ZIO milestone version format (<a href="https://github.com/zio/zio-intellij/pull/304">#304</a>)</li>
</ul>
]]>"""
)
}
)