mirror of
https://github.com/AsamK/signal-cli.git
synced 2026-07-28 00:49:24 +00:00
Set same toolchain in lib module as in main module
This commit is contained in:
parent
ba2214d8c7
commit
f1de69d7ff
@ -7,8 +7,10 @@ java {
|
||||
sourceCompatibility = JavaVersion.VERSION_21
|
||||
targetCompatibility = JavaVersion.VERSION_21
|
||||
|
||||
toolchain {
|
||||
languageVersion.set(JavaLanguageVersion.of(21))
|
||||
if (!JavaVersion.current().isCompatibleWith(targetCompatibility)) {
|
||||
toolchain {
|
||||
languageVersion.set(JavaLanguageVersion.of(targetCompatibility.majorVersion))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user