forked from temporalio/samples-java
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
99 lines (80 loc) · 3.84 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
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
// Run 'gradle checkUpdates' to find out which dependencies have newer versions
plugins {
id 'org.cadixdev.licenser' version '0.6.1'
id 'com.github.sherter.google-java-format' version '0.9'
id "net.ltgt.errorprone" version "3.0.1"
}
apply plugin: 'java'
apply plugin: 'com.github.sherter.google-java-format'
googleJavaFormat {
toolVersion (JavaVersion.current().isJava11Compatible() ? '1.15.0' : '1.7')
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
repositories {
maven {
url "https://oss.sonatype.org/content/repositories/snapshots/"
}
mavenCentral()
}
dependencies {
implementation(platform("com.fasterxml.jackson:jackson-bom:2.13.4.20221013"))
implementation(platform("io.opentelemetry:opentelemetry-bom:1.19.0"))
implementation(platform("org.junit:junit-bom:5.9.1"))
implementation "io.temporal:temporal-sdk:1.17.0"
implementation "io.temporal:temporal-opentracing:1.17.0"
implementation "com.fasterxml.jackson.core:jackson-databind"
implementation group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.11'
implementation group: 'commons-configuration', name: 'commons-configuration', version: '1.10'
implementation group: 'io.cloudevents', name: 'cloudevents-core', version: '2.4.0'
implementation group: 'io.cloudevents', name: 'cloudevents-api', version: '2.4.0'
implementation group: 'io.cloudevents', name: 'cloudevents-json-jackson', version: '2.4.0'
implementation group: 'io.serverlessworkflow', name: 'serverlessworkflow-api', version: '4.0.3.Final'
implementation group: 'io.serverlessworkflow', name: 'serverlessworkflow-validation', version: '4.0.3.Final'
implementation group: 'io.serverlessworkflow', name: 'serverlessworkflow-spi', version: '4.0.3.Final'
implementation group: 'io.serverlessworkflow', name: 'serverlessworkflow-util', version: '4.0.3.Final'
implementation group: 'com.jayway.jsonpath', name: 'json-path', version: '2.7.0'
implementation "io.micrometer:micrometer-registry-prometheus"
implementation group: 'net.thisptr', name: 'jackson-jq', version: '1.0.0-preview.20220705'
implementation "com.fasterxml.jackson.core:jackson-core"
implementation 'io.jaegertracing:jaeger-client:1.8.1'
implementation "io.opentelemetry:opentelemetry-sdk"
implementation "io.opentelemetry:opentelemetry-exporter-jaeger"
implementation "io.opentelemetry:opentelemetry-extension-trace-propagators"
implementation 'io.opentelemetry:opentelemetry-opentracing-shim:1.14.0-alpha'
implementation 'io.opentelemetry:opentelemetry-semconv:1.14.0-alpha'
// we don't update it to 2.1.0 because 2.1.0 requires Java 11
implementation 'com.codingrodent:jackson-json-crypto:1.1.0'
testImplementation("io.temporal:temporal-testing:1.17.0")
testImplementation "junit:junit:4.13.2"
testImplementation group: 'org.mockito', name: 'mockito-core', version: '4.8.1'
testImplementation group: 'org.powermock', name: 'powermock-api-mockito2', version: '2.0.9'
testImplementation "org.junit.jupiter:junit-jupiter-api"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine"
testRuntimeOnly "org.junit.vintage:junit-vintage-engine"
dependencies {
errorproneJavac('com.google.errorprone:javac:9+181-r4173-1')
if (JavaVersion.current().isJava11Compatible()) {
errorprone('com.google.errorprone:error_prone_core:2.16')
} else {
errorprone('com.google.errorprone:error_prone_core:2.10.0')
}
}
}
compileJava {
dependsOn 'googleJavaFormat'
}
task execute(type: JavaExec) {
main = findProperty("mainClass") ?: ""
classpath = sourceSets.main.runtimeClasspath
}
test {
useJUnitPlatform()
}
license {
header rootProject.file('license-header.txt')
exclude '**/*.json'
exclude '**/*.yml'
}