-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
62 lines (49 loc) · 1.65 KB
/
build.gradle
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
plugins {
id 'java'
id 'org.springframework.boot' version '3.0.5'
id 'io.spring.dependency-management' version '1.1.0'
id 'application'
}
group = 'com.temporal.workflows'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'
repositories {
mavenCentral()
}
ext {
javaSDKVersion = '1.19.0'
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-webflux'
implementation 'org.springframework.session:spring-session-core'
implementation 'org.projectlombok:lombok:1.18.22'
compileOnly 'org.projectlombok:lombok:1.18.22'
annotationProcessor 'org.projectlombok:lombok:1.18.22'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
implementation "io.springfox:springfox-boot-starter:3.0.0"
// Temporal SDK
implementation "io.temporal:temporal-sdk:$javaSDKVersion"
implementation "io.temporal:temporal-opentracing:$javaSDKVersion"
testImplementation("io.temporal:temporal-testing:$javaSDKVersion")
}
tasks.named('test') {
useJUnitPlatform()
}
application {
mainClass = 'com.temporal.samples.helloworld.Application'
}
task(helloworld, dependsOn: 'classes', type: JavaExec) {
main = 'com.temporal.samples.helloworld.Application'
classpath = sourceSets.main.runtimeClasspath
}
/**
* execute samples
* usage :
* gradle execute -PmainClass=com.temporal.samples.helloworld.Application
* gradle execute -PmainClass=com.temporal.samples.approval.Application
*/
task execute(type: JavaExec) {
mainClass = findProperty("mainClass") ?: ""
classpath = sourceSets.main.runtimeClasspath
}