Releases: diffplug/spotless
Releases · diffplug/spotless
Maven Plugin v3.5.1
Fixed
<licenseHeader>with<yearMode>SET_FROM_GIT</yearMode>no longer runsgit logthrough a shell, eliminating a shell-injection vector when formatting files whose names contain shell metacharacters.- Bump transitive
plexus-utils4.0.2->4.0.3to address CVE-2025-67030. (#2919)
Lib v4.6.1
Fixed
LicenseHeaderStepinSET_FROM_GITyear mode no longer invokesgit logthroughbash -c/cmd /c, eliminating a shell-injection vector when processing repositories that contain files whose names include shell metacharacters.
Gradle Plugin v8.5.1
Fixed
licenseHeaderwithsetLicenseHeaderYearsFromGitHistory()no longer runsgit logthrough a shell, eliminating a shell-injection vector when formatting files whose names contain shell metacharacters.
Maven Plugin v3.5.0
Added
<scalafmt>now reads the version from theversionfield in the scalafmt config file when no<version>is explicitly set, falling back to the built-in default only if neither is available. (#2922)- Add
<toml>format type with<versionCatalog>step for formatting and sorting Gradle version catalog files. (#2916) - Add
<javaparserVersion>option to<cleanthat>, allowing users to override the JavaParser version pulled in transitively by Cleanthat. (#2903) - Add a
expandWildcardImportsAPI for java (#2829)
Fixed
- Preserve case of JDBI named bind params that collide with SQL keywords (e.g.
:limit,:offset) in the DBeaver SQL formatter. (#2899) - The
-Dspotless.ratchetFrom=...user property now takes priority over<ratchetFrom>configured in the plugin or in individual formatters, instead of being overridden by them. (#2896, fixes #2842) - Fix non-idempotent formatting when
importOrder()is combined withgreclipse(): a single catch-all group no longer strips blank lines thatgreclipse()independently inserted between import groups. (#2914)
Changes
- Fix
expandWildcardImportsfailing on JDK XML types such asorg.xml.sax.InputSource. (#2921) - Use Eclipse JDT's collator-based comparison when sorting Java members to better match Eclipse save actions. (#2920)
- Bump default
cleanthatversion2.24->2.25. (#2903) - Bump default
eclipse-jdtversion from4.35to4.39. (#2912)
Lib v4.6.0
Added
scalafmt()now reads the version from theversionfield in the scalafmt config file when no version is explicitly set in the plugin config, falling back to the built-in default only if neither is available. (#2922)- Add
versionCatalogstep for formatting and sorting Gradle version catalog (.toml) files. (#2916) - Add
javaparserVersionoption to the Cleanthat step, allowing callers to override the JavaParser version pulled in transitively by Cleanthat. (#2903)
Fixed
- Preserve case of JDBI named bind params that collide with SQL keywords (e.g.
:limit,:offset) in the DBeaver SQL formatter. (#2899) - Fix non-idempotent formatting when
importOrder()is combined withgreclipse(): a single catch-all group no longer strips blank lines thatgreclipse()independently inserted between import groups. (#2914)
Changes
- Fix
expandWildcardImportsfailing on JDK XML types such asorg.xml.sax.InputSource. (#2921) - Use Eclipse JDT's collator-based comparison when sorting Java members to better match Eclipse save actions. (#2920)
- Bump default
cleanthatversion2.24->2.25. (#2903) - Bump default
eclipse-jdtversion from4.35to4.39. (#2912)
Gradle Plugin v8.5.0
Added
scalafmt()now reads the version from theversionfield in the scalafmt config file when no version is explicitly set in the plugin config, falling back to the built-in default only if neither is available. (#2922)- Add
tomlformat type withversionCatalog()step for formatting and sorting Gradle version catalog files. (#2916) - Add
withIndentStyleandwithIndentSizeconfiguration totableTestFormatterfor setting the fallback indent when no.editorconfigis found. (#2893) - Add
javaparserVersion(...)tocleanthat, allowing users to override the JavaParser version pulled in transitively by Cleanthat. (#2903)
Fixed
- Fix
tableTestFormattereditorconfig cache not honoring.editorconfigchanges across Gradle daemon runs due to a shared staticEditorConfigProvider. (#2893) - Preserve case of JDBI named bind params that collide with SQL keywords (e.g.
:limit,:offset) in the DBeaver SQL formatter. (#2899) - Fix non-idempotent formatting when
importOrder()is combined withgreclipse(): a single catch-all group no longer strips blank lines thatgreclipse()independently inserted between import groups. (#2914) - Fix
predeclareDepsFromBuildscript()on Gradle 9 by avoiding mutation of the root buildscript configuration container. (#2929, fixes #2599)
Changes
- Fix
expandWildcardImportsfailing on JDK XML types such asorg.xml.sax.InputSource. (#2921) - Use Eclipse JDT's collator-based comparison when sorting Java members to better match Eclipse save actions. (#2920)
- Bump default
cleanthatversion2.24->2.25. (#2903) - Bump default
eclipse-jdtversion from4.35to4.39. (#2912) - Make
spotlessPredeclarevisible to Gradle Kotlin DSL type-safe accessors. (#2925) - Allow
spotlessPredeclareto be used directly without enabling it first in spotless extension. (#2925)