diff --git a/README.md b/README.md index dd592d6..13cdfe9 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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 @@ -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 @@ -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 diff --git a/gradle/build-logic/common-plugins/src/main/kotlin/plugins/graalvm.gradle.kts b/gradle/build-logic/common-plugins/src/main/kotlin/plugins/graalvm.gradle.kts index bad08fe..e2d633c 100644 --- a/gradle/build-logic/common-plugins/src/main/kotlin/plugins/graalvm.gradle.kts +++ b/gradle/build-logic/common-plugins/src/main/kotlin/plugins/graalvm.gradle.kts @@ -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 -> { diff --git a/gradle/build-logic/common-plugins/src/main/kotlin/plugins/publishing.gradle.kts b/gradle/build-logic/common-plugins/src/main/kotlin/plugins/publishing.gradle.kts index 666d5cb..525221e 100644 --- a/gradle/build-logic/common-plugins/src/main/kotlin/plugins/publishing.gradle.kts +++ b/gradle/build-logic/common-plugins/src/main/kotlin/plugins/publishing.gradle.kts @@ -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 { diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index d916c79..b92fc62 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,5 +1,5 @@ [versions] -java = "23" +java = "24" kotlin = "2.0.0" kotlin-ksp = "2.0.0-1.0.22" kotlin-jvmtarget = "22" diff --git a/scripts/graalvm-ce-dev.sh b/scripts/graalvm-ce-dev.sh index ee208e0..39e3de7 100755 --- a/scripts/graalvm-ce-dev.sh +++ b/scripts/graalvm-ce-dev.sh @@ -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 diff --git a/src/main/resources/logging.properties b/src/main/resources/logging.properties index 135f981..00037aa 100644 --- a/src/main/resources/logging.properties +++ b/src/main/resources/logging.properties @@ -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