We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 346a838 commit c158c38Copy full SHA for c158c38
1 file changed
build.gradle.kts
@@ -1,5 +1,4 @@
1
import java.util.*
2
-import org.mikeneck.graalvm.GenerateNativeImageConfigTask
3
4
plugins {
5
id("org.mikeneck.graalvm-native-image") version "v1.4.0"
@@ -81,9 +80,14 @@ tasks.create("createProperties") {
81
80
}
82
tasks["processResources"].dependsOn("createProperties")
83
+configurations {
84
+ create("empty")
85
+}
86
+
87
nativeImage {
88
dependsOn("shadowJar")
- runtimeClasspath = configurations.shadow.get()
89
+ setClasspath(File(project.buildDir, "libs/spp-cli-$version.jar"))
90
+ runtimeClasspath = configurations.getByName("empty")
91
graalVmHome = System.getenv("GRAALVM_HOME")
92
buildType { build ->
93
build.executable(main = "spp.cli.Main")
0 commit comments