Skip to content

Commit c7b8048

Browse files
committed
sbt 2.0.0-RC3
1 parent d03673b commit c7b8048

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

build.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
lazy val scala212 = "2.12.18"
2-
lazy val scala3 = "3.6.4"
2+
lazy val scala3 = "3.7.2"
33
ThisBuild / scalaVersion := scala212
44
ThisBuild / crossScalaVersions := Seq(scala212, scala3)
55

@@ -23,7 +23,7 @@ lazy val plugin = project
2323
(pluginCrossBuild / sbtVersion) := {
2424
scalaBinaryVersion.value match {
2525
case "2.12" => "1.9.0"
26-
case _ => "2.0.0-M4"
26+
case _ => "2.0.0-RC3"
2727
}
2828
},
2929
scalacOptions ++= {

plugin/src/main/scala/com/github/sbt/JavaFormatterPlugin.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,15 @@ object AutomateJavaFormatterPlugin extends AutoPlugin {
3333
object JavaFormatterPlugin extends AutoPlugin {
3434

3535
object autoImport {
36+
@transient
3637
val javafmt: TaskKey[Unit] = taskKey("Format Java sources")
38+
@transient
3739
val javafmtCheck: TaskKey[Boolean] = taskKey("Fail, if a Java source needs reformatting.")
40+
@transient
3841
val javafmtAll: TaskKey[Unit] = taskKey(
3942
"Execute the javafmt task for all configurations in which it is enabled. " +
4043
"(By default this means the Compile and Test configurations.)")
44+
@transient
4145
val javafmtCheckAll: TaskKey[Unit] = taskKey(
4246
"Execute the javafmtCheck task for all configurations in which it is enabled. " +
4347
"(By default this means the Compile and Test configurations.)")
@@ -106,6 +110,7 @@ object JavaFormatterPlugin extends AutoPlugin {
106110
def notToBeScopedSettings: Seq[Setting[?]] =
107111
List(javafmt / includeFilter := "*.java")
108112

113+
@transient
109114
private val javafmtDoFormatOnCompile =
110115
taskKey[Unit]("Format Java source files if javafmtOnCompile is on.")
111116

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.11.1
1+
sbt.version=1.11.5

0 commit comments

Comments
 (0)