Skip to content

gradle/kotlin-dsl-conventions

Repository files navigation

Gradle Kotlin DSL conventional plugins

Build Status

ktlint convention plugin

Important
The plugin requires a Gradle version of 6.0 or higher.

The plugin applies the ktlint-gradle plugin and configures it with a custom ktlint rule set with rules extracted from the development of the gradle/kotlin-dsl.

The rule set is the standard ktlint ruleset with a few rules on top. See the integration tests for more information.

Usage

Request the plugin using the following:

plugins {
    id("org.gradle.kotlin-dsl.ktlint-convention") version "0.9.0"
}

Then run ktlint checks:

gradle ktlintCheck