2023-03-04 13:19:01 +01:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
2023-03-21 16:02:31 +01:00
|
|
|
id "me.champeau.jmh" version "0.6.6"
|
2023-03-04 13:19:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
java {
|
|
|
|
toolchain {
|
2023-09-23 11:01:43 +02:00
|
|
|
languageVersion.set(JavaLanguageVersion.of(21))
|
2023-03-04 13:19:01 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2023-03-12 10:04:48 +01:00
|
|
|
implementation project(':third-party:uppend')
|
2023-03-04 13:19:01 +01:00
|
|
|
|
|
|
|
implementation libs.bundles.slf4j
|
|
|
|
|
|
|
|
implementation libs.notnull
|
|
|
|
implementation libs.commons.lang3
|
|
|
|
implementation libs.fastutil
|
|
|
|
implementation libs.lz4
|
2023-04-20 15:28:09 +02:00
|
|
|
implementation libs.guava
|
2023-03-04 13:19:01 +01:00
|
|
|
|
|
|
|
testImplementation libs.bundles.slf4j.test
|
|
|
|
testImplementation libs.bundles.junit
|
|
|
|
testImplementation libs.mockito
|
|
|
|
}
|
|
|
|
|
2023-09-23 11:01:43 +02:00
|
|
|
jmh {
|
|
|
|
jvmArgs = [ "--enable-preview" ]
|
|
|
|
}
|
|
|
|
tasks.withType(me.champeau.jmh.WithJavaToolchain).configureEach {
|
|
|
|
javaLauncher.set(javaToolchains.launcherFor {
|
|
|
|
languageVersion.set(JavaLanguageVersion.of(21))
|
|
|
|
})
|
|
|
|
}
|
|
|
|
tasks.withType(me.champeau.jmh.JmhBytecodeGeneratorTask).configureEach {
|
|
|
|
jvmArgs = ["--enable-preview"]
|
|
|
|
}
|
2023-03-04 13:19:01 +01:00
|
|
|
test {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|