-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
52 lines (43 loc) · 1.4 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
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.4.20'
}
group 'com.truedev'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
maven { url 'https://www.jitpack.io' }
}
configurations {
ktlint
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
implementation "com.fasterxml.jackson.module:jackson-module-kotlin:2.12.0"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.12.0"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.12.0"
implementation "com.fasterxml.jackson.module:jackson-module-parameter-names:2.12.0"
implementation 'com.github.kittinunf.fuel:fuel:2.3.1'
implementation 'com.github.kittinunf.fuel:fuel-jackson:2.3.1'
ktlint "com.pinterest:ktlint:0.36.0"
testCompile group: 'junit', name: 'junit', version: '4.13'
}
task ktlint(type: JavaExec, group: "verification") {
description = "Check Kotlin code style."
main = "com.pinterest.ktlint.Main"
classpath = configurations.ktlint
args "src/**/*.kt"
}
check.dependsOn ktlint
task ktlintFormat(type: JavaExec, group: "formatting") {
description = "Fix Kotlin code style deviations."
main = "com.pinterest.ktlint.Main"
classpath = configurations.ktlint
args "-F", "src/**/*.kt"
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}