Skip to content

Latest commit

 

History

History
224 lines (147 loc) · 25.5 KB

CHANGES.md

File metadata and controls

224 lines (147 loc) · 25.5 KB

spotless-lib and spotless-lib-extra releases

You might be looking for:

Version 1.26.0-SNAPSHOT - TBD (javadoc lib lib-extra, snapshot repo)

  • Fix project URLs in poms. (#478)

  • Fix ImportSorter crashing with empty files. (#474)

    • Fixes #305 StringIndexOutOfBoundsException for empty Groovy file when performing importOrder
  • Bugfix: CDT version 4.12.0 now properly uses 9.8, whereas before it used 9.7. (#482)

  • Add support for Eclipse 4.13 and all related formatters (JDT, CDT, WTP, and Groovy). (#480)

  • bump default version of KtLint from 0.34.2 to 0.35.0

Version 1.25.0 - October 6th 2019 (javadoc lib lib-extra, artifact [lib](jcenter, lib-extra)

  • Add support for ktlint 0.34+, and bump default version from 0.32.0 to 0.34.2. (#469)

Version 1.24.3 - September 23rd 2019 (javadoc lib lib-extra, artifact [lib](jcenter, lib-extra)

  • Update jgit from 5.3.2.201906051522-r to 5.5.0.201909110433-r. (#445)
  • Eclipse-based formatters used to leave temporary files around (#447). This is now fixed, but only for eclipse 4.12+, no back-port to older Eclipse formatter versions is planned. (#451)
  • PaddedCellBulk had a bug where badly-formatted files with well-behaving formatters were being:
    • correctly formatted by "apply"
    • but incorrectly marked as good by "check"
    • this led to "check" says all good, but then "apply" still causes format (diffplug#453)
    • combined with up-to-date checking, could lead to even more confusing results (diffplug#338)
    • only affects the gradle plugin, since that was the only plugin to use this feature
  • Minor change to TestProvisioner, which should fix the cache-breaking issues, allowing us to speed-up the CI builds a bit.
  • Bumped scalafmt default version from 1.1.0 to 2.0.1, since there are bugs in the old default (#458).

Version 1.24.1 - August 12th 2019 (javadoc lib lib-extra, artifact [lib](jcenter, lib-extra)

  • Fixes class loading issue with Java 9+ (#426).

Version 1.24.0 - July 29th 2019 (javadoc lib lib-extra, artifact [lib](jcenter, lib-extra)

  • Updated default eclipse-wtp from 4.8.0 to 4.12.0 (#423).
  • Updated default eclipse-groovy from 4.10 to 4.12.0 (#423).
  • Updated default eclipse-jdt from 4.11.0 to 4.12.0 (#423).
  • Updated default eclipse-cdt from 4.11.0 to 4.12.0 (#423).
    • KNOWN BUG - accidentally published CDT 9.7 rather than 9.8 - fixed in 1.26.0
  • Added new maven coordinates for scalafmt 2.0.0+, maintains backwards compatability (#415)

Version 1.23.1 - June 17th 2019 (javadoc lib lib-extra, artifact [lib](jcenter, lib-extra)

  • Fixes incorrect M2 cache directory path handling of Eclipse based formatters (#401)
  • Update jgit from 4.9.0.201710071750-r to 5.3.2.201906051522-r because gradle project is sometimes broken by apache httpcomponents in transitive dependency. (#407)

Version 1.23.0 - April 24th 2019 (javadoc lib lib-extra, artifact [lib](jcenter, lib-extra)

  • Updated default ktlint from 0.21.0 to 0.32.0, and Maven coords to com.pinterest (#394)

Version 1.22.0 - April 15th 2019 (javadoc lib lib-extra, artifact [lib](jcenter, lib-extra)

  • Updated default eclipse-cdt from 4.7.3a to 4.11.0 (#390).

Version 1.21.1 - March 29th 2019 (javadoc lib lib-extra, artifact [lib](jcenter, lib-extra)

  • Fixes incorrect plugin and pom metadata in 1.21.0 (#388).

Version 1.21.0 - March 28th 2019 (javadoc lib lib-extra, artifact [lib](jcenter, lib-extra)

  • We now use a remote build cache to speed up CI builds. Reduced build time from ~13 minutes to as low as ~3 minutes, dependending on how deep the change is (#380).
  • Updated default eclipse-wtp from 4.7.3b to 4.8.0 (#382).
  • Updated default eclipse-groovy from 4.8.1 to 4.10.0 (#382).
  • Updated default eclipse-jdt from 4.10.0 to 4.11.0 (#384).

Version 1.20.0 - March 11th 2019 (javadoc lib lib-extra, artifact [lib](jcenter, lib-extra)

  • Made npm package versions of prettier and tsfmt (and its internal packages) configurable. (#363)
    • Updated default npm package version of prettier from 1.13.4 to 1.16.4
    • Updated default npm package version of internally used typescript package from 2.9.2 to 3.3.3 and tslint package from 5.1.0 to 5.12.0 (both used by tsfmt)
  • Updated default eclipse-wtp from 4.7.3a to 4.7.3b (#371).
  • Configured buìld-scan plugin in build (#356).
    • Runs on every CI build automatically.
    • Users need to opt-in on their local machine.
  • Default behavior of XML formatter changed to ignore external URIs (#369).
    • WARNING RESOLVED: By default, xml formatter no longer downloads external entities. You can opt-in to resolve external entities by setting resolveExternalURI to true. However, if you do opt-in, be sure that all external entities are referenced over https and not http, or you may be vulnerable to XXE attacks.

Version 1.19.0 - March 11th 2019 (javadoc lib lib-extra, artifact [lib](jcenter, lib-extra)

WARNING: xml formatter in this version may be vulnerable to XXE attacks, fixed in 1.20.0 (see #358).

  • Security fix: Updated groovy, c/c++, and eclipse WTP formatters so that they download their source jars securely using https rather than http (#360).
  • Updated default eclipse-jdt from 4.9.0 to 4.10.0 (#368)

Version 1.18.0 - February 11th 2019 (javadoc lib lib-extra, artifact [lib](jcenter, lib-extra)

WARNING: xml formatter in this version may be vulnerable to XXE attacks, fixed in 1.20.0 (see #358).

  • CSS and XML extensions are discontinued (#325).
  • Provided features with access to SLF4J interface of build tools. (#236)
  • Updated default google-java-format from 1.5 to 1.7 (#335).
  • ImportOrderStep.createFromFile is now lazy (#218).

Version 1.17.0 - October 30th 2018 (javadoc lib lib-extra, artifact [lib](jcenter, lib-extra)

WARNING: xml formatter in this version may be vulnerable to XXE attacks, fixed in 1.20.0 (see #358).

  • Updated default eclipse-jdt from 4.7.3a to 4.9.0 (#316). New version addresses enum-tab formatting bug in 4.8 (#314).

Version 1.16.0 - October 30th 2018 (javadoc lib lib-extra, artifact [lib](jcenter, lib-extra)

WARNING: xml formatter in this version may be vulnerable to XXE attacks, fixed in 1.20.0 (see #358).

  • Minor support for plugin-gradle and plugin-maven CSS plugins (#311).

Version 1.15.0 - September 23rd 2018 (javadoc lib lib-extra, artifact [lib](jcenter, lib-extra)

WARNING: xml formatter in this version may be vulnerable to XXE attacks, fixed in 1.20.0 (see #358).

  • Added C/C++ support (#232).
  • Integrated Eclipse CDT formatter (#274)
  • Extended dependency provisioner to exclude transitives on request (#297).This prevents unnecessary downloads of unused transitive dependencies for Eclipse based formatter steps.
  • Updated default groovy-eclipse from 4.8.0 to 4.8.1 (#288). New version is based on Groovy-Eclipse 3.0.0.
  • Integrated Eclipse WTP formatter (#290)
  • Updated JSR305 annotation from 3.0.0 to 3.0.2 (#274)
  • Migrated from FindBugs annotations 3.0.0 to SpotBugs annotations 3.1.6 (#274)
  • Formatter now implements AutoCloseable. This means that users of Formatter are expected to use the try-with-resources pattern. The reason for this change is so that FormatterFunc.Closeable actually works. (#284)* Added prettier and tsfmt support, as well as general infrastructure for calling nodeJS code using j2v8 (#283).

Version 1.14.0 - July 24th 2018 (javadoc lib lib-extra, artifact [lib](jcenter, lib-extra)

  • Updated default groovy-eclipse from 4.6.3 to 4.8.0 (#244). New version allows to ignore internal formatter errors/warnings.
  • Updated default eclipse-jdt from 4.7.2 to 4.8.0 (#239). New version fixes a bug preventing Java code formatting within JavaDoc comments (#191).
  • Eclipse formatter versions decoupled from Spotless formatter step implementations to allow independent updates of maven-based Eclipse dependencies. (#253)
  • Use guaranteed binary and source compatibility between releases of Scalafmt. (#260)

Version 1.13.0 - June 1st 2018 (javadoc lib lib-extra, artifact [lib](jcenter, lib-extra)

  • Add line and column numbers to ktlint errors. (#251)

Version 1.12.0 - May 14th 2018 (javadoc lib lib-extra, artifact [lib](jcenter, lib-extra)

  • Fixed a bug in LicenseHeaderStep which caused an exception with some malformed date-aware licenses. (#222)
  • Updated default ktlint from 0.14.0 to 0.21.0
  • Add ability to pass custom options to ktlint in gradle plugin. See plugin-gradle/README for details.

Version 1.11.0 - February 26th 2018 (javadoc lib lib-extra, artifact [lib](jcenter, lib-extra)

  • Added default indentation of 4 to IndentStep. (#209)

Version 1.10.0 - February 15th 2018 (javadoc lib lib-extra, artifact [lib](jcenter, lib-extra)

  • LicenseHeaderStep now supports customizing the year range separator in copyright notices. (#199)
  • Breaking change to testlib - removed ResourceHarness.write and added ResourceHarness.[set/assert]File for easier-to-read tests. (#203)

Version 1.9.0 - February 5th 2018 (javadoc lib lib-extra, artifact [lib](jcenter, lib-extra)

  • Updated default ktlint from 0.6.1 to 0.14.0
  • Updated default google-java-format from 1.3 to 1.5
  • Updated default eclipse-jdt from 4.7.1 to 4.7.2
  • Added a configuration option to googleJavaFormat to switch the formatter style (#193)

Version 1.8.0 - January 2nd 2018 (javadoc lib lib-extra, artifact [lib](jcenter, lib-extra)

  • LicenseHeaderStep now supports time-aware copyright notices in license headers. (#179, thanks to @baptistemesta)

Version 1.7.0 - December 2nd 2017 (javadoc lib lib-extra, artifact [lib](jcenter, lib-extra)

  • Updated default eclipse-jdt version to 4.7.1 from 4.6.3.
  • Updated jgit from 4.5.0.201609210915-r to 4.9.0.201710071750-r.
  • Updated concurrent-trees from 2.6.0 to 2.6.1 (performance improvement).
  • Added dbeaverSql formatter step, for formatting sql scripts. (#166)

Version 1.6.0 - September 29th 2017 (javadoc lib lib-extra, artifact [lib](jcenter, lib-extra)

  • Added public static boolean PaddedCell::applyAnyChanged(Formatter formatter, File file).

Version 1.5.1 - August 14th 2017 (javadoc lib lib-extra, artifact [lib](jcenter, lib-extra)

  • Added KtLintStep.createForScript.

Version 1.5.0 - August 13th 2017 (javadoc lib lib-extra, artifact [lib](jcenter, lib-extra)

  • Deprecated ImportOrderStep.createFromOrder(List<String> in favor of (String....

Version 1.4.1 - July 11th 2017 (javadoc lib lib-extra, artifact [lib](jcenter, lib-extra)

  • Default eclipse version for EclipseFormatterStep bumped to 4.6.3 from 4.6.1. (#116)
  • Default scalafmt version for ScalaFmtStep bumped to 1.1.0 from 0.5.7 (#124)
    • Also added support for the API change to scalafmt introduced in 0.7.0-RC1

Version 1.4.0 - May 21st 2017 (javadoc lib lib-extra, artifact [lib](jcenter, lib-extra)

  • ImportOrderStep can now handle multi-line comments and misplaced imports.
    • Especially helpful for Groovy and Gradle files.

Version 1.3.2 - May 3rd 2017 (javadoc lib lib-extra, artifact [lib](jcenter, lib-extra)

  • Fixed a bug in PaddedCellBulk.check() which caused a check to fail even after an apply for cases which caused CYCLE.

Version 1.3.0 - April 11th 2017 (javadoc lib lib-extra, artifact [lib](jcenter, lib-extra)

  • Added support for Groovy via greclipse.
  • When a JarState resolution failed, it threw a Gradle-specific error message. That message has been moved out of lib and into plugin-gradle where it belongs.

Version 1.2.0 - April 3rd 2017 (javadoc lib lib-extra, artifact [lib](jcenter, lib-extra)

  • Deprecated FileSignature.from in favor of FileSignature.signAsSet and the new FileSignature.signAsList.
  • Added a FormatterProperties class which loads .properties files and eclipse-style .xml files.
  • SerializableFileFilter.skipFilesNamed can now skip multiple file names.
  • Update default KtLint from 0.3.1 to 0.6.1.
    • This means we no longer look for rules in the typo package com.gihub.shyiko, now only in com.github.shyiko (note the t).

Version 1.1.0 - February 27th 2017 (javadoc lib lib-extra, artifact [lib](jcenter, lib-extra)

  • Added support for Scala via scalafmt.
  • Added support for Kotlin via ktlint.
  • Better error messages for JarState.
  • Improved test harnessing.
  • Formatter now has pluggable exception policies,

Version 1.0.0 - January 9th 2017 (javadoc lib lib-extra, artifact [lib](jcenter, lib-extra)

  • Initial release!