Releases: sbt/sbt-java-formatter
0.10.0
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
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
- chore: calm down Scala Steward by @ennru in #195
- bump: sbt-pgp 2.3.0 (was 2.1.2) by @scala-steward in #215
- bump: sbt-ci-release 1.9.0 (was 1.5.10) by @scala-steward in #214
- bump: sbt-dynver 5.1.0 (was 4.1.1) by @scala-steward in #213
- bump: scalafmt-core 3.8.3 (was 2.7.5) by @scala-steward in #211
- bump: sbt-header 5.10.0 (was 5.7.0) by @scala-steward in #205
- bump: sbt-scalafmt 2.5.2 (was 2.4.6) by @scala-steward in #207
- bump: sbt, scripted-plugin 1.7.3 (was 1.7.2) by @scala-steward in #199
- fix warning in build.sbt by @xuwei-k in #212
- Update all dependencies + scalafmt by @mkurz in #217
- Move to com.github.sbt organization + cross build to sbt 2.x by @eed3si9n in #219
- Fix formatting by @mkurz in #220
- Remove
publishTo
, we use sbt-ci-release by @mkurz in #221
Full Changelog: v0.8.0...v0.9.0
0.8.0
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
- gh actions setup used plugin not included in build by @johanandren in #157
- bump: sbt, scripted-plugin 1.5.6 (was 1.5.5) by @scala-steward in #165
- bump: sbt-ci-release 1.5.10 (was 1.5.9) by @scala-steward in #161
- bump: sbt, scripted-plugin 1.5.7 (was 1.5.6) by @scala-steward in #166
- bump: sbt, scripted-plugin 1.5.8 (was 1.5.7) by @scala-steward in #167
- bump: sbt, scripted-plugin 1.7.1 (was 1.5.8) by @scala-steward in #188
- bump: sbt-header 5.6.5 (was 5.6.0) by @scala-steward in #180
- bump: sbt-scalafmt 2.4.6 (was 2.4.3) by @scala-steward in #169
- bump: sbt, scripted-plugin 1.7.2 (was 1.7.1) by @scala-steward in #192
- bump: sbt-header 5.7.0 (was 5.6.5) by @scala-steward in #191
New Contributors
- @johanandren made their first contribution in #157
- @tamas4sunairio made their first contribution in #190
https://github.com/sbt/sbt-java-formatter/milestone/14?closed=1
Full Changelog: v0.7.0...v0.8.0
0.7.0
This release switches the default of format on compile to false, making it opt in.
0.6.1
0.6.0 - support AOSP style
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 settings allowing AOSP style (#100) by @joriscode
Add `javafmtOnCompile` setting
0.5.0 new tasks and sbt caching
Introduces new tasks (which share their sbt chache)
javafmt
formats Java files (done automatically oncompile
forCompile
andTest
configurations, unlessAutomateJavaFormatterPlugin
is disabled)javafmtAll
formats Java files for all configurations (Compile
andTest
by default)javafmtCheck
fails if files need reformattingjavafmtCheckAll
fails if files need reformatting in any configuration (Compile
andTest
by default)
sbt 1.3.x is required.
0.4.4
Google Java Formatter has been updated 1.7
All fixed issues in the milestone.
Credits
Author | Commits | Lines added | Lines removed |
---|---|---|---|
3 | 3 | 3 | |
2 | 10 | 9 | |
1 | 1 | 1 |