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