Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
lazy val scala212 = "2.12.18"
lazy val scala3 = "3.6.4"
lazy val scala3 = "3.7.2"
ThisBuild / scalaVersion := scala212
ThisBuild / crossScalaVersions := Seq(scala212, scala3)

Expand All @@ -23,7 +23,7 @@ lazy val plugin = project
(pluginCrossBuild / sbtVersion) := {
scalaBinaryVersion.value match {
case "2.12" => "1.9.0"
case _ => "2.0.0-M4"
case _ => "2.0.0-RC3"
}
},
scalacOptions ++= {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,15 @@ object AutomateJavaFormatterPlugin extends AutoPlugin {
object JavaFormatterPlugin extends AutoPlugin {

object autoImport {
@transient
val javafmt: TaskKey[Unit] = taskKey("Format Java sources")
@transient
val javafmtCheck: TaskKey[Boolean] = taskKey("Fail, if a Java source needs reformatting.")
@transient
val javafmtAll: TaskKey[Unit] = taskKey(
"Execute the javafmt task for all configurations in which it is enabled. " +
"(By default this means the Compile and Test configurations.)")
@transient
val javafmtCheckAll: TaskKey[Unit] = taskKey(
"Execute the javafmtCheck task for all configurations in which it is enabled. " +
"(By default this means the Compile and Test configurations.)")
Expand Down Expand Up @@ -106,6 +110,7 @@ object JavaFormatterPlugin extends AutoPlugin {
def notToBeScopedSettings: Seq[Setting[?]] =
List(javafmt / includeFilter := "*.java")

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

Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.11.1
sbt.version=1.11.5