forked from cadence-workflow/cadence-java-samples
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
60 lines (50 loc) · 1.7 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
plugins {
id 'net.minecrell.licenser' version '0.3'
id "com.github.sherter.google-java-format" version "0.6"
id "net.ltgt.errorprone" version "0.6"
}
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'com.github.sherter.google-java-format'
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/"
}
mavenCentral()
}
dependencies {
errorproneJavac("com.google.errorprone:javac:9+181-r4173-1")
errorprone("com.google.errorprone:error_prone_core:2.3.1")
compile group: 'com.uber.cadence', name: 'cadence-client', version: '2.6.0'
compile group: 'commons-configuration', name: 'commons-configuration', version: '1.9'
compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3'
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: 'org.mockito', name: 'mockito-all', version: '1.10.19'
testCompile group: 'org.powermock', name: 'powermock-api-mockito', version: '1.7.3'
}
compileJava {
dependsOn 'googleJavaFormat'
options.encoding = 'UTF-8'
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
options.errorprone.errorproneArgs << "-XepExcludedPaths:.*/generated-sources/.*"
}
task execute(type: JavaExec) {
main = findProperty("mainClass") ?: ""
classpath = sourceSets.main.runtimeClasspath
}
license {
header rootProject.file('license-header.txt')
}