-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sbt
71 lines (62 loc) · 2.52 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import SbtAxis.RichProjectMatrix
ThisBuild / organization := "com.timushev.sbt"
ThisBuild / homepage := Some(url("https://github.com/rtimush/sbt-rewarn"))
ThisBuild / licenses += (("BSD 3-Clause", url("https://github.com/rtimush/sbt-rewarn/blob/master/LICENSE")))
ThisBuild / publishTo := sonatypePublishToBundle.value
ThisBuild / developers := List(
Developer("rtimush", "Roman Timushev", "[email protected]", url("https://github.com/rtimush"))
)
ThisBuild / scmInfo := Some(
ScmInfo(
url("https://github.com/rtimush/sbt-rewarn"),
"scm:git:https://github.com/rtimush/sbt-rewarn.git",
Some("scm:git:[email protected]:rtimush/sbt-rewarn.git")
)
)
sonatypeProfileName := "com.timushev"
ThisBuild / scalacOptions := Seq("-deprecation", "-unchecked", "-feature")
Global / scriptedLaunchOpts += s"-Dsbt.rewarn.version=${version.value}"
lazy val `sbt-1.x` = SbtAxis("1.x", "1.1.5")
lazy val `sbt-latest` = SbtAxis()
lazy val `sbt-1.3.13` = SbtAxis("1.3.13")
lazy val `sbt-1.2.0` = SbtAxis("1.2.0")
lazy val `sbt-1.1.0` = SbtAxis("1.1.0")
lazy val `sbt-1.0.0` = SbtAxis("1.0.0")
lazy val `sbt-rewarn-common` = (project in file("common"))
.disablePlugins(GitVersioningPlugin)
.settings(
scalaVersion := `sbt-1.x`.scalaVersion,
libraryDependencies += "org.scala-sbt" %% "main" % `sbt-1.x`.fullVersion.value % Provided,
publish / skip := true
)
lazy val `sbt-rewarn-adapter-lsp` = (project in file("adapters/lsp"))
.dependsOn(`sbt-rewarn-common`)
.disablePlugins(GitVersioningPlugin)
.settings(
scalaVersion := `sbt-1.x`.scalaVersion,
libraryDependencies += "org.scala-sbt" %% "main" % `sbt-1.3.13`.fullVersion.value % Provided,
publish / skip := true
)
lazy val `sbt-rewarn` = (projectMatrix in file("plugin"))
.sbtPluginRow(
`sbt-1.x`,
_.dependsOn(`sbt-rewarn-adapter-lsp` % Provided)
.settings(
Compile / products ++= (`sbt-rewarn-common` / Compile / products).value,
Compile / products ++= (`sbt-rewarn-adapter-lsp` / Compile / products).value
)
)
.sbtScriptedRow(`sbt-1.0.0`, `sbt-1.x`)
.sbtScriptedRow(`sbt-1.1.0`, `sbt-1.x`)
.sbtScriptedRow(`sbt-1.2.0`, `sbt-1.x`)
.sbtScriptedRow(`sbt-1.3.13`, `sbt-1.x`)
.sbtScriptedRow(`sbt-latest`, `sbt-1.x`)
lazy val root = project
.withId("sbt-rewarn")
.in(file("."))
.aggregate(`sbt-rewarn-adapter-lsp`)
.aggregate(`sbt-rewarn`.projectRefs: _*)
.settings(
publish / skip := true,
compile / skip := true
)