https://github.com/gradle/kotlin-dsl-conventions
Gradle Kotlin DSL conventional plugins
https://github.com/gradle/kotlin-dsl-conventions
gradle gradle-bt gradle-bt-core-configuration gradle-kotlin-dsl gradle-plugin kotlin linter
Last synced: 8 months ago
JSON representation
Gradle Kotlin DSL conventional plugins
- Host: GitHub
- URL: https://github.com/gradle/kotlin-dsl-conventions
- Owner: gradle
- License: other
- Created: 2018-12-12T12:13:30.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-05-22T19:09:50.000Z (over 1 year ago)
- Last Synced: 2025-01-30T03:51:12.630Z (8 months ago)
- Topics: gradle, gradle-bt, gradle-bt-core-configuration, gradle-kotlin-dsl, gradle-plugin, kotlin, linter
- Language: Kotlin
- Size: 244 KB
- Stars: 28
- Watchers: 33
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE.md
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
= Gradle Kotlin DSL conventional plugins
image:https://travis-ci.org/gradle/kotlin-dsl-conventions.svg?branch=master["Build Status", link="https://travis-ci.org/gradle/kotlin-dsl-conventions"]
== ktlint convention plugin
IMPORTANT: The plugin requires a Gradle version of 6.0 or higher.
The plugin applies the link:https://github.com/JLLeitschuh/ktlint-gradle[ktlint-gradle] plugin and configures it with a custom link:https://github.com/pinterest/ktlint[ktlint] rule set with rules extracted from the development of the link:https://github.com/gradle/kotlin-dsl[gradle/kotlin-dsl].
The rule set is the standard `ktlint` ruleset with a few rules on top.
See the link:src/test/kotlin/org/gradle/kotlin/dsl/experiments/plugins/GradleKotlinDslKtlintConventionPluginTest.kt[integration tests] for more information.=== Usage
Request the plugin using the following:
```kotlin
plugins {
id("org.gradle.kotlin-dsl.ktlint-convention") version "0.9.0"
}
```Then run `ktlint` checks:
```
gradle ktlintCheck
```