From e42251a836b1a08c419745eef6fc46bfc0002c1e Mon Sep 17 00:00:00 2001 From: SerpentSpirale Date: Mon, 14 Mar 2022 22:26:40 +0100 Subject: [PATCH] Auto update lwjgl jar --- jre_lwjgl3glfw/build.gradle | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/jre_lwjgl3glfw/build.gradle b/jre_lwjgl3glfw/build.gradle index ac7a70846..52c7dde56 100644 --- a/jre_lwjgl3glfw/build.gradle +++ b/jre_lwjgl3glfw/build.gradle @@ -2,12 +2,24 @@ apply plugin: 'java' apply plugin: 'eclipse' group = 'org.lwjgl.glfw' -version = '3.2.3' -sourceCompatibility = 1.8 -targetCompatibility = 1.8 +//version = '3.2.3' +//sourceCompatibility = 1.8 +//targetCompatibility = 1.8 jar { - baseName = project.name + //baseName = project.name + baseName = "lwjgl-glfw-classes" + destinationDirectory.set(file("../app_pojavlauncher/src/main/assets/components/lwjgl3/")) + + // Auto update the version with a timestamp so the project jar gets updated by Pojav + File versionFile = file("../app_pojavlauncher/src/main/assets/components/lwjgl3/version") + versionFile.write(String.valueOf(new Date().getTime())) +} + +java { + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 + } repositories {