-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
40 lines (36 loc) · 947 Bytes
/
build.gradle
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
33
34
35
36
37
38
39
40
plugins {
id 'java'
id 'org.graalvm.buildtools.native' version '0.10.1'
}
dependencies {
implementation 'jakarta.annotation:jakarta.annotation-api:2.1.1'
implementation 'io.prometheus:prometheus-metrics-core:1.0.0'
implementation 'io.prometheus:prometheus-metrics-instrumentation-jvm:1.0.0'
implementation 'io.prometheus:prometheus-metrics-exporter-httpserver:1.0.0'
implementation 'commons-io:commons-io:2.16.0'
testImplementation 'junit:junit:4.13'
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
test {
useJUnit()
}
graalvmNative {
toolchainDetection = true
binaries {
main {
imageName = "httpd_log_exporter"
mainClass = "com.vivimice.httpdlogexporter.App"
buildArgs.add("-O4")
}
test {
buildArgs.add("-O0")
}
}
binaries.all {
buildArgs.add("--verbose")
}
}