Skip to content

Releases: JLLeitschuh/ktlint-gradle

v10.0.0

10 Feb 21:53
4422016
Compare
Choose a tag to compare

[10.0.0] - 2021.02.09

Changed

  • Updated Kotlin to 1.4.30 version.

    Breaking - removed support for following deprecated Kotlin plugins:

    1. "kotlin2js"
    2. "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:

    1. 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.
    2. To configure reports output directory, use GenerateReportsTask#reportsOutputDirectory property.
    3. Errors in Gradle console does not use colors. If you still need it, please open a new issue.
    4. Linting is running in workers with process isolation.
      To configure maximum heap size, use BaseKtLintCheckTask#workerMaxHeapSize property.
    5. "ktlintRuleset" and "ktlintReporter" configurations dependencies versions are constraint by main "ktlint" configuration dependencies versions.

Fixed

  • Gradle deprecations #395
  • Fail task on KtLint crash #229

v9.4.1

05 Oct 20:06
Compare
Choose a tag to compare

[9.4.1] - 2020.10.05

Fixed

  • Plugin now correctly validates files on Windows OS #399

v9.4.0

06 Sep 13:06
Compare
Choose a tag to compare

[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

  • KtLint was not checking files that contains whitespace in path or name #362
  • Skip check if incremental changes contains only removed files #385

v9.3.0

17 Jul 15:01
Compare
Choose a tag to compare

[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 and ktlintCheck tasks now support the configuration cache #364
  • Make pre-commit hook working with Windows path separator [#359] (#359)

v9.2.1

13 Feb 07:40
Compare
Choose a tag to compare

[9.2.1] - 2020-02-12

Fixed

  • Git hook fails to check multiple files #336