Skip to content

Commit cf58f8b

Browse files
committed
chore: graalvm plugin changes
1 parent ff410dc commit cf58f8b

File tree

2 files changed

+12
-16
lines changed

2 files changed

+12
-16
lines changed

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ org-name = "suresh.dev"
2020
org-url = "https://suresh.dev"
2121

2222
# Gradle Dependencies Versions
23-
bc-plugins = "1.15.0"
23+
bc-plugins = "1.16.0"
2424
kotlinx-kover = "0.9.1"
2525
kotlinx-bcv = "0.17.0"
2626
kotlin-dokka = "2.0.0"

plugins/project/src/main/kotlin/dev.suresh.plugin.graalvm.gradle.kts

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
@file:Suppress("UnstableApiUsage")
22

3-
import com.javiersc.semver.project.gradle.plugin.SemverExtension
43
import common.*
5-
import common.GithubAction
64
import common.Platform
75
import org.jetbrains.kotlin.gradle.utils.extendsFrom
86

@@ -17,7 +15,7 @@ val muslEnabled = project.hasProperty("musl")
1715
val reportsEnabled = project.hasProperty("reports")
1816
val agentEnabled = project.hasProperty("agent")
1917

20-
val semverExtn = extensions.getByType<SemverExtension>()
18+
// val semverExtn = extensions.getByType<SemverExtension>()
2119

2220
graalvmNative {
2321
binaries.all {
@@ -35,30 +33,29 @@ graalvmNative {
3533
add("--enable-https")
3634
add("--install-exit-handlers")
3735
add("-R:MaxHeapSize=64m")
38-
add("-EBUILD_NUMBER=${project.version}")
39-
add("-ECOMMIT_HASH=${semverExtn.commits.get().first().hash}")
40-
4136
add("-H:+UnlockExperimentalVMOptions")
42-
add("-H:+VectorAPISupport")
4337
add("-H:+CompactingOldGen")
4438
add("-H:+ReportExceptionStackTraces")
4539
add("-O3")
4640
// add("-Os")
4741
// add("-H:+ForeignAPISupport")
48-
// add("--features=graal.aot.RuntimeFeature")
42+
// add("-H:+VectorAPISupport")
4943
// add("-H:+AddAllCharsets")
5044
// add("-H:+IncludeAllLocales")
5145
// add("-H:+IncludeAllTimeZones")
5246
// add("-H:IncludeResources=.*(message\\.txt|\\app.properties)\$")
47+
// add("--features=graal.aot.RuntimeFeature")
5348
// add("--enable-url-protocols=http,https,jar,unix")
5449
// add("--initialize-at-build-time=kotlinx,kotlin,org.slf4j")
50+
// add("-EBUILD_NUMBER=${project.version}")
51+
// add("-ECOMMIT_HASH=${semverExtn.commits.get().first().hash}")
5552

5653
val monOpts = buildString {
5754
append("heapdump,jfr,jvmstat,threaddump,nmt")
58-
if (Platform.isUnix) {
59-
append(",")
60-
append("jcmd")
61-
}
55+
// if (Platform.isUnix) {
56+
// append(",")
57+
// append("jcmd")
58+
// }
6259
}
6360
add("--enable-monitoring=$monOpts")
6461

@@ -104,8 +101,7 @@ graalvmNative {
104101
// }
105102

106103
jvmArgs = jvmArguments()
107-
systemProperties =
108-
mapOf("java.awt.headless" to "false", "jdk.incubator.vector.VECTOR_ACCESS_OOB_CHECK" to "0")
104+
systemProperties = mapOf("java.awt.headless" to "false")
109105
javaLauncher = javaToolchains.launcherFor { configureJvmToolchain(project) }
110106
}
111107

@@ -120,7 +116,7 @@ graalvmNative {
120116
}
121117

122118
metadataRepository { enabled = true }
123-
toolchainDetection = false
119+
toolchainDetection = true
124120
}
125121

126122
/**

0 commit comments

Comments
 (0)