-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.gradle.kts
45 lines (36 loc) · 1.01 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
plugins {
application
kotlin("jvm") version "2.0.0"
// Kotlinx serialization (optional)
kotlin("plugin.serialization") version "2.0.0"
id("com.google.devtools.ksp") version "2.0.0-1.0.21"
}
repositories {
mavenCentral()
}
val restateVersion = "1.2.0"
dependencies {
// Annotation processor
ksp("dev.restate:sdk-api-kotlin-gen:$restateVersion")
// Restate SDK
implementation("dev.restate:sdk-api-kotlin:$restateVersion")
implementation("dev.restate:sdk-http-vertx:$restateVersion")
// Logging (optional)
implementation("org.apache.logging.log4j:log4j-core:2.24.1")
// Kotlinx serialization (optional)
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.3")
}
// Setup Java/Kotlin compiler target
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
// Set main class
application {
if (project.hasProperty("mainClass")) {
mainClass.set(project.property("mainClass") as String)
} else {
mainClass.set("durable_execution.RoleUpdateServiceKt")
}
}