-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
45 lines (36 loc) · 974 Bytes
/
build.gradle.kts
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.6.0"
id("org.jlleitschuh.gradle.ktlint") version "10.2.0"
id("java")
id("java-library")
id("jacoco")
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
repositories {
mavenCentral()
}
dependencies {
api("com.squareup:javapoet:1.+")
api("com.squareup:kotlinpoet:1.+")
testImplementation("com.google.testing.compile:compile-testing:0.+")
testImplementation("com.google.truth:truth:1.+")
testImplementation(platform("org.junit:junit-bom:5.8.+"))
testImplementation("org.junit.jupiter:junit-jupiter")
}
tasks.test {
useJUnitPlatform()
finalizedBy(tasks.jacocoTestReport)
}
tasks.jacocoTestReport {
dependsOn(tasks.test)
}
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = "1.8"
allWarningsAsErrors = true
}
}