1
0
Fork 0
mirror of https://github.com/bitcoinj/bitcoinj.git synced 2025-03-13 11:36:15 +01:00

wallettemplate: build for JDK 21+

This commit is contained in:
Sean Gilligan 2025-02-28 11:24:21 -08:00
parent aa9eaf9af7
commit 57d385d9e5
2 changed files with 7 additions and 3 deletions

View file

@ -35,8 +35,12 @@ project(':wallettool').name = 'bitcoinj-wallettool'
include 'examples'
project(':examples').name = 'bitcoinj-examples'
include 'wallettemplate'
project(':wallettemplate').name = 'bitcoinj-wallettemplate'
if (JavaVersion.current().getMajorVersion().toInteger() >= 21) {
include 'wallettemplate'
project(':wallettemplate').name = 'bitcoinj-wallettemplate'
} else {
System.err.println "Skipping wallettemplate, requires Java 21+, currently running Java ${JavaVersion.current()}"
}
include 'integration-test'
project(':integration-test').name = 'bitcoinj-integration-test'

View file

@ -24,7 +24,7 @@ javafx {
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
options.release = 17
options.release = 21
options.compilerArgs << '-Xlint:deprecation'
}