2023-03-04 12:19:01 +00:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
2023-03-21 15:02:31 +00:00
|
|
|
id "me.champeau.jmh" version "0.6.6"
|
2023-03-04 12:19:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
java {
|
|
|
|
toolchain {
|
2024-04-24 11:54:04 +00:00
|
|
|
languageVersion.set(JavaLanguageVersion.of(rootProject.ext.jvmVersion))
|
2023-03-04 12:19:01 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-05-13 16:38:43 +00:00
|
|
|
|
2024-02-23 15:13:40 +00:00
|
|
|
apply from: "$rootProject.projectDir/srcsets.gradle"
|
|
|
|
|
2023-03-04 12:19:01 +00:00
|
|
|
dependencies {
|
|
|
|
implementation libs.bundles.slf4j
|
|
|
|
|
|
|
|
implementation libs.notnull
|
|
|
|
implementation libs.commons.lang3
|
|
|
|
implementation libs.fastutil
|
|
|
|
implementation libs.lz4
|
2023-04-20 13:28:09 +00:00
|
|
|
implementation libs.guava
|
2023-03-04 12:19:01 +00:00
|
|
|
|
2024-05-13 16:38:43 +00:00
|
|
|
implementation project(':code:libraries:array:cpp')
|
|
|
|
|
2023-03-04 12:19:01 +00:00
|
|
|
testImplementation libs.bundles.slf4j.test
|
|
|
|
testImplementation libs.bundles.junit
|
|
|
|
testImplementation libs.mockito
|
2024-07-27 09:44:13 +00:00
|
|
|
|
|
|
|
testImplementation project(':code:libraries:test-helpers')
|
2023-03-04 12:19:01 +00:00
|
|
|
}
|
|
|
|
|
2023-09-23 09:01:43 +00:00
|
|
|
jmh {
|
|
|
|
jvmArgs = [ "--enable-preview" ]
|
|
|
|
}
|
|
|
|
tasks.withType(me.champeau.jmh.WithJavaToolchain).configureEach {
|
|
|
|
javaLauncher.set(javaToolchains.launcherFor {
|
2024-04-24 11:54:04 +00:00
|
|
|
languageVersion.set(JavaLanguageVersion.of(rootProject.ext.jvmVersion))
|
2023-09-23 09:01:43 +00:00
|
|
|
})
|
|
|
|
}
|
|
|
|
tasks.withType(me.champeau.jmh.JmhBytecodeGeneratorTask).configureEach {
|
|
|
|
jvmArgs = ["--enable-preview"]
|
|
|
|
}
|
2023-03-04 12:19:01 +00:00
|
|
|
test {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|