Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Vera-Firefly authored Aug 15, 2023
1 parent 1437d3c commit e1a9042
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions jre_lwjgl3glfw/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
plugins {
id 'java'
}

group = 'org.lwjgl.glfw'

configurations.default.setCanBeResolved(true)

jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
archiveBaseName = "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()))
from {
configurations.default.collect {
println(it.getName())
it.isDirectory() ? it : zipTree(it)
}
}
exclude 'net/java/openjdk/cacio/ctc/**'
}

java {
toolchain {
languageVersion = JavaLanguageVersion.of(8)
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
}

0 comments on commit e1a9042

Please sign in to comment.