-
Notifications
You must be signed in to change notification settings - Fork 90
/
Copy pathbuild.sbt
62 lines (59 loc) · 1.94 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
import Dependencies.*
ThisBuild / organization := "com.eed3si9n"
ThisBuild / version := {
val orig = (ThisBuild / version).value
if (orig.endsWith("-SNAPSHOT")) "0.11.0-SNAPSHOT"
else orig
}
val scala3 = "3.6.2"
ThisBuild / scalaVersion := scala3
lazy val root = (project in file("."))
.enablePlugins(SbtPlugin)
.settings(
name := "sbt-buildinfo",
scalacOptions := {
scalaBinaryVersion.value match {
case "2.12" => Seq("-Xsource:3", "-Xfatal-warnings", "-unchecked", "-deprecation", "-feature", "-language:implicitConversions")
case _ => Seq("-Vdebug")
}
},
scalacOptions += "-language:experimental.macros",
libraryDependencies ++= {
scalaBinaryVersion.value match {
case "2.12" => "org.scala-lang" % "scala-reflect" % scalaVersion.value % Provided :: Nil
case _ => "org.scala-lang" % "scala-reflect" % "2.13.12" % Provided :: manifesto :: Nil
}
},
scriptedLaunchOpts ++= Seq("-Xmx1024M", "-Xss4M", "-Dplugin.version=" + version.value),
scriptedBufferLog := false,
crossScalaVersions := List(scala3, "2.12.20"),
(pluginCrossBuild / sbtVersion) := {
scalaBinaryVersion.value match {
case "2.12" => "1.5.8"
case _ => "2.0.0-M3"
}
},
scriptedSbt := {
scalaBinaryVersion.value match {
case "2.12" => "1.10.7"
case _ => "2.0.0-M3"
}
},
)
ThisBuild / scmInfo := Some(
ScmInfo(
url("https://github.com/sbt/sbt-buildinfo"),
"scm:[email protected]:sbt/sbt-buildinfo.git"
)
)
ThisBuild / developers := List(
Developer(
id = "eed3si9n",
name = "Eugene Yokota",
email = "@eed3si9n",
url = url("https://eed3si9n.com/")
)
)
ThisBuild / description := "sbt plugin to generate build info"
ThisBuild / licenses := Seq("MIT License" -> url("https://github.com/sbt/sbt-buildinfo/blob/master/LICENSE"))
ThisBuild / homepage := Some(url("https://github.com/sbt/sbt-buildinfo"))