11@file:Suppress(" UnstableApiUsage" )
22
3- import com.javiersc.semver.project.gradle.plugin.SemverExtension
43import common.*
5- import common.GithubAction
64import common.Platform
75import org.jetbrains.kotlin.gradle.utils.extendsFrom
86
@@ -17,7 +15,7 @@ val muslEnabled = project.hasProperty("musl")
1715val reportsEnabled = project.hasProperty(" reports" )
1816val agentEnabled = project.hasProperty(" agent" )
1917
20- val semverExtn = extensions.getByType<SemverExtension >()
18+ // val semverExtn = extensions.getByType<SemverExtension>()
2119
2220graalvmNative {
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