diff --git a/lwjgl3/build.gradle b/lwjgl3/build.gradle index a3b20ee..f1800e3 100644 --- a/lwjgl3/build.gradle +++ b/lwjgl3/build.gradle @@ -135,3 +135,11 @@ startScripts.classpath = project.tasks.jar.outputs.files if(enableGraalNative == 'true') { apply from: file("nativeimage.gradle") } +tasks.register("printJarPath") { + def jarTask = tasks.named("jar").get() + def jarName = jarTask.archiveFile.get().asFile + def logFile = file("./jar-info.txt") + + logFile.text = "${jarName.absolutePath}" + println "Logged JAR name to: ${jarName.absolutePath}" +}