-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
53 lines (43 loc) · 1.06 KB
/
build.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
buildscript {
ext {
kotlinVersion = '1.4.32'
jvmTarget = '1.8'
}
repositories {
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
}
}
allprojects {
group 'hachi'
version '1.0-SNAPSHOT'
repositories {
jcenter()
}
}
subprojects {
if (it.name != 'hachi-antlr') {
apply plugin: 'kotlin'
configurations {
ktlint
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"
ktlint "com.github.shyiko:ktlint:0.29.0"
}
compileKotlin {
kotlinOptions.jvmTarget = jvmTarget
}
compileTestKotlin {
kotlinOptions.jvmTarget = jvmTarget
}
task ktlint(type: JavaExec, group: "verification") {
description = "Check Kotlin code style."
classpath = configurations.ktlint
main = "com.github.shyiko.ktlint.Main"
args "src/**/*.kt"
}
}
}