-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
54 lines (45 loc) · 1.59 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
54
plugins {
kotlin("jvm") version "2.0.0"
application
}
group = "keccak256"
version = "1.0-SNAPSHOT"
java {
sourceCompatibility = JavaVersion.VERSION_21
}
repositories {
mavenCentral()
}
val kotestVersion = "5.9.1"
dependencies {
implementation("org.web3j:core:4.9.7")
implementation("io.github.oshai:kotlin-logging-jvm:7.0.0")
implementation("ch.qos.logback:logback-classic:1.5.6")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1")
testImplementation(kotlin("test"))
testImplementation("io.kotest:kotest-runner-junit5:$kotestVersion")
testImplementation("io.kotest:kotest-assertions-core:$kotestVersion")
testImplementation("io.kotest:kotest-assertions-json:$kotestVersion")
testImplementation("io.mockk:mockk:1.13.11")
}
tasks {
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().all {
with(kotlinOptions) {
jvmTarget = "21"
freeCompilerArgs = freeCompilerArgs + listOf(
"-Xjsr305=strict",
"-opt-in=kotlin.ExperimentalUnsignedTypes",
"-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi",
"-opt-in=kotlinx.coroutines.ObsoleteCoroutinesApi",
"-opt-in=kotlinx.coroutines.FlowPreview",
"-opt-in=kotlinx.coroutines.DelicateCoroutinesApi",
"-opt-in=kotlin.time.ExperimentalTime",
"-opt-in=kotlin.ExperimentalStdlibApi",
"-opt-in=kotlin.experimental.ExperimentalTypeInference"
)
}
}
withType<Test> {
useJUnitPlatform()
}
}