mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 22:30:54 +01:00
This updates the GraalVM and Truffle libraries to 2024.1.2. This also updates the build logic to compile Java sources using Java 21, due to some compile-only dependencies within GraalVM/Truffle using class file version 65. However, the produced artifact is still compatible with Java 17. This also changes the Gradle build logic to use toolchains, and to test the Java libraries with JDK 17 and 21. One consequence of this change is that Truffle is no longer shaded within the fat jars. feat: support for jvm21+ toolchain feat: support for gradle toolchains feat: pass -PnativeArch=native to build with -march=native test: multi-jdk testing support test: support for jvm-test-suite plugin test: add tasks to run jpkl eval on multiple jdks test: make jdk exec tests respect multi-jdk flags and ranges fix: remove mrjar classes at >jvm17 from fatjars fix: use jdk21 to run the tests (needed for Unsafe.ensureInitialized) fix: truffle svm dependency is required after graalvm 24.0.0 fix: warnings for gvm flag usage, renamed truffle svm macro fix: build with --add-modules=jdk.unsupported where needed fix: don't use gu tool for modern graalvm versions fix: catch Throwable instead of deprecated-for-removal ThreadDeath chore: buildinfo changes for JVM targets, toolchains chore: enforce testing at exactly jdk21 chore: enforce build tooling at jdk21+ chore: bump graalvm/truffle libs → 24.1.2 chore: toolchains for buildSrc Signed-off-by: Sam Gammon <sam@elide.dev>
75 lines
1.6 KiB
Kotlin
75 lines
1.6 KiB
Kotlin
/*
|
|
* Copyright © 2024-2025 Apple Inc. and the Pkl project authors. All rights reserved.
|
|
*
|
|
* 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
|
|
*
|
|
* https://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.
|
|
*/
|
|
rootProject.name = "pkl"
|
|
|
|
include("bench")
|
|
|
|
include("docs")
|
|
|
|
include("stdlib")
|
|
|
|
include("pkl-cli")
|
|
|
|
include("pkl-codegen-java")
|
|
|
|
include("pkl-codegen-kotlin")
|
|
|
|
include("pkl-commons")
|
|
|
|
include("pkl-commons-cli")
|
|
|
|
include("pkl-commons-test")
|
|
|
|
include("pkl-config-java")
|
|
|
|
include("pkl-config-kotlin")
|
|
|
|
include("pkl-core")
|
|
|
|
include("pkl-doc")
|
|
|
|
include("pkl-gradle")
|
|
|
|
include("pkl-executor")
|
|
|
|
include("pkl-tools")
|
|
|
|
include("pkl-server")
|
|
|
|
pluginManagement {
|
|
repositories {
|
|
mavenCentral()
|
|
gradlePluginPortal()
|
|
}
|
|
}
|
|
|
|
plugins { id("org.gradle.toolchains.foojay-resolver-convention") version ("0.8.0") }
|
|
|
|
@Suppress("UnstableApiUsage") dependencyResolutionManagement { repositories { mavenCentral() } }
|
|
|
|
if (
|
|
gradle.startParameter.taskNames.contains("updateDependencyLocks") ||
|
|
gradle.startParameter.taskNames.contains("uDL")
|
|
) {
|
|
gradle.startParameter.isWriteDependencyLocks = true
|
|
}
|
|
|
|
for (prj in rootProject.children) {
|
|
prj.buildFileName = "${prj.name}.gradle.kts"
|
|
}
|
|
|
|
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
|