Releases: JLLeitschuh/ktlint-gradle
Releases · JLLeitschuh/ktlint-gradle
v10.0.0
[10.0.0] - 2021.02.09
Changed
-
Updated Kotlin to
1.4.30
version.Breaking - removed support for following deprecated Kotlin plugins:
- "kotlin2js"
- "kotlin-platform-*"
-
Updated Android Gradle Plugin to
4.1.0
version.Breaking - removed build variants meta tasks. Minimum supported AGP version is
4.0.0
. -
Updated shadow plugin to
6.1.0
version. -
Set default ktlint version to
0.40.0
-
Updated Gradle to
6.8.1
version -
Set minimal supported Gradle version to
6.0
-
Set minimal supported KtLint version to
0.34.0
-
Use KtLint directly instead of invoking it via CLI #424
Breaking:
- Tasks classes were completely changed and new one were introduced. Configuration should stay the same,
so, if you don't configure tasks directly, update should be done without issues. - To configure reports output directory, use
GenerateReportsTask#reportsOutputDirectory
property. - Errors in Gradle console does not use colors. If you still need it, please open a new issue.
- Linting is running in workers with process isolation.
To configure maximum heap size, useBaseKtLintCheckTask#workerMaxHeapSize
property. - "ktlintRuleset" and "ktlintReporter" configurations dependencies versions are constraint by main "ktlint" configuration dependencies versions.
- Tasks classes were completely changed and new one were introduced. Configuration should stay the same,
Fixed
v9.4.1
v9.4.0
[9.4.0] - 2020.09.06
Changed
- Updated Gradle to
6.6.1
version - Each task will output reports into subdirectory inside
build/reports/ktlint
directory to fix non-working caching #379 - Set default ktlint version to
0.38.1
Fixed
v9.3.0
[9.3.0] - 2020.07.17
Added
- Allow to specify reporters output dir #321
Changed
- Check pre-commit hook will not add partially committed files to git commit #330
- Update Gradle to
6.5.1
version - Update Android Gradle plugin to
3.6.3
version - Set default ktlint version to
0.37.2
- Executing ktlint uses now uses the Gradle worker API when supported.
ktlintFormat
andktlintCheck
tasks now support the configuration cache #364- Make pre-commit hook working with Windows path separator [#359] (#359)