-
Notifications
You must be signed in to change notification settings - Fork 83
/
build.gradle.kts
53 lines (42 loc) · 1 KB
/
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
46
47
48
49
50
51
52
53
plugins {
kotlin("jvm") version "1.6.0"
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}
repositories {
mavenCentral()
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
suppressWarnings = true
}
}
sourceSets {
named("main") {
java.srcDir("Examples")
}
named("test") {
java.srcDir("Tests")
}
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation(kotlin("reflect"))
// For tests in Examples
implementation(kotlin("test"))
// For tests in Tests
testImplementation(kotlin("test-junit"))
// Logging
implementation("io.github.microutils:kotlin-logging:1.4.6")
implementation("org.slf4j:slf4j-simple:1.7.25")
}
apply(from = "gradle/tasks.gradle")
tasks.withType<Test> {
testLogging {
exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
}
}
tasks.register<generating.GenerateTests>("GenerateTests")