forked from cadence-workflow/cadence-java-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
71 lines (61 loc) · 2.51 KB
/
build.gradle
File metadata and controls
71 lines (61 loc) · 2.51 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
plugins {
id 'com.github.hierynomus.license' version '0.16.1'
id "com.github.sherter.google-java-format" version "0.9"
id "net.ltgt.errorprone" version "3.1.0"
id 'org.springframework.boot' version '2.7.15'
}
apply plugin: 'java'
apply plugin: 'maven-publish'
apply plugin: 'com.github.sherter.google-java-format'
apply plugin: 'io.spring.dependency-management'
googleJavaFormat {
toolVersion '1.5'
include '**/*.java'
exclude '**/generated-sources/*'
}
group = 'com.uber'
version = '0.0.1'
description = """Samples for Cadence. Based on samples for AWS SWF"""
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
// replace with mavenLocal() if you want to test local change from Cadence Java Client (use publishToMarvenLocal to override)
mavenCentral()
}
dependencies {
errorprone("com.google.errorprone:error_prone_core:2.23.0")
implementation group: 'com.uber.cadence', name: 'cadence-client', version: '3.7.2'
implementation group: 'commons-configuration', name: 'commons-configuration', version: '1.9'
implementation group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3'
implementation group: 'com.uber.m3', name: 'tally-core', version: '0.10.0'
implementation group: 'com.uber.m3', name: 'tally-prometheus', version: '0.10.0'
implementation group: 'io.prometheus', name: 'simpleclient', version: '0.10.0'
implementation group: 'io.prometheus', name: 'simpleclient_httpserver', version: '0.10.0'
testImplementation group: 'junit', name: 'junit', version: '4.13.2'
testImplementation group: 'org.mockito', name: 'mockito-all', version: '1.10.19'
testImplementation group: 'org.powermock', name: 'powermock-api-mockito', version: '1.7.4'
implementation 'org.springframework.boot:spring-boot-starter-web'
}
compileJava {
dependsOn 'googleJavaFormat'
options.encoding = 'UTF-8'
options.compilerArgs << "-Xdoclint:none"
options.errorprone.errorproneArgs = ["-XepExcludedPaths:.*/generated-sources/.*"]
options.warnings = false
}
task execute(type: JavaExec) {
main = findProperty("mainClass") ?: ""
classpath = sourceSets.main.runtimeClasspath
jvmArgs += '--add-opens=java.base/java.lang=ALL-UNNAMED' // Upgrade to Java 21
jvmArgs += '--add-opens=java.base/java.time=ALL-UNNAMED' // Upgrade to Java 21
}
license {
header rootProject.file('license-header.txt')
include "**/*.java"
}