forked from zio/zio-intellij
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
40 lines (36 loc) · 1.35 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
lazy val scala213 = "2.13.2"
lazy val pluginVersion = "2020.3.5" + sys.env.get("ZIO_INTELLIJ_BUILD_NUMBER").fold(".1")(v => s".$v")
ThisBuild / intellijPluginName := "zio-intellij"
ThisBuild / intellijBuild := "203"
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:2020.3.16".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[
This is a small update, containing a fix for supporting not-so-SemVer ZIO 1.0.4-x updates<br/>
Big thanks to Timur Aliberdov for fixing it!
<ul>
<li>Bug fix: Support ZIO 1.0.4-x version parsing (<a href="https://github.com/zio/zio-intellij/pull/239">#239</a>)</li>
</ul>
]]>"""
)
}
)