fix(bugfix): fixed some issues
This commit is contained in:
@@ -6,11 +6,11 @@ plugins {
|
||||
application
|
||||
id("com.github.gmazzo.buildconfig") version "4.1.2"
|
||||
id("com.gradleup.shadow") version "9.2.2"
|
||||
id("org.graalvm.buildtools.native") version "0.9.28"
|
||||
id("org.graalvm.buildtools.native") version "0.10.3"
|
||||
}
|
||||
|
||||
group = "io.notevc"
|
||||
version = "1.0.0"
|
||||
version = "1.0.1"
|
||||
|
||||
buildConfig {
|
||||
buildConfigField("String", "VERSION", "\"${project.version}\"")
|
||||
@@ -35,10 +35,8 @@ application {
|
||||
mainClass.set("io.notevc.NoteVCKt")
|
||||
}
|
||||
|
||||
|
||||
|
||||
tasks.shadowJar {
|
||||
archiveClassifier.set("") // This should remove the -all suffix
|
||||
archiveClassifier.set("")
|
||||
manifest {
|
||||
attributes(mapOf("Main-Class" to "io.notevc.NoteVCKt"))
|
||||
}
|
||||
@@ -50,9 +48,6 @@ graalvmNative {
|
||||
imageName.set("notevc")
|
||||
mainClass.set("io.notevc.NoteVCKt")
|
||||
|
||||
// Force it to use the shadowJar
|
||||
classpath.from(tasks.shadowJar.get().outputs.files)
|
||||
|
||||
buildArgs.addAll(listOf(
|
||||
"--no-fallback",
|
||||
"-H:+ReportExceptionStackTraces",
|
||||
@@ -74,9 +69,10 @@ tasks.withType<Test> {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
|
||||
tasks.nativeCompile {
|
||||
dependsOn(tasks.shadowJar)
|
||||
}
|
||||
// Remove this line - let GraalVM use the default classpath
|
||||
// tasks.nativeCompile {
|
||||
// dependsOn(tasks.shadowJar)
|
||||
// }
|
||||
|
||||
tasks.build {
|
||||
dependsOn(tasks.shadowJar)
|
||||
|
||||
Reference in New Issue
Block a user