Skip to content

Commit

Permalink
update graalvm-related configs and make some fix for freemarker (via #54
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ddemin authored Aug 23, 2023
1 parent 611b5b9 commit d9d8219
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 8 deletions.
15 changes: 8 additions & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
java
id("com.palantir.graal") version("0.12.0")
id("org.graalvm.buildtools.native") version "0.9.24"
}

group = "org.example"
Expand All @@ -22,12 +22,13 @@ tasks.withType(JavaCompile::class) {
options.encoding = "UTF-8"
}

graal {
graalVersion("22.2.0")
javaVersion("11")

mainClass("io.eroshenkoam.xcresults.XCResults")
outputName("xcresults")
graalvmNative {
toolchainDetection.set(true)
binaries {
named("main") {
mainClass.set("io.eroshenkoam.xcresults.XCResults")
}
}
}

repositories {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
version=3.18-SNAPSHOT
# Graal VM
graalVersion=19.2.0
graalVersion=23.0.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"resources": {
"includes": [
{
"pattern": ".*\\.properties"
}
]
}
}
9 changes: 9 additions & 0 deletions src/main/resources/META-INF/native-image/resource-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"resources": {
"includes": [
{
"pattern": "templates/.*\\.ftl"
}
]
}
}

0 comments on commit d9d8219

Please sign in to comment.