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

... also move some common configuration into the root build.gradle-file. Support for JDK21 in lombok is a bit sketchy at the moment, but it seems to work. This upgrade is kind of important as the new index construction really benefits from Arena based lifecycle control over off-heap memory.
32 lines
596 B
Groovy
32 lines
596 B
Groovy
plugins {
|
|
id 'java'
|
|
|
|
|
|
id 'jvm-test-suite'
|
|
}
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion.set(JavaLanguageVersion.of(21))
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation project(':code:common:service-discovery')
|
|
implementation project(':code:common:service-client')
|
|
}
|
|
|
|
test {
|
|
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
|
|
maxHeapSize = "8G"
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
task fastTests(type: Test) {
|
|
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
|
|
maxHeapSize = "8G"
|
|
useJUnitPlatform {
|
|
excludeTags "slow"
|
|
}
|
|
}
|