-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathbuild.gradle.kts
41 lines (33 loc) · 1.07 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
import java.net.URI
plugins {
java
application
}
repositories {
mavenCentral()
}
val restateVersion = "2.0.0"
dependencies {
annotationProcessor("dev.restate:sdk-api-gen:$restateVersion")
// Restate SDK
implementation("dev.restate:sdk-http-java:$restateVersion")
// Jackson parameter names
// https://github.com/FasterXML/jackson-modules-java8/tree/2.14/parameter-names
implementation("com.fasterxml.jackson.module:jackson-module-parameter-names:2.16.1")
// Jackson java8 types
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.16.1")
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.16.1")
}
// Set main class
application {
if (project.hasProperty("mainClass")) {
mainClass.set(project.property("mainClass") as String)
} else {
mainClass.set("durable_execution.RoleUpdateService")
}
}
tasks.withType<JavaCompile> {
// Using -parameters allows to use Jackson ParameterName feature
// https://github.com/FasterXML/jackson-modules-java8/tree/2.14/parameter-names
options.compilerArgs.add("-parameters")
}