mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 02:20:39 +00:00
Use jvm running gradle if it's compatible with targetCompatibility
This commit is contained in:
parent
67012b40b1
commit
8b355918e8
1 changed files with 4 additions and 2 deletions
|
@ -12,8 +12,10 @@ java {
|
||||||
sourceCompatibility = JavaVersion.VERSION_21
|
sourceCompatibility = JavaVersion.VERSION_21
|
||||||
targetCompatibility = JavaVersion.VERSION_21
|
targetCompatibility = JavaVersion.VERSION_21
|
||||||
|
|
||||||
toolchain {
|
if (!JavaVersion.current().isCompatibleWith(targetCompatibility)) {
|
||||||
languageVersion.set(JavaLanguageVersion.of(21))
|
toolchain {
|
||||||
|
languageVersion.set(JavaLanguageVersion.of(targetCompatibility.majorVersion))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue