Skip to content

Commit 97bf5af

Browse files
committed
docs: add changelog entry for java distribution
1 parent 94ce539 commit 97bf5af

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Changed
1111

12-
- Bumping the bundled spotless-lib (3.3.1 -> 4.1.0)
12+
- **BREAKING** Bumping the bundled spotless-lib (3.3.1 -> 4.1.0)
13+
- **BREAKING** spotless cli is moving away from distributing as a graalvm native image.
14+
From now on, we will distribute spotless cli as a regular java application (set of jars).
15+
:question: Why? Even though the native image gives us great performance, it comes with the cost of major limitations:
16+
- :boom: no support for dynamic class loading (which is needed to load formatters/plugins in specific versions at runtime)
17+
- :boom: classpath collisions are difficult to handle (for example it is not possible to have eclipse-wtp and eclipse-java-formatter at the same time)
18+
- :boom: increased code complexity when reflection is added mix by any formatter used
19+
The distribution as regular java application removes these limitations and gives us more flexibility to add new formatters and features in the future.
20+
The downside is that the startup time will be a bit slower and it requires a jre to be installed on the system.
1321

1422
### Fixed
1523

0 commit comments

Comments
 (0)