-
-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathbuild.sbt
44 lines (37 loc) · 1.58 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
import SbtAxis.RichProjectMatrix
ThisBuild / organization := "com.timushev.sbt"
ThisBuild / homepage := Some(url("https://github.com/rtimush/sbt-updates"))
ThisBuild / licenses += (("BSD 3-Clause", url("https://github.com/rtimush/sbt-updates/blob/master/LICENSE")))
ThisBuild / publishTo := sonatypePublishToBundle.value
ThisBuild / developers := List(
Developer("rtimush", "Roman Timushev", "rtimush@gmail.com", url("https://github.com/rtimush"))
)
ThisBuild / scmInfo := Some(
ScmInfo(
url("https://github.com/rtimush/sbt-updates"),
"scm:git:https://github.com/rtimush/sbt-updates.git",
Some("scm:git:git@github.com:rtimush/sbt-updates.git")
)
)
sonatypeProfileName := "com.timushev"
ThisBuild / scalacOptions := Seq("-deprecation", "-unchecked", "-feature")
lazy val `sbt-1.x` = SbtAxis("1.x", "1.1.5")
lazy val `sbt-latest` = SbtAxis()
lazy val `sbt-1.0.0` = SbtAxis("1.0.0")
lazy val `sbt-updates` = (projectMatrix in file("."))
.settings(libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.19" % "test")
.sbtPluginRow(`sbt-1.x`)
.sbtScriptedRow(`sbt-1.0.0`, `sbt-1.x`)
.sbtScriptedRow(`sbt-latest`, `sbt-1.x`)
lazy val root = (project in file("."))
.withId("sbt-updates")
.aggregate(`sbt-updates`.projectRefs: _*)
.settings(
publish / skip := true,
compile / skip := true,
scalafmtAll / aggregate := false,
scalafmtSbt / aggregate := false,
scalafmtCheckAll / aggregate := false,
scalafmtSbtCheck / aggregate := false
)
Global / scriptedLaunchOpts += s"-Dsbt.updates.version=${version.value}"