Skip to content

Releases: sbt/sbt-java-formatter

0.10.0

22 Apr 18:55
v0.10.0
01c87a7
Compare
Choose a tag to compare

Breaking changes

  • Drop support for Java 8, requires Java 11 now.
  • Google's google-java-format was upgraded from version 1.7 to 1.24.0

If you still need support for Java 8 you can keep using version 0.9.0.

Noteworthy

With the previous 0.9.0 release the groupId changed from com.lightbend.sbt to com.github.sbt:

// new:
addSbtPlugin("com.github.sbt" % "sbt-java-formatter" % ---version---) // starting with v0.9.0
// old:
addSbtPlugin("com.lightbend.sbt" % "sbt-java-formatter" % ---version---) // until v0.8.0

The package com.lightbend.sbt was renamed to com.github.sbt as well.

What's Changed

  • Upgrade google formatter to v1.24.0 - the last version supporting Java 11 by @mkurz in #218
  • Remove setup scala by @mkurz in #222

Full Changelog: v0.9.0...v0.10.0

0.9.0

22 Apr 18:50
v0.9.0
531e616
Compare
Choose a tag to compare

Breaking changes

The groupId changed from com.lightbend.sbt to com.github.sbt:

// new:
addSbtPlugin("com.github.sbt" % "sbt-java-formatter" % ---version---) // starting with v0.9.0
// old:
addSbtPlugin("com.lightbend.sbt" % "sbt-java-formatter" % ---version---) // until v0.8.0

The package com.lightbend.sbt was renamed to com.github.sbt as well.

What's Changed

Full Changelog: v0.8.0...v0.9.0

0.8.0

20 Oct 15:46
839a326
Compare
Choose a tag to compare

What's Changed

  • Use the Import Sorting Feature of the Formatter by @tamas4sunairio in #190
    "Fixing imports includes ordering, spacing, and removal of unused import statements."

Chore

New Contributors

https://github.com/sbt/sbt-java-formatter/milestone/14?closed=1

Full Changelog: v0.7.0...v0.8.0

0.7.0

17 Nov 10:40
1fc9fcc
Compare
Choose a tag to compare

This release switches the default of format on compile to false, making it opt in.

See #151 Set javafmtOnCompile := false by default

0.6.1

25 Aug 13:42
Compare
Choose a tag to compare

Changes

  • Re-release on Maven Central, migrating off of Bintray. #126 / #130

Milestone: https://github.com/sbt/sbt-java-formatter/milestone/11

0.6.0 - support AOSP style

17 Aug 03:20
256b9a1
Compare
Choose a tag to compare

Formatter can be configured to use either Google Java Style (by default) or AOSP style.

Allow any other java formatter options to be configured, such as enabling or disabling Javadoc formatting.

Changes

Add `javafmtOnCompile` setting

06 Mar 11:36
9dc94ef
Compare
Choose a tag to compare

Introduces the setting javafmtOnCompile so that users can op-out of Java formatting triggered by compilation.

0.5.0 new tasks and sbt caching

19 Dec 08:54
Compare
Choose a tag to compare

Introduces new tasks (which share their sbt chache)

  • javafmt formats Java files (done automatically on compile for Compile and Test configurations, unless AutomateJavaFormatterPlugin is disabled)
  • javafmtAll formats Java files for all configurations (Compile and Test by default)
  • javafmtCheck fails if files need reformatting
  • javafmtCheckAll fails if files need reformatting in any configuration (Compile and Test by default)

sbt 1.3.x is required.

0.4.4

21 Feb 12:14
@2m 2m
fa21243
Compare
Choose a tag to compare

Google Java Formatter has been updated 1.7

All fixed issues in the milestone.

Credits

Author Commits Lines added Lines removed
scala-steward scala-steward 3 3 3
dwijnand dwijnand 2 10 9
timo-schmid timo-schmid 1 1 1

0.4.3

15 Feb 12:42
v0.4.3
0660520
Compare
Choose a tag to compare

This release only exists to (temporarily!) re-cross-build the plugin for sbt 0.13.