-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
50 lines (40 loc) · 972 Bytes
/
build.gradle.kts
File metadata and controls
50 lines (40 loc) · 972 Bytes
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
plugins {
java
kotlin("jvm") version "2.0.21"
}
apply {
plugin("java")
plugin("kotlin")
}
java {
sourceCompatibility = JavaVersion.VERSION_17
}
kotlin {
jvmToolchain(17)
}
group = "com.zyixh.code"
version = "0.0.1-SNAPSHOT"
repositories {
mavenCentral()
}
sourceSets.main {
java.srcDirs("src/main")
kotlin.srcDirs("src/main")
}
sourceSets.test {
java.srcDirs("src/test")
kotlin.srcDirs("src/test")
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile>().configureEach {
jvmTargetValidationMode.set(org.jetbrains.kotlin.gradle.dsl.jvm.JvmTargetValidationMode.WARNING)
}
dependencies {
implementation("com.google.guava:guava:32.0.1-android")
runtimeOnly(kotlin("reflect"))
testImplementation(kotlin("test"))
testImplementation("org.junit.jupiter:junit-jupiter-api:5.10.0")
testImplementation("org.junit.jupiter:junit-jupiter-engine:5.10.0")
}