-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathbuild.gradle
More file actions
57 lines (47 loc) · 1.41 KB
/
build.gradle
File metadata and controls
57 lines (47 loc) · 1.41 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
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
plugins {
id 'org.jetbrains.kotlin.jvm' version "$kotlinVersion" apply false
id 'org.jetbrains.kotlin.plugin.serialization' version "$kotlinVersion" apply false
id 'com.gorylenko.gradle-git-properties' version '2.5.7' apply false
}
subprojects {
apply plugin: 'java-library'
apply plugin: 'org.jetbrains.kotlin.jvm'
apply plugin: 'jacoco'
group = 'org.demoth'
version = '1.2.0'
ext.appName = 'cake'
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
tasks.withType(JavaCompile).configureEach {
options.incremental = true
options.release = 21
}
tasks.withType(KotlinJvmCompile).configureEach {
compilerOptions.jvmTarget.set(JvmTarget.JVM_21)
}
dependencies {
testImplementation(libs.junitJupiterApi)
testImplementation(libs.junitJupiterParams)
testRuntimeOnly(libs.junitPlatformLauncher)
testRuntimeOnly(libs.junitJupiterEngine)
}
tasks.withType(Test).configureEach {
useJUnitPlatform()
finalizedBy(tasks.named('jacocoTestReport'))
}
tasks.withType(JacocoReport).configureEach {
dependsOn(tasks.withType(Test))
reports {
xml.required = true
html.required = true
csv.required = false
}
}
}