mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 00:38:21 +00:00
Add ktlint Gradle plugin
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
plugins {
|
||||
id 'org.jetbrains.kotlin.jvm' version "1.2.60" apply(false)
|
||||
id 'org.jmailen.kotlinter' version '1.16.0' apply(false)
|
||||
}
|
||||
|
||||
allprojects {
|
||||
|
||||
+17
-2
@@ -1,5 +1,20 @@
|
||||
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' } }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user