fix(bugfix): fixed some issues

This commit is contained in:
darwincereska
2025-11-10 15:18:55 -05:00
parent 3ae428ba8d
commit a3c1489125
4 changed files with 58 additions and 69 deletions

View File

@@ -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)