build.gradle: Update examples and tools submodules to JDK 11

This commit is contained in:
Sean Gilligan 2022-01-01 16:06:00 -08:00 committed by Andreas Schildbach
parent dda89aad57
commit 0d67977ca1
3 changed files with 5 additions and 5 deletions

View File

@ -11,7 +11,7 @@ The bitcoinj library is a Java implementation of the Bitcoin protocol, which all
### Technologies ### Technologies
* Java 8+ (needs Java 8 API or Android 7.0 API, compiles to Java 8 bytecode) and Gradle 4.4+ for the `core` module * Java 8+ (needs Java 8 API or Android 7.0 API, compiles to Java 8 bytecode) and Gradle 4.4+ for the `core` module
* Java 8+ and Gradle 4.4+ for `tools` and `examples` * Java 11+ and Gradle 4.4+ for `tools` and `examples`
* Java 11+ and Gradle 4.10+ for the JavaFX-based `wallettemplate` * Java 11+ and Gradle 4.10+ for the JavaFX-based `wallettemplate`
* [Gradle](https://gradle.org/) - for building the project * [Gradle](https://gradle.org/) - for building the project
* [Google Protocol Buffers](https://github.com/google/protobuf) - for use with serialization and hardware communications * [Google Protocol Buffers](https://github.com/google/protobuf) - for use with serialization and hardware communications

View File

@ -10,11 +10,11 @@ dependencies {
implementation 'org.fusesource.leveldbjni:leveldbjni-all:1.8' implementation 'org.fusesource.leveldbjni:leveldbjni-all:1.8'
} }
sourceCompatibility = 8 sourceCompatibility = 11
compileJava.options.encoding = 'UTF-8' compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8' compileTestJava.options.encoding = 'UTF-8'
javadoc.options.encoding = 'UTF-8' javadoc.options.encoding = 'UTF-8'
compileJava { compileJava {
options.compilerArgs.addAll(['--release', '8']) options.compilerArgs.addAll(['--release', '11'])
} }

View File

@ -10,13 +10,13 @@ dependencies {
implementation 'org.slf4j:slf4j-jdk14:1.7.32' implementation 'org.slf4j:slf4j-jdk14:1.7.32'
} }
sourceCompatibility = 8 sourceCompatibility = 11
compileJava.options.encoding = 'UTF-8' compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8' compileTestJava.options.encoding = 'UTF-8'
javadoc.options.encoding = 'UTF-8' javadoc.options.encoding = 'UTF-8'
compileJava { compileJava {
options.compilerArgs.addAll(['--release', '8']) options.compilerArgs.addAll(['--release', '11'])
} }
mainClassName = "org.bitcoinj.tools.WalletTool" mainClassName = "org.bitcoinj.tools.WalletTool"