All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Support for new JS plugin: "org.jetbrains.kotlin.js" (#252)
- Support for android "com.android.dynamic-feature" plugin (#260)
- Update Kotlin to
1.3.41
version
- Usage of bashisms in git hook script (#251)
additionalEditorconfigFile
property to plugin extension (#210)
- Default ktlint version to
0.33.0
.
ktlintRuleset
configuration to provide 3rd party ktlint rules (#71)
- Update Kotlin to
1.3.30
version - Deprecated providing 3rd party ktlint rules via extension (#71)
- Breaking: Change tasks inheritance - now
KtlintFormat
andKtlintCheck
extendBaseKtlintCheckTask
(#225) - Update Android Gradle plugin to
3.4.0
version
- Proper lazy adding ktlint dependency (#219)
- Gradle 5.x deprecation messages (#208)
- Support different ktlint group/package name after pinterest ownership of ktlint project (#228)
- Default ktlint version to
0.32.0
.
-
Git pre-commit hook (#101):
Current implementation does not support
buildSrc
or composite builds. -
Flag to enable experimental rules (#215)
- Default ktlint version is set to
0.31.0
- Failed task verification on Gradle
5.2.1
(#217)
- Tasks to check and format kotlin script files (#98)
- Update Kotlin to
1.3.21
version - Update Android gradle plugin to
3.3.0
version
.editorconfig
file in project root dir is not considered as tasks input (#209)
- Warning about using vulnerable ktlint version
- Default ktlint version is set to
0.30.0
- Used ktlint version is always default one (#198)
- Gradle
5.2
fails the build in pure kotlin project (#201)
- Meta tasks to run check or format on all sources in android variant. (#170)
Example: In an Android project with
foo
flavor,ktlintFooDebugSourceSetCheck
task will check thefoo
sourceSet (not main).ktlintFooDebugCheck
meta task will check all the sourceSets forfooDebug
build variant. - Plugin tasks configuration avoidance
- Update Kotlin to
1.3.10
version - Breaking: check/format tasks for specific source sets
and according reports outputs now include
SourceSet
in their name(#170) - Breaking: minimal supported Gradle version is
4.10
- Breaking: minimal supported ktlint version is
0.22.0
- Adding explicit meta check and format tasks to the root project
- Format task may produce up-to-date state if sources was restored to pre-format state (#194)
- Updated SemVer dependency to
1.1.1
version (#162)
- Added support for new kotlin multiplatform plugin (#144)
- Update Kotlin to
1.3.0
version - Sync native plugins version with kotlin main release version
- Failure on Windows due to long argument line (#156)
- Fixed additional android source dirs for SourceSet are not checked (#153)
- Allow to exclude sources from check (#97)
- Update Android gradle plugin version to
3.2.0
- Check and format tasks now extend
SourceTask
(#85)
- Console colored output (#50)
- Update Kotlin to
1.2.71
version - Update Gradle to
4.10.2
version - Update default KtLint version to
0.29.0
- Hide specific source sets tasks
- Fixed plugin fails to configure android project with flavors (#131)
- Separate KtlintFormatTask task (#111)
ktlintApplyToIdea
task is always added, though it will fail on ktlint versions less then0.22.0
- Plugin extension now uses Gradle properties for configuration
ktlint.reporters
extension property has to use importedReporterType
in groovy Gradle build scripts.- reporters output file name changed to be the same as task name. For example for
PLAIN
it will bektlintMainCheck.txt
. - format tasks now are also generate reports. For example:
ktlintMainFormat.txt
.
- Usages of
afterEvaluate {}
in plugin and sample projects (#122)
- Support for new kotlin native experimental plugin (#119)
- Update Kotlin to
1.2.61
version - Update Kotlin-native dependency to
0.8.2
version - Update Gradle to
4.9.0
version - Update default KtLint version to
0.27.0
.editorconfig
file change doesn't resetUP-TO-DATE
ktlintCheck
task state (#106)
- Split project into multiple smaller plugins.
ktlint-base
,ktlint-idea
&ktlint
- Update Kotlin to 1.2.50 version
- Update Gradle to 4.8.1 version
- Does not automatically apply plugin tasks to all sub-projects (it breaks the Gradle plugin model).
- apply to IDEA task (in the project) (#91)
- apply to IDEA task (global settings) (#91)
- Add support for providing custom rulesets (#71)
- Also check
*.kts
files in Kotlin source directories - Use a cacheable task for the KtLint check
- Update Kotlin to 1.2.41 version
- Update Gradle wrapper to 4.7 version
- Changed default KtLint version to
0.23.1
- KtLint versions prior to 0.10.0 are not supported anymore
- Gradle versions prior to 4.3 are not supported anymore
- Deprecated ReporterType typealias
- Deprecated reporter field from extension
- Check for spaces in output path for KtLint versions earlier then 0.20.0 (#83)
- Use relative for input file path sensitivity (#67)
- Update default Ktlint version to 0.22.0
- Remove usage of deprecated Gradle features (#60)
- Update Kotlin to 1.2.30 version
- Update Gradle to 4.6 version
- Update default Ktlint version to 0.19.0
- Fix running check task also runs some android tasks (#63)
- Support for Kotlin javascript (kotlin2js) (#58)
- Support for Kotlin multiplatform projects (#58)
- Support for Kotlin native (konan) (#58)
- Output to console (#38)
- Support multiple reporters for ktlint >0.10.x (#38)
- Set default ktltint version to
0.15.0
- Update Kotlin to
1.2.21
version
- Update kotlin to 1.2.0 version
- Bumped android tools versions to 3.0 and now support multidimension projects >0.10.x (#29)
- Add configuration parameter
android
with default value to false (#39)
- Define a different output file for each sourceSet
- Fixed plugin doesn't apply custom reporter for ktlint versions >0.10.x (#28)
- Fixed report output is always opened since task is created
- Add configuration parameter
ignoreFailures
with default value to false
- Update default ktlint version to 0.9.2
- Fixed report output is not closed after task run is finished (#25)
- Update default ktlint version to 0.8.1
- Fix extension version has no effect on used ktlint version
- Add check task also depends on ktlintCheck task
- Add output report
- Add report type to extension
- Android support
- Ability to only apply plugin to the root project that contains subprojects with kotlin code
- Remove dependency on Gradle Script Kotlin plugin API. (#9)
- Compatibility with Gradle v4.0. (#9)
- Renamed task with name
ktlint
toktlintCheck
(#3) - Renamed tasks with names
ktlint[source set name]
toktlint[source set name]Check
(#3)