mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-24 21:29:00 +00:00
42 lines
922 B
Groovy
42 lines
922 B
Groovy
plugins {
|
|
id 'java'
|
|
id "me.champeau.jmh" version "0.6.6"
|
|
}
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion.set(JavaLanguageVersion.of(22))
|
|
}
|
|
}
|
|
|
|
apply from: "$rootProject.projectDir/srcsets.gradle"
|
|
|
|
dependencies {
|
|
implementation libs.bundles.slf4j
|
|
|
|
implementation libs.notnull
|
|
implementation libs.commons.lang3
|
|
implementation libs.fastutil
|
|
implementation libs.lz4
|
|
implementation libs.guava
|
|
|
|
testImplementation libs.bundles.slf4j.test
|
|
testImplementation libs.bundles.junit
|
|
testImplementation libs.mockito
|
|
}
|
|
|
|
jmh {
|
|
jvmArgs = [ "--enable-preview" ]
|
|
}
|
|
tasks.withType(me.champeau.jmh.WithJavaToolchain).configureEach {
|
|
javaLauncher.set(javaToolchains.launcherFor {
|
|
languageVersion.set(JavaLanguageVersion.of(22))
|
|
})
|
|
}
|
|
tasks.withType(me.champeau.jmh.JmhBytecodeGeneratorTask).configureEach {
|
|
jvmArgs = ["--enable-preview"]
|
|
}
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|