mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-29 23:40:00 +00:00
Downloaded LWJGL libraries
- LWJGL is no longer shaded into the Bukkit jar - plugin.yml lists the LWJGL jars and Linux natives as Spigot libraries - The Paper loader resolves the same plugin.yml list through the Maven Central mirror - The packed payload no longer reserves the LWJGL natives prefix - Tests cover reading the library list from the plugin jar
This commit is contained in:
1 parent
aec8f5be8e
commit
0d76d81dab
5 files changed
+67
-8
No files matched your search
@@ -28,6 +28,16 @@ dependencies {
|
||||
}
|
||||
}
|
||||
|
||||
String lwjglVersion = libs.versions.lwjgl.get()
|
||||
List<String> mavenLibraries = [
|
||||
"org.lwjgl:lwjgl:${lwjglVersion}",
|
||||
"org.lwjgl:lwjgl:jar:natives-linux:${lwjglVersion}",
|
||||
"org.lwjgl:lwjgl-opengl:${lwjglVersion}",
|
||||
"org.lwjgl:lwjgl-opengl:jar:natives-linux:${lwjglVersion}",
|
||||
"org.lwjgl:lwjgl-egl:${lwjglVersion}",
|
||||
"org.lwjgl:lwjgl-jawt:${lwjglVersion}",
|
||||
].collect { GString coordinate -> coordinate.toString() }
|
||||
|
||||
tasks.named('processResources').configure {
|
||||
def pluginProperties = [
|
||||
name : rootProject.name,
|
||||
@@ -35,6 +45,7 @@ tasks.named('processResources').configure {
|
||||
apiVersion: apiVersion,
|
||||
main : mainClass,
|
||||
bootstrapper: bootstrapperClass,
|
||||
libraries : mavenLibraries.collect { String coordinate -> "'${coordinate}'" }.join(', '),
|
||||
]
|
||||
inputs.properties(pluginProperties)
|
||||
filesMatching(['**/paper-plugin.yml', '**/plugin.yml']) {
|
||||
|
||||
Reference in new issue
Block a user