Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load ktlint dependency always when Kotlinter applied #425

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Available on the Gradle Plugins Portal: https://plugins.gradle.org/plugin/org.jm

```kotlin
plugins {
id("org.jmailen.kotlinter") version "5.0.0"
id("org.jmailen.kotlinter") version "5.0.1"
}
```

Expand All @@ -36,7 +36,7 @@ plugins {

```groovy
plugins {
id "org.jmailen.kotlinter" version "5.0.0"
id "org.jmailen.kotlinter" version "5.0.1"
}
```

Expand All @@ -50,7 +50,7 @@ Root `build.gradle.kts`

```kotlin
plugins {
id("org.jmailen.kotlinter") version "5.0.0" apply false
id("org.jmailen.kotlinter") version "5.0.1" apply false
}
```

Expand All @@ -70,7 +70,7 @@ Root `build.gradle`

```groovy
plugins {
id 'org.jmailen.kotlinter' version "5.0.0" apply false
id 'org.jmailen.kotlinter' version "5.0.1" apply false
}
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ val githubUrl = "https://github.com/jeremymailen/kotlinter-gradle"
val webUrl = "https://github.com/jeremymailen/kotlinter-gradle"
val projectDescription = "Lint and formatting for Kotlin using ktlint with configuration-free setup on JVM and Android projects"

version = "5.0.0"
version = "5.0.1"
group = "org.jmailen.gradle"
description = projectDescription

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class KotlinterPlugin : Plugin<Project> {

override fun apply(project: Project) = with(project) {
val kotlinterExtension = extensions.create("kotlinter", KotlinterExtension::class.java)
val ktlintConfiguration = createKtLintConfiguration(kotlinterExtension)

if (this == rootProject) {
registerPrePushHookTask()
Expand All @@ -39,7 +40,6 @@ class KotlinterPlugin : Plugin<Project> {
pluginManager.withPlugin(pluginId) {
val lintKotlin = registerParentLintTask()
val formatKotlin = registerParentFormatTask()
val ktlintConfiguration = createKtLintConfiguration(kotlinterExtension)

registerSourceSetTasks(kotlinterExtension, sourceResolver, lintKotlin, formatKotlin)

Expand Down
Loading