Added ktlint plugin.
This commit is contained in:
parent
ce67c4124b
commit
089ede6006
1 changed files with 12 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
||||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||||
|
import org.jlleitschuh.gradle.ktlint.KtlintExtension
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
`kotlin-dsl`
|
`kotlin-dsl`
|
||||||
|
@ -6,10 +7,10 @@ plugins {
|
||||||
`maven-publish`
|
`maven-publish`
|
||||||
id("com.gradle.plugin-publish") version "0.9.10"
|
id("com.gradle.plugin-publish") version "0.9.10"
|
||||||
id("com.github.ben-manes.versions") version "0.20.0"
|
id("com.github.ben-manes.versions") version "0.20.0"
|
||||||
id("org.jmailen.kotlinter") version "1.14.0"
|
id("org.jlleitschuh.gradle.ktlint") version "4.1.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
version = "0.9.1"
|
version = "0.9.1-beta"
|
||||||
group = "net.thauvin.erik.gradle"
|
group = "net.thauvin.erik.gradle"
|
||||||
|
|
||||||
var github = "https://github.com/ethauvin/semver-gradle"
|
var github = "https://github.com/ethauvin/semver-gradle"
|
||||||
|
@ -54,6 +55,10 @@ tasks {
|
||||||
includeEngines("spek")
|
includeEngines("spek")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val test by getting {
|
||||||
|
dependsOn("ktlintCheck")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
gradlePlugin {
|
gradlePlugin {
|
||||||
|
@ -83,3 +88,8 @@ pluginBundle {
|
||||||
artifactId = project.name
|
artifactId = project.name
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
configure<KtlintExtension> {
|
||||||
|
verbose = true
|
||||||
|
outputToConsole = true
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue