build.gradle: produce Java 8 bytecode for the core module

It will still only use the Java 7 API.
This commit is contained in:
Andreas Schildbach 2021-09-28 16:18:13 +02:00
parent d6851edb2f
commit e9b42eae6d
2 changed files with 2 additions and 1 deletions

View File

@ -10,7 +10,7 @@ The bitcoinj library is a Java implementation of the Bitcoin protocol, which all
### Technologies ### Technologies
* Java 7+ and Gradle 4.4+ for the `core` module * Java 8+ (Java 7 API, Java 8 bytecode) and Gradle 4.4+ for the `core` module
* Java 8+ and Gradle 4.4+ for `tools` and `examples` * Java 8+ 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

View File

@ -26,6 +26,7 @@ dependencies {
} }
sourceCompatibility = 1.7 sourceCompatibility = 1.7
targetCompatibility = 1.8
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'