-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
60 lines (50 loc) · 1.21 KB
/
Copy pathbuild.gradle
File metadata and controls
60 lines (50 loc) · 1.21 KB
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
54
55
56
57
58
59
60
buildscript {
repositories {
jcenter()
mavenCentral()
maven { url 'https://plugins.gradle.org/m2/' }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "org.jmailen.gradle:kotlinter-gradle:$kotlinterPluginVersion"
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:$detektPluginVersion"
}
}
repositories {
jcenter()
mavenCentral()
}
apply plugin: 'kotlin'
apply plugin: 'org.jmailen.kotlinter'
apply plugin: "io.gitlab.arturbosch.detekt"
//apply plugin: 'checkstyle'
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion"
}
//checkstyle {
// toolVersion = "6.0"
//}
detekt {
version = "$detektPluginVersion"
baseline = file("$projectDir/detekt-baseline.xml")
reports {
xml {
enabled = true
destination = file("build/reports/detekt.xml")
}
html {
enabled = true
destination = file("build/reports/detekt.html")
}
}
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}