Skip to content

Commit 5dfa12b

Browse files
authored
Merge pull request #725 from mkurz/upgrade-sbt-java-formatter
Upgrade sbt-java-formatter
2 parents 7608c4a + c018510 commit 5dfa12b

5 files changed

Lines changed: 8 additions & 3 deletions

File tree

build.sbt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ lazy val mimaSettings = Seq(
2828
)
2929
)
3030

31+
ThisBuild / javafmtFormatterCompatibleJavaVersion := 17
32+
3133
lazy val root = project
3234
.in(file("."))
3335
.aggregate(core, plugin)

docs/build.sbt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import sbtheader.LineCommentCreator
88

99
SettingKey[Seq[File]]("migrationManualSources") := Nil
1010

11+
ThisBuild / javafmtFormatterCompatibleJavaVersion := 17
12+
1113
lazy val docs = project
1214
.in(file("."))
1315
.enablePlugins(PlayDocsPlugin, PlayEbean)

docs/project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ resolvers ++= DefaultOptions.resolvers(snapshot = true)
88

99
addSbtPlugin("org.playframework" % "play-docs-sbt-plugin" % sys.props.getOrElse("play.version", "3.1.0-M5"))
1010

11-
addSbtPlugin("com.lightbend.sbt" % "sbt-java-formatter" % "0.8.0")
11+
addSbtPlugin("com.github.sbt" % "sbt-java-formatter" % "0.12.0")
1212

1313
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.6")
1414

play-ebean/src/main/java/play/db/ebean/EbeanDynamicEvolutions.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ private static String generateScript(SpiEbeanServer spiServer) {
125125
}
126126

127127
return "-- Created by Ebean DDL\r\n"
128-
+ "-- To stop Ebean DDL generation, remove this comment (both lines) and start using Evolutions\r\n"
128+
+ "-- To stop Ebean DDL generation, remove this comment (both lines) and start using"
129+
+ " Evolutions\r\n"
129130
+ "\r\n"
130131
+ "-- !Ups\r\n"
131132
+ "\r\n"

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.6")
88

99
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.11.2")
1010

11-
addSbtPlugin("com.lightbend.sbt" % "sbt-java-formatter" % "0.8.0")
11+
addSbtPlugin("com.github.sbt" % "sbt-java-formatter" % "0.12.0")

0 commit comments

Comments
 (0)