-
Notifications
You must be signed in to change notification settings - Fork 76
/
Copy pathbuild.sbt
48 lines (45 loc) · 1.36 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
lazy val scala212 = "2.12.20"
lazy val scala3 = "3.3.4"
inThisBuild(
List(
organization := "com.github.sbt",
homepage := Some(url("https://github.com/olafurpg/sbt-ci-release")),
licenses := Seq(
"Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")
),
developers := List(
Developer(
"olafurpg",
"Ólafur Páll Geirsson",
url("https://geirsson.com")
)
)
)
)
onLoadMessage := s"Welcome to sbt-ci-release ${version.value}"
crossScalaVersions := Nil
publish / skip := true // don't publish the root project
lazy val plugin = project
.enablePlugins(SbtPlugin)
.settings(
moduleName := "sbt-ci-release",
crossScalaVersions := Seq(scala212, scala3),
scalacOptions ++= {
scalaBinaryVersion.value match {
case "2.12" => "-Xsource:3" :: Nil
case _ => Nil
}
},
(pluginCrossBuild / sbtVersion) := {
scalaBinaryVersion.value match {
case "2.12" => "1.5.8"
case _ => "2.0.0-M2"
}
},
libraryDependencies += "org.scalameta" %% "munit" % "1.0.3" % Test,
addSbtPlugin("com.github.sbt" % "sbt-dynver" % "5.1.0"),
addSbtPlugin("com.github.sbt" % "sbt-git" % "2.1.0"),
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.3.1"),
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.12.2")
)