mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 21:18:58 +00:00

Roll back to JDK 21 for now, and make Java version configurable in the root build.gradle The project has run into no less than three distinct show-stopping bugs in JDK22, across multiple vendors, and gradle still doesn't fully support it, meaning you need multiple JDK versions installed.
33 lines
712 B
Groovy
33 lines
712 B
Groovy
plugins {
|
|
id 'java'
|
|
id 'io.freefair.lombok'
|
|
}
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion.set(JavaLanguageVersion.of(rootProject.ext.jvmVersion))
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation libs.jsoup
|
|
implementation libs.notnull
|
|
implementation libs.bundles.gson
|
|
implementation libs.zstd
|
|
implementation libs.bundles.slf4j
|
|
|
|
implementation libs.lombok
|
|
testImplementation libs.lombok
|
|
annotationProcessor libs.lombok
|
|
|
|
lombok libs.lombok // prevent plugin from downgrading the version to something incompatible with '19
|
|
|
|
implementation project(':code:libraries:blocking-thread-pool')
|
|
|
|
implementation project(':third-party:openzim')
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|