Skip to content

Commit

Permalink
chore: GraalVM 24 support
Browse files Browse the repository at this point in the history
  • Loading branch information
sureshg committed Jun 15, 2024
1 parent 359a497 commit 679db1b
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 22 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
[![GraalVM CE][graalvm_img]][graalvm_url]
[![Kotlin release][kt_img]][kt_url]
[![Style guide][ktlint_img]][ktlint_url]
[![GraalVM Reachability][graalvm_reachability_img]][graalvm_reachability_url]

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

# Install GraalVM CE
$ curl -s "https://get.sdkman.io" | bash
$ sdk i java 21.0.2-graalce
$ sdk i java 22.0.1-graalce
```

### Build
Expand Down Expand Up @@ -57,7 +56,7 @@ $ java --enable-preview \
$ jdeps -q \
-R \
--ignore-missing-deps \
--multi-release=23 \
--multi-release=24 \
build/libs/native-image-playground-*-all.jar

# Build native image from modular jars
Expand Down Expand Up @@ -153,7 +152,7 @@ $ native-image \

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

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

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ graalvmNative {
// add("--enable-url-protocols=http,https,jar,unix")
// add("--initialize-at-build-time=kotlinx,kotlin,org.slf4j")

// EA build options
add("-H:+CompactingOldGen")
add("-Os")

if (Platform.isLinux) {
when {
muslEnabled -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ fun MavenPublication.configurePom() {
pom {
name = provider { "${project.group}:${project.name}" }
description = provider { project.description }
inceptionYear = "2023"
inceptionYear = "2024"
url = githubUrl

developers {
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[versions]
java = "23"
java = "24"
kotlin = "2.0.0"
kotlin-ksp = "2.0.0-1.0.22"
kotlin-jvmtarget = "22"
Expand Down
2 changes: 1 addition & 1 deletion scripts/graalvm-ce-dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# set -u won't work for sdkman
set -e

jdk_version=${1:-23}
jdk_version=${1:-24}
extn="tar.gz"

# Find OS type
Expand Down
15 changes: 0 additions & 15 deletions src/main/resources/logging.properties
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
#
# Copyright (c) 2022, 2023 Oracle and/or its affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
handlers=java.util.logging.ConsoleHandler
java.util.logging.SimpleFormatter.format=%1$tY.%1$tm.%1$td %1$tH:%1$tM:%1$tS.%1$tL %5$s%6$s%n
# Global logging level. Can be overridden by specific loggers
Expand Down

0 comments on commit 679db1b

Please sign in to comment.