-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathbuild.gradle
More file actions
132 lines (109 loc) · 4.21 KB
/
Copy pathbuild.gradle
File metadata and controls
132 lines (109 loc) · 4.21 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
plugins {
id 'org.springframework.boot' version '2.7.18'
id 'java'
}
group 'io.durabletask'
version = '0.1.0'
def grpcVersion = '1.78.0'
archivesBaseName = 'durabletask-samples'
bootJar {
mainClass = 'io.durabletask.samples.WebApplication'
}
task runWebAppToDurableTaskSchedulerSample(type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
mainClass = 'io.durabletask.samples.WebAppToDurableTaskSchedulerSample'
}
task runTracingPattern(type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
mainClass = 'io.durabletask.samples.TracingPattern'
}
task runWorkItemFilterSample(type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
mainClass = 'io.durabletask.samples.WorkItemFilterSample'
}
task runLargePayloadSample(type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
mainClass = 'io.durabletask.samples.LargePayloadSample'
}
task runHistoryExportSample(type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
mainClass = 'io.durabletask.samples.HistoryExportSample'
}
// --- Entity samples (require a Durable Task sidecar / DTS emulator on localhost:4001) ---
// When ENDPOINT is set (or the default applies), these tasks connect to a Durable Task
// Scheduler such as the DTS emulator. Override by setting ENDPOINT/TASKHUB env vars.
def dtsEnv = [
ENDPOINT: System.getenv('ENDPOINT') ?: 'http://localhost:4001',
TASKHUB : System.getenv('TASKHUB') ?: 'default',
]
task runCounterEntitySample(type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
mainClass = 'io.durabletask.samples.CounterEntitySample'
environment dtsEnv
}
task runBankAccountSample(type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
mainClass = 'io.durabletask.samples.BankAccountSample'
environment dtsEnv
}
task runEntityCommunicationSample(type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
mainClass = 'io.durabletask.samples.EntityCommunicationSample'
environment dtsEnv
}
task runEntityQuerySample(type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
mainClass = 'io.durabletask.samples.EntityQuerySample'
environment dtsEnv
}
task runEntityReentrantSample(type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
mainClass = 'io.durabletask.samples.EntityReentrantSample'
environment dtsEnv
}
task runEntityTimeoutSample(type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
mainClass = 'io.durabletask.samples.EntityTimeoutSample'
environment dtsEnv
}
task runLowLevelEntitySample(type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
mainClass = 'io.durabletask.samples.LowLevelEntitySample'
environment dtsEnv
}
task runTypedEntityProxySample(type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
mainClass = 'io.durabletask.samples.TypedEntityProxySample'
environment dtsEnv
}
task runParentInstanceSample(type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
mainClass = 'io.durabletask.samples.ParentInstanceSample'
environment dtsEnv
}
task printClasspath {
doLast {
println sourceSets.main.runtimeClasspath.asPath
}
}
dependencies {
implementation project(':client')
implementation project(':azuremanaged')
implementation project(':azure-blob-payloads')
implementation project(':exporthistory')
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation platform("org.springframework.boot:spring-boot-dependencies:2.7.18")
implementation 'org.springframework.boot:spring-boot-starter'
// OpenTelemetry for tracing sample
implementation "io.opentelemetry:opentelemetry-sdk:1.58.0"
implementation "io.opentelemetry:opentelemetry-sdk-trace:1.58.0"
implementation "io.opentelemetry:opentelemetry-exporter-otlp:1.58.0"
// https://github.com/grpc/grpc-java#download
implementation "io.grpc:grpc-protobuf:${grpcVersion}"
implementation "io.grpc:grpc-stub:${grpcVersion}"
runtimeOnly "io.grpc:grpc-netty-shaded:${grpcVersion}"
implementation 'com.azure:azure-identity:1.18.1'
// install lombok
annotationProcessor 'org.projectlombok:lombok:1.18.42'
compileOnly 'org.projectlombok:lombok:1.18.42'
}