mirror of
https://github.com/google/nomulus
synced 2025-12-23 06:15:42 +00:00
Build Java8-compatible release (#1586)
* Build Java8-compatible release Use the new options.release Gradle property to make sure builds are compatible with Java 8, which is the runtime on Appengine. This new property replaces sourceCompatibility, targetCompatibility, and bootclasspath (wasn't previously set, which is the reason why we couldn't detect Java9 api usage when building).
This commit is contained in:
@@ -128,13 +128,6 @@ tasks.withType(JavaCompile).configureEach {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: Change source version to 11 after target version is changed to 11 and
|
||||
// once we figure out what's wrong with Dagger compilation with source version
|
||||
// >8.
|
||||
sourceCompatibility = '8'
|
||||
// TODO: Change target version to 11. Source version can stay at 8.
|
||||
targetCompatibility = '8'
|
||||
|
||||
compileJava { options.encoding = "UTF-8" }
|
||||
compileTestJava { options.encoding = "UTF-8" }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user