This repository was archived by the owner on Mar 24, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
33 lines (29 loc) · 1.56 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
import org.jetbrains.sbtidea.Keys._
name := "scala-macro-intellij-plugin"
organization := "org.bitlap.tools"
lazy val ideaVersion = "221.6008.13"
lazy val scala213 = "2.13.10"
scalaVersion := scala213
lazy val `intellij-plugin` = (project in file("."))
.enablePlugins(SbtIdeaPlugin)
.settings(
version := (ThisBuild / version).value,
scalaVersion := scala213,
ThisBuild / intellijPluginName := "Scala-Macro-Tools",
// This is a EAP version, instead of release version
ThisBuild / intellijBuild := ideaVersion, // https://confluence.jetbrains.com/display/IDEADEV/IDEA+2022.1+latest+builds
ThisBuild / intellijPlatform := IntelliJPlatform.IdeaCommunity,
Global / intellijAttachSources := true,
Compile / javacOptions ++= "--release" :: "11" :: Nil,
Global / scalacOptions ++= Seq("-deprecation", "-feature", "-unchecked", "-Xfatal-warnings"),
intellijPlugins ++= Seq("com.intellij.java", "com.intellij.java-i18n", "org.intellij.scala").map(_.toPlugin),
Compile / unmanagedResourceDirectories += baseDirectory.value / "src" / "main" / "resources",
Test / unmanagedResourceDirectories += baseDirectory.value / "src" / "test" / "resources",
patchPluginXml := pluginXmlOptions { xml =>
// xml.version = (ThisBuild / version).value
xml.version = "0.5.0"
xml.pluginDescription = IO.read(baseDirectory.value / "src" / "main" / "resources" / "patch" / "description.html")
xml.changeNotes = IO.read(baseDirectory.value / "src" / "main" / "resources" / "patch" / "change.html")
},
publish / skip := true,
)