-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
34 lines (27 loc) · 932 Bytes
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
plugins {
id("java-library")
id("me.champeau.jmh") version "0.6.8"
}
group = "fan.zhuyi.swisstable"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation("org.jetbrains:annotations:23.1.0")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.0")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.9.0")
jmhImplementation("org.openjdk.jmh:jmh-core:1.36")
jmhImplementation("org.openjdk.jmh:jmh-generator-annprocess:1.36")
jmhAnnotationProcessor("org.openjdk.jmh:jmh-generator-annprocess:1.36")
}
tasks.getByName<Test>("test") {
useJUnitPlatform()
jvmArgs("--enable-preview")
jvmArgs("--add-modules", "jdk.incubator.vector")
}
tasks.withType<JavaCompile> {
options.compilerArgs?.plusAssign("--enable-preview")
options.compilerArgs?.plusAssign("--add-modules")
options.compilerArgs?.plusAssign("jdk.incubator.vector")
}