1
1
@file:Suppress(" UnstableApiUsage" )
2
2
3
- import com.javiersc.semver.project.gradle.plugin.SemverExtension
4
3
import common.*
5
- import common.GithubAction
6
4
import common.Platform
7
5
import org.jetbrains.kotlin.gradle.utils.extendsFrom
8
6
@@ -17,7 +15,7 @@ val muslEnabled = project.hasProperty("musl")
17
15
val reportsEnabled = project.hasProperty(" reports" )
18
16
val agentEnabled = project.hasProperty(" agent" )
19
17
20
- val semverExtn = extensions.getByType<SemverExtension >()
18
+ // val semverExtn = extensions.getByType<SemverExtension>()
21
19
22
20
graalvmNative {
23
21
binaries.all {
@@ -35,30 +33,29 @@ graalvmNative {
35
33
add(" --enable-https" )
36
34
add(" --install-exit-handlers" )
37
35
add(" -R:MaxHeapSize=64m" )
38
- add(" -EBUILD_NUMBER=${project.version} " )
39
- add(" -ECOMMIT_HASH=${semverExtn.commits.get().first().hash} " )
40
-
41
36
add(" -H:+UnlockExperimentalVMOptions" )
42
- add(" -H:+VectorAPISupport" )
43
37
add(" -H:+CompactingOldGen" )
44
38
add(" -H:+ReportExceptionStackTraces" )
45
39
add(" -O3" )
46
40
// add("-Os")
47
41
// add("-H:+ForeignAPISupport")
48
- // add("--features=graal.aot.RuntimeFeature ")
42
+ // add("-H:+VectorAPISupport ")
49
43
// add("-H:+AddAllCharsets")
50
44
// add("-H:+IncludeAllLocales")
51
45
// add("-H:+IncludeAllTimeZones")
52
46
// add("-H:IncludeResources=.*(message\\.txt|\\app.properties)\$")
47
+ // add("--features=graal.aot.RuntimeFeature")
53
48
// add("--enable-url-protocols=http,https,jar,unix")
54
49
// add("--initialize-at-build-time=kotlinx,kotlin,org.slf4j")
50
+ // add("-EBUILD_NUMBER=${project.version}")
51
+ // add("-ECOMMIT_HASH=${semverExtn.commits.get().first().hash}")
55
52
56
53
val monOpts = buildString {
57
54
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
+ // }
62
59
}
63
60
add(" --enable-monitoring=$monOpts " )
64
61
@@ -104,8 +101,7 @@ graalvmNative {
104
101
// }
105
102
106
103
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" )
109
105
javaLauncher = javaToolchains.launcherFor { configureJvmToolchain(project) }
110
106
}
111
107
@@ -120,7 +116,7 @@ graalvmNative {
120
116
}
121
117
122
118
metadataRepository { enabled = true }
123
- toolchainDetection = false
119
+ toolchainDetection = true
124
120
}
125
121
126
122
/* *
0 commit comments