Skip to content

Commit

Permalink
Fix missing properties
Browse files Browse the repository at this point in the history
  • Loading branch information
ymengesha committed Oct 6, 2023
1 parent 89c1ea5 commit fdaa2e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,8 @@ tasks.named("forbiddenApisIntegrationTest") { enabled = false }
//checks for java installations prior the execution.

cliNative {
graalVersion.set(property("graal.version").toString())
javaVersion.set(property("java-native.version").toString())
graalVersion.set(libs.versions.graal)
javaVersion.set(libs.versions.javaNative)
}

//reflection configuration files are currently created manually with the command: ./gradlew -Pagent agentMainRun --stacktrace
Expand All @@ -388,7 +388,7 @@ val agentMainRun by tasks.registering(JavaExec::class) {
group = "native"

val launcher = javaToolchains.launcherFor {
languageVersion.set(JavaLanguageVersion.of(project.property("java-native.version").toString()))
languageVersion.set(JavaLanguageVersion.of(libs.versions.javaNative.get()))
vendor.set(JvmVendorSpec.GRAAL_VM)

}
Expand All @@ -399,7 +399,7 @@ val agentMainRun by tasks.registering(JavaExec::class) {

val nativeImageOptions by graalvmNative.binaries.named("main") {
javaLauncher.set(javaToolchains.launcherFor {
languageVersion.set(JavaLanguageVersion.of(property("java-native.version").toString()))
languageVersion.set(JavaLanguageVersion.of(libs.versions.javaNative.get()))
vendor.set(JvmVendorSpec.GRAAL_VM)
})
buildArgs.add("-Dio.netty.noUnsafe=true")
Expand Down

0 comments on commit fdaa2e4

Please sign in to comment.