mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-06 00:38:18 +00:00
Add ktlint Gradle plugin
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id 'org.jetbrains.kotlin.jvm' version "1.2.60" apply(false)
|
id 'org.jetbrains.kotlin.jvm' version "1.2.60" apply(false)
|
||||||
|
id 'org.jmailen.kotlinter' version '1.16.0' apply(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
|
|||||||
+16
-1
@@ -1,5 +1,20 @@
|
|||||||
allprojects {
|
allprojects {
|
||||||
plugins.withId('kotlin') {
|
if (it.pluginManager.hasPlugin('kotlin') || it.pluginManager.hasPlugin('apollo-plugin')) {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
gradle.projectsEvaluated {
|
||||||
|
configure(subprojects.findAll { it.pluginManager.hasPlugin('kotlin') }) {
|
||||||
|
apply plugin: 'org.jmailen.kotlinter'
|
||||||
|
|
||||||
|
kotlinter {
|
||||||
|
ignoreFailures = true
|
||||||
|
indentSize = 4
|
||||||
|
continuationIndentSize = 4
|
||||||
|
reporters = ['checkstyle', 'plain']
|
||||||
|
}
|
||||||
|
|
||||||
kotlin { experimental { coroutines 'enable' } }
|
kotlin { experimental { coroutines 'enable' } }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user