-
Notifications
You must be signed in to change notification settings - Fork 103
/
build.sbt
32 lines (26 loc) · 1.08 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
organization := "com.github.sbt"
sonatypeProfileName := "com.github.sbt"
name := "sbt-git"
licenses := Seq(("BSD-2-Clause", url("https://opensource.org/licenses/BSD-2-Clause")))
description := "An sbt plugin that offers git features directly inside sbt"
developers := List(Developer("jsuereth", "Josh Suereth", "joshua suereth gmail com", url("http://jsuereth.com/")))
startYear := Some(2011)
homepage := scmInfo.value map (_.browseUrl)
scmInfo := Some(ScmInfo(url("https://github.com/sbt/sbt-git"), "scm:git:[email protected]:sbt/sbt-git.git"))
lazy val scala212 = "2.12.20"
lazy val scala3 = "3.6.2"
crossScalaVersions := Seq(scala212, scala3)
enablePlugins(GitVersioning, SbtPlugin)
git.baseVersion := "1.0"
libraryDependencies ++= Seq(
"org.eclipse.jgit" % "org.eclipse.jgit" % "5.13.3.202401111512-r",
"com.michaelpollmeier" % "versionsort" % "1.0.11",
"org.scalameta" %% "munit" % "1.0.3" % Test
)
(pluginCrossBuild / sbtVersion) := {
scalaBinaryVersion.value match {
case "2.12" => "1.5.8"
case _ => "2.0.0-M3"
}
}
scriptedLaunchOpts += s"-Dproject.version=${version.value}"