forked from eclipse-hara/hara-ddiclient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathktlint.gradle
32 lines (27 loc) · 810 Bytes
/
ktlint.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
repositories {
mavenCentral()
}
configurations {
ktlint
}
dependencies {
ktlint "com.pinterest:ktlint:0.34.2"}
task checkStyle(type: JavaExec, group: "klint") {
description = "Check Kotlin code style."
classpath = configurations.ktlint
mainClass = "com.pinterest.ktlint.Main"
args "src/**/*.kt"
}
task fixStyle(type: JavaExec, group: "klint") {
description = "Fix Kotlin code style deviations."
classpath = configurations.ktlint
mainClass = "com.pinterest.ktlint.Main"
args "-F", "src/**/*.kt"
}
task configureIntellij(type: JavaExec, group: "klint"){
description = "Configure intellij"
classpath = configurations.ktlint
workingDir = project.rootDir
mainClass = "com.pinterest.ktlint.Main"
args "--apply-to-idea-project", "--android", "-y"
}