Skip to content

Commit

Permalink
Adopt kotlinter-gradle instead of org.jlleitschuh.gradle:ktlint-gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
berngp committed Jun 9, 2021
1 parent 789e883 commit 0202eb6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -13,7 +13,7 @@ GW_OPT_DISABLE_LOCAL=


format: ## Formats source code
$(GW_CMD) ktlintFormat
$(GW_CMD) formatKotlin


publish-local: ## Clans, bulds, and publishes the Codegen artifacts to mavenLocal, as a SNAPSHOT.
Expand Down
11 changes: 7 additions & 4 deletions build.gradle.kts
Expand Up @@ -28,7 +28,7 @@ plugins {
`java-library`
id("nebula.netflixoss") version "9.4.2"
id("nebula.dependency-recommender") version "10.0.1"
id("org.jlleitschuh.gradle.ktlint") version "10.0.0"
id("org.jmailen.kotlinter") version "3.4.4"
kotlin("jvm") version Versions.KOTLIN_VERSION
kotlin("kapt") version Versions.KOTLIN_VERSION
idea
Expand Down Expand Up @@ -67,7 +67,7 @@ configure(subprojects.filterNot { it in internalBomModules }) {
plugin("java-library")
plugin("kotlin")
plugin("kotlin-kapt")
plugin("org.jlleitschuh.gradle.ktlint")
plugin("org.jmailen.kotlinter")
}

/**
Expand Down Expand Up @@ -128,7 +128,10 @@ configure(subprojects.filterNot { it in internalBomModules }) {
}
}

configure<org.jlleitschuh.gradle.ktlint.KtlintExtension> {
disabledRules.set(setOf("no-wildcard-imports"))
kotlinter {
indentSize = 4
reporters = arrayOf("checkstyle", "plain")
experimentalRules = false
disabledRules = arrayOf("no-wildcard-imports")
}
}

0 comments on commit 0202eb6

Please sign in to comment.