Skip to content

Commit 679db1b

Browse files
committed
chore: GraalVM 24 support
1 parent 359a497 commit 679db1b

File tree

6 files changed

+10
-22
lines changed

6 files changed

+10
-22
lines changed

README.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
[![GraalVM CE][graalvm_img]][graalvm_url]
55
[![Kotlin release][kt_img]][kt_url]
66
[![Style guide][ktlint_img]][ktlint_url]
7-
[![GraalVM Reachability][graalvm_reachability_img]][graalvm_reachability_url]
87

98
[GraalVM Native Image](https://www.graalvm.org/reference-manual/native-image/) of a kotlin/java app
109
and publish the platform binaries using GitHub action.
@@ -17,7 +16,7 @@ $ ./scripts/graalvm-ce-dev.sh
1716

1817
# Install GraalVM CE
1918
$ curl -s "https://get.sdkman.io" | bash
20-
$ sdk i java 21.0.2-graalce
19+
$ sdk i java 22.0.1-graalce
2120
```
2221

2322
### Build
@@ -57,7 +56,7 @@ $ java --enable-preview \
5756
$ jdeps -q \
5857
-R \
5958
--ignore-missing-deps \
60-
--multi-release=23 \
59+
--multi-release=24 \
6160
build/libs/native-image-playground-*-all.jar
6261

6362
# Build native image from modular jars
@@ -153,7 +152,7 @@ $ native-image \
153152

154153
[graalvm_url]: https://github.com/graalvm/graalvm-ce-dev-builds/releases/
155154

156-
[graalvm_img]: https://img.shields.io/github/v/release/graalvm/graalvm-ce-builds?color=125b6b&label=graalvm-ce-dev&logo=oracle&logoColor=d3eff5
155+
[graalvm_img]: https://img.shields.io/github/v/release/graalvm/graalvm-ce-dev-builds?color=125b6b&label=graalvm-ce-dev&logo=oracle&logoColor=d3eff5
157156

158157
[graalvm_reachability_url]: https://github.com/oracle/graalvm-reachability-metadata/tree/master/metadata
159158

gradle/build-logic/common-plugins/src/main/kotlin/plugins/graalvm.gradle.kts

+4
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ graalvmNative {
6565
// add("--enable-url-protocols=http,https,jar,unix")
6666
// add("--initialize-at-build-time=kotlinx,kotlin,org.slf4j")
6767

68+
// EA build options
69+
add("-H:+CompactingOldGen")
70+
add("-Os")
71+
6872
if (Platform.isLinux) {
6973
when {
7074
muslEnabled -> {

gradle/build-logic/common-plugins/src/main/kotlin/plugins/publishing.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ fun MavenPublication.configurePom() {
7979
pom {
8080
name = provider { "${project.group}:${project.name}" }
8181
description = provider { project.description }
82-
inceptionYear = "2023"
82+
inceptionYear = "2024"
8383
url = githubUrl
8484

8585
developers {

gradle/libs.versions.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[versions]
2-
java = "23"
2+
java = "24"
33
kotlin = "2.0.0"
44
kotlin-ksp = "2.0.0-1.0.22"
55
kotlin-jvmtarget = "22"

scripts/graalvm-ce-dev.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# set -u won't work for sdkman
44
set -e
55

6-
jdk_version=${1:-23}
6+
jdk_version=${1:-24}
77
extn="tar.gz"
88

99
# Find OS type

src/main/resources/logging.properties

-15
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,3 @@
1-
#
2-
# Copyright (c) 2022, 2023 Oracle and/or its affiliates.
3-
#
4-
# Licensed under the Apache License, Version 2.0 (the "License");
5-
# you may not use this file except in compliance with the License.
6-
# You may obtain a copy of the License at
7-
#
8-
# http://www.apache.org/licenses/LICENSE-2.0
9-
#
10-
# Unless required by applicable law or agreed to in writing, software
11-
# distributed under the License is distributed on an "AS IS" BASIS,
12-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
# See the License for the specific language governing permissions and
14-
# limitations under the License.
15-
#
161
handlers=java.util.logging.ConsoleHandler
172
java.util.logging.SimpleFormatter.format=%1$tY.%1$tm.%1$td %1$tH:%1$tM:%1$tS.%1$tL %5$s%6$s%n
183
# Global logging level. Can be overridden by specific loggers

0 commit comments

Comments
 (0)