File tree Expand file tree Collapse file tree 5 files changed +24
-3
lines changed
Expand file tree Collapse file tree 5 files changed +24
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ homepage := scmInfo.value map (_.browseUrl)
88scmInfo := Some (ScmInfo (url(" https://github.com/sbt/sbt-git" ), " scm:git:git@github.com:sbt/sbt-git.git" ))
99
1010lazy val scala212 = " 2.12.20"
11- lazy val scala3 = " 3.6.4 "
11+ lazy val scala3 = " 3.7.2 "
1212
1313crossScalaVersions := 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
Original file line number Diff line number Diff line change 1- sbt.version =1.11.3
1+ sbt.version =1.11.4
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 1+ package com .github .sbt .git
2+
3+ private [git] object PluginCompat {
4+ type cacheLevel = sbt.util.cacheLevel
5+ }
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package com.github.sbt.git
22
33import sbt .*
44import Keys .*
5+ import PluginCompat .*
56
67/** This plugin has all the basic 'git' functionality for other plugins. */
78object 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.
You can’t perform that action at this time.
0 commit comments