-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
37 lines (31 loc) · 985 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
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Kotlin application project to get you started.
*/
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
// Apply the Kotlin JVM plugin to add support for Kotlin.
id("org.jetbrains.kotlin.jvm") version "2.1.20"
}
allprojects {
repositories {
// Use jcenter for resolving dependencies.
// You can declare any Maven/Ivy/file repository here.
mavenCentral()
}
tasks.withType(JavaCompile::class).all {
sourceCompatibility = "23"
targetCompatibility = "23"
}
tasks.withType(KotlinCompile::class).all {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_23)
}
}
tasks.withType(Test::class).configureEach {
maxParallelForks = maxOf(Runtime.getRuntime().availableProcessors() / 2, 1)
useJUnitPlatform()
}
}