Skip to content

Commit aa94742

Browse files
committed
Cleanup
1 parent 3f5d051 commit aa94742

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

build.gradle

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@ description = 'Java client library for SEER*API'
1515

1616
println "Starting build using ${Jvm.current()}"
1717

18-
// UTF-8 for all compilation tasks
19-
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
20-
21-
// fail the build if there are compiler warnings
2218
tasks.withType(JavaCompile) {
23-
options.compilerArgs << "-Xlint:all" << "-Xlint:-processing" << "-Xlint:-serial" << "-Werror"
19+
options.encoding = 'UTF-8'
20+
options.compilerArgs << "-Xlint:all" << "-Xlint:-serial" << "-Werror"
21+
}
22+
23+
java {
24+
sourceCompatibility = JavaVersion.VERSION_1_8
25+
targetCompatibility = JavaVersion.VERSION_1_8
2426
}
2527

2628
repositories {

0 commit comments

Comments
 (0)