Skip to content

Commit c158c38

Browse files
committed
set classpath
1 parent 346a838 commit c158c38

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

build.gradle.kts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import java.util.*
2-
import org.mikeneck.graalvm.GenerateNativeImageConfigTask
32

43
plugins {
54
id("org.mikeneck.graalvm-native-image") version "v1.4.0"
@@ -81,9 +80,14 @@ tasks.create("createProperties") {
8180
}
8281
tasks["processResources"].dependsOn("createProperties")
8382

83+
configurations {
84+
create("empty")
85+
}
86+
8487
nativeImage {
8588
dependsOn("shadowJar")
86-
runtimeClasspath = configurations.shadow.get()
89+
setClasspath(File(project.buildDir, "libs/spp-cli-$version.jar"))
90+
runtimeClasspath = configurations.getByName("empty")
8791
graalVmHome = System.getenv("GRAALVM_HOME")
8892
buildType { build ->
8993
build.executable(main = "spp.cli.Main")

0 commit comments

Comments
 (0)