Skip to content

Commit 9657952

Browse files
author
may
committed
Tweak
1 parent 09035cf commit 9657952

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

build.gradle

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ group = 'com.imsweb'
1818
version = '5.8-SNAPSHOT'
1919
description = 'Java client library for SEER*API'
2020

21+
tasks.withType(JavaCompile).configureEach {
22+
options.encoding = 'UTF-8'
23+
options.compilerArgs << "-Werror" << "-Xlint:-options"
24+
}
25+
2126
java {
2227
sourceCompatibility = JavaVersion.VERSION_1_8
2328
targetCompatibility = JavaVersion.VERSION_1_8
@@ -32,6 +37,8 @@ dependencies {
3237

3338
api 'com.squareup.retrofit2:retrofit:2.11.0'
3439
api 'com.squareup.retrofit2:converter-jackson:2.11.0'
40+
41+
// retrofit will not update these dependencies to fix vulnerabilities
3542
api 'com.squareup.okhttp3:okhttp:4.12.0'
3643
api 'com.squareup.okio:okio:3.11.0'
3744

@@ -46,10 +53,11 @@ dependencies {
4653
}
4754

4855
jar {
56+
// specify the archive name; otherwise the version is appended to the war file
4957
archiveFileName = 'seerapi-java.jar'
58+
5059
manifest {
51-
attributes(
52-
'Implementation-Title': 'SEER*API Java Client',
60+
attributes('Implementation-Title': 'SEER*API Java Client',
5361
'Implementation-Version': archiveVersion,
5462
'Implementation-Vendor': group,
5563
'Created-By': System.properties['java.vm.version'] + " (" + System.properties['java.vm.vendor'] + ")",

0 commit comments

Comments
 (0)