gradle: add deps in jar
All checks were successful
Linux arm64 / Build (push) Successful in 42s

This commit is contained in:
2025-05-26 21:42:52 +02:00
parent 86ea62614b
commit 24e0fbc84c

View File

@@ -16,7 +16,7 @@ repositories {
mavenCentral() mavenCentral()
} }
def os = System.getProperty("os.name").toLowerCase() def os = "linux"
def lwjgl_version = "3.3.6" def lwjgl_version = "3.3.6"
def lwjgl_natives = "natives-$os" def lwjgl_natives = "natives-$os"
def imgui_version = "1.87.0" def imgui_version = "1.87.0"
@@ -47,12 +47,20 @@ application {
applicationName = "3DChess" applicationName = "3DChess"
} }
// Add libraries into the final jar
jar { jar {
archiveBaseName = rootProject.getName() + "-" + os
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest { manifest {
attributes 'Main-Class': application.mainClass attributes "Main-Class": application.mainClass
}
from {
configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) }
} }
} }
run { run {
standardInput = System.in standardInput = System.in
} }