-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
78 lines (67 loc) · 2.16 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
plugins {
id "org.jetbrains.kotlin.jvm" version "1.3.61"
id("io.gitlab.arturbosch.detekt").version("1.5.0")
id "com.vanniktech.maven.publish" version "0.8.0"
id "jacoco"
}
repositories {
jcenter()
mavenCentral()
}
dependencies {
// When creating a sample extension, change this dependency to the detekt-api version you build against
// e.g. io.gitlab.arturbosch.detekt:detekt-api:1.x.x
implementation("io.gitlab.arturbosch.detekt:detekt-api:1.5.0")
// When creating a sample extension, change this dependency to the detekt-test version you build against
// e.g. io.gitlab.arturbosch.detekt:detekt-test:1.x.x
testImplementation("io.gitlab.arturbosch.detekt:detekt-test:1.5.0")
// Do you want to write integration or system tests? Add the cli dependency.
testImplementation("io.gitlab.arturbosch.detekt:detekt-cli:1.5.0")
testImplementation("org.assertj:assertj-core:3.14.0")
testImplementation("org.spekframework.spek2:spek-dsl-jvm:2.0.9")
testRuntimeOnly("org.junit.platform:junit-platform-launcher:1.5.2")
testRuntimeOnly("org.spekframework.spek2:spek-runner-junit5:2.0.9")
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
detektPlugins "io.github.mkohm:detekt-hint:0.1.4"
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
detekt {
config = files("$projectDir/config/detekt.yml")
reports {
html {
enabled = true
destination = file("build/reports/detekt/detekt.html")
}
xml {
enabled = true
destination = file("build/reports/detekt/detekt-checkstyle.xml")
}
txt {
enabled = true
destination = file("build/reports/detekt/detekt.txt")
}
}
}
test {
useJUnitPlatform()
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled false
}
}
// A new dokka task for generating github flavoured markdown to the docs directory
task customDokkaTask(type: org.jetbrains.dokka.gradle.DokkaTask) {
outputFormat = "jekyll"
outputDirectory = "$projectDir/docs"
}