11plugins {
2- id ' net.minecrell.licenser' version ' 0.3 '
3- id " com.github.sherter.google-java-format" version " 0.6 "
2+ id ' net.minecrell.licenser' version ' 0.4.1 '
3+ id ' com.github.sherter.google-java-format' version ' 0.8 '
44 id " net.ltgt.errorprone" version " 0.6"
55}
66
77apply plugin : ' java'
8- apply plugin : ' maven'
98apply plugin : ' com.github.sherter.google-java-format'
109
1110googleJavaFormat {
12- toolVersion ' 1.5'
13- include ' **/*.java'
14- exclude ' **/generated-sources/*'
11+ toolVersion ' 1.7'
1512}
1613
17- group = ' com.uber'
18- version = ' 0.20.0-SNAPSHOT'
19-
20- description = " Temporal Java SDK Samples"
21-
22- sourceCompatibility = 1.8
23- targetCompatibility = 1.8
24- tasks. withType(JavaCompile ) {
25- options. encoding = ' UTF-8'
14+ java {
15+ sourceCompatibility = JavaVersion . VERSION_1_8
16+ targetCompatibility = JavaVersion . VERSION_1_8
2617}
2718
2819repositories {
@@ -36,23 +27,20 @@ repositories {
3627}
3728
3829dependencies {
39- compile group : ' io.temporal' , name : ' temporal-sdk' , version : ' 0.23.1'
30+ implementation group : ' io.temporal' , name : ' temporal-sdk' , version : ' 0.23.1'
31+ implementation group : ' commons-configuration' , name : ' commons-configuration' , version : ' 1.9'
32+ implementation group : ' ch.qos.logback' , name : ' logback-classic' , version : ' 1.2.3'
4033
41- compile group : ' commons-configuration' , name : ' commons-configuration' , version : ' 1.9'
42- compile group : ' ch.qos.logback' , name : ' logback-classic' , version : ' 1.2.3'
43- testCompile group : ' junit' , name : ' junit' , version : ' 4.12'
44- testCompile group : ' org.mockito' , name : ' mockito-all' , version : ' 1.10.19'
45- testCompile group : ' org.powermock' , name : ' powermock-api-mockito' , version : ' 1.7.3'
34+ testImplementation group : ' junit' , name : ' junit' , version : ' 4.12'
35+ testImplementation group : ' org.mockito' , name : ' mockito-all' , version : ' 1.10.19'
36+ testImplementation group : ' org.powermock' , name : ' powermock-api-mockito' , version : ' 1.7.3'
4637
4738 errorproneJavac(" com.google.errorprone:javac:9+181-r4173-1" )
4839 errorprone(" com.google.errorprone:error_prone_core:2.3.1" )
4940}
5041
5142compileJava {
5243 dependsOn ' googleJavaFormat'
53- options. encoding = ' UTF-8'
54- options. compilerArgs << " -Xlint:unchecked" << " -Xlint:deprecation"
55- options. errorprone. errorproneArgs << " -XepExcludedPaths:.*/generated-sources/.*"
5644}
5745
5846task execute (type : JavaExec ) {
0 commit comments