Skip to content

Commit b81e8e8

Browse files
authored
Gradle upgrade to 6.3 (#8)
1 parent a7375e3 commit b81e8e8

6 files changed

Lines changed: 61 additions & 56 deletions

File tree

build.gradle

Lines changed: 12 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,19 @@
11
plugins {
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

77
apply plugin: 'java'
8-
apply plugin: 'maven'
98
apply plugin: 'com.github.sherter.google-java-format'
109

1110
googleJavaFormat {
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

2819
repositories {
@@ -36,23 +27,20 @@ repositories {
3627
}
3728

3829
dependencies {
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

5142
compileJava {
5243
dependsOn 'googleJavaFormat'
53-
options.encoding = 'UTF-8'
54-
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
55-
options.errorprone.errorproneArgs << "-XepExcludedPaths:.*/generated-sources/.*"
5644
}
5745

5846
task execute(type: JavaExec) {

build.properties

Lines changed: 0 additions & 10 deletions
This file was deleted.

gradle/wrapper/gradle-wrapper.jar

4.27 KB
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

gradlew

Lines changed: 31 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 17 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)