Skip to content

Commit 16534fb

Browse files
committed
Update to sbt 2.0.0-RC2
1 parent 4906644 commit 16534fb

File tree

5 files changed

+24
-3
lines changed

5 files changed

+24
-3
lines changed

build.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ homepage := scmInfo.value map (_.browseUrl)
88
scmInfo := Some(ScmInfo(url("https://github.com/sbt/sbt-git"), "scm:git:[email protected]:sbt/sbt-git.git"))
99

1010
lazy val scala212 = "2.12.20"
11-
lazy val scala3 = "3.6.4"
11+
lazy val scala3 = "3.7.2"
1212

1313
crossScalaVersions := Seq(scala212, scala3)
1414

@@ -24,7 +24,7 @@ libraryDependencies ++= Seq(
2424
(pluginCrossBuild / sbtVersion) := {
2525
scalaBinaryVersion.value match {
2626
case "2.12" => "1.5.8"
27-
case _ => "2.0.0-M4"
27+
case _ => "2.0.0-RC2"
2828
}
2929
}
3030

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.11.3
1+
sbt.version=1.11.4
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package com.github.sbt.git
2+
3+
import sbt.*
4+
import scala.annotation.{meta, StaticAnnotation}
5+
6+
private[git] object PluginCompat {
7+
implicit class DefOp(singleton: Def.type) {
8+
def uncached[A1](a: A1): A1 = a
9+
}
10+
@meta.getter
11+
class cacheLevel(
12+
include: Array[String]
13+
) extends StaticAnnotation
14+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package com.github.sbt.git
2+
3+
private[git] object PluginCompat {
4+
type cacheLevel = sbt.util.cacheLevel
5+
}

src/main/scala/com/github/sbt/git/GitPlugin.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package com.github.sbt.git
22

33
import sbt.*
44
import Keys.*
5+
import PluginCompat.*
56

67
/** This plugin has all the basic 'git' functionality for other plugins. */
78
object SbtGit {
@@ -21,6 +22,7 @@ object SbtGit {
2122
val gitUncommittedChanges = SettingKey[Boolean]("git-uncommitted-changes", "Whether there are uncommitted changes.")
2223

2324
// A Mechanism to run Git directly.
25+
@cacheLevel(include = Array.empty)
2426
val gitRunner = TaskKey[GitRunner]("git-runner", "The mechanism used to run git in the current build.")
2527

2628
// Keys associated with setting a version number.

0 commit comments

Comments
 (0)