diff options
author | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2022-07-06 21:09:37 +0900 |
---|---|---|
committer | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2022-07-06 21:09:37 +0900 |
commit | bf0d2189dd881faa8f401d60c891bd8c1b7086b5 (patch) | |
tree | 333f33191dfbc6851ed1ba936b4b9675a68c042b /lwjgl | |
parent | 52b87cb59eebff7826d8891a6fb52911be386f46 (diff) | |
download | OneConfig-bf0d2189dd881faa8f401d60c891bd8c1b7086b5.tar.gz OneConfig-bf0d2189dd881faa8f401d60c891bd8c1b7086b5.tar.bz2 OneConfig-bf0d2189dd881faa8f401d60c891bd8c1b7086b5.zip |
real
Diffstat (limited to 'lwjgl')
-rw-r--r-- | lwjgl/1.12.2-forge/api/1.12.2-forge.api | 0 | ||||
-rw-r--r-- | lwjgl/1.16.2-forge/api/1.16.2-forge.api | 0 | ||||
-rw-r--r-- | lwjgl/1.8.9-forge/api/1.8.9-forge.api | 0 | ||||
-rw-r--r-- | lwjgl/build.gradle.kts | 69 | ||||
-rw-r--r-- | lwjgl/mainProject | 1 | ||||
-rw-r--r-- | lwjgl/root.gradle.kts | 16 |
6 files changed, 64 insertions, 22 deletions
diff --git a/lwjgl/1.12.2-forge/api/1.12.2-forge.api b/lwjgl/1.12.2-forge/api/1.12.2-forge.api new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/lwjgl/1.12.2-forge/api/1.12.2-forge.api diff --git a/lwjgl/1.16.2-forge/api/1.16.2-forge.api b/lwjgl/1.16.2-forge/api/1.16.2-forge.api new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/lwjgl/1.16.2-forge/api/1.16.2-forge.api diff --git a/lwjgl/1.8.9-forge/api/1.8.9-forge.api b/lwjgl/1.8.9-forge/api/1.8.9-forge.api new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/lwjgl/1.8.9-forge/api/1.8.9-forge.api diff --git a/lwjgl/build.gradle.kts b/lwjgl/build.gradle.kts index df8d72c..fcc5511 100644 --- a/lwjgl/build.gradle.kts +++ b/lwjgl/build.gradle.kts @@ -1,7 +1,11 @@ +@file:Suppress("GradlePackageUpdate") + plugins { kotlin("jvm") + id("gg.essential.multi-version") id("gg.essential.defaults.repo") id("gg.essential.defaults.java") + id("gg.essential.defaults.loom") id("com.github.johnrengelman.shadow") id("maven-publish") id("signing") @@ -12,7 +16,7 @@ val mod_name: String by project val mod_version: String by project val mod_id: String by project -version = "1.0.0-alpha1" +version = "1.0.0-alpha5" repositories { maven("https://repo.polyfrost.cc/releases") @@ -27,23 +31,39 @@ sourceSets { } dependencies { - shadeCompileOnly("org.lwjgl:lwjgl:3.3.1") - shadeCompileOnly("org.lwjgl:lwjgl-stb:3.3.1") - shadeCompileOnly("org.lwjgl:lwjgl-tinyfd:3.3.1") - shadeCompileOnly("org.lwjgl:lwjgl-nanovg:3.3.1") + val lwjgl = if (platform.mcVersion >= 11600) { + "3.2.1" + } else { + "3.3.1" + } + if (platform.isLegacyForge) { + shadeCompileOnly("org.lwjgl:lwjgl:$lwjgl") + shadeCompileOnly("org.lwjgl:lwjgl-stb:$lwjgl") + shadeCompileOnly("org.lwjgl:lwjgl-tinyfd:$lwjgl") + + shadeRuntimeOnly("org.lwjgl:lwjgl:$lwjgl:natives-windows") + shadeRuntimeOnly("org.lwjgl:lwjgl-stb:$lwjgl:natives-windows") + shadeRuntimeOnly("org.lwjgl:lwjgl-tinyfd:$lwjgl:natives-windows") + shadeRuntimeOnly("org.lwjgl:lwjgl:$lwjgl:natives-linux") + shadeRuntimeOnly("org.lwjgl:lwjgl-stb:$lwjgl:natives-linux") + shadeRuntimeOnly("org.lwjgl:lwjgl-tinyfd:$lwjgl:natives-linux") + shadeRuntimeOnly("org.lwjgl:lwjgl:$lwjgl:natives-macos") + shadeRuntimeOnly("org.lwjgl:lwjgl-stb:$lwjgl:natives-macos") + shadeRuntimeOnly("org.lwjgl:lwjgl-tinyfd:$lwjgl:natives-macos") + } - shadeRuntimeOnly("org.lwjgl:lwjgl:3.3.1:natives-windows") - shadeRuntimeOnly("org.lwjgl:lwjgl-stb:3.3.1:natives-windows") - shadeRuntimeOnly("org.lwjgl:lwjgl-tinyfd:3.3.1:natives-windows") - shadeRuntimeOnly("org.lwjgl:lwjgl-nanovg:3.3.1:natives-windows") - shadeRuntimeOnly("org.lwjgl:lwjgl:3.3.1:natives-linux") - shadeRuntimeOnly("org.lwjgl:lwjgl-stb:3.3.1:natives-linux") - shadeRuntimeOnly("org.lwjgl:lwjgl-tinyfd:3.3.1:natives-linux") - shadeRuntimeOnly("org.lwjgl:lwjgl-nanovg:3.3.1:natives-linux") - shadeRuntimeOnly("org.lwjgl:lwjgl:3.3.1:natives-macos") - shadeRuntimeOnly("org.lwjgl:lwjgl-stb:3.3.1:natives-macos") - shadeRuntimeOnly("org.lwjgl:lwjgl-tinyfd:3.3.1:natives-macos") - shadeRuntimeOnly("org.lwjgl:lwjgl-nanovg:3.3.1:natives-macos") + shadeCompileOnly("org.lwjgl:lwjgl-nanovg:$lwjgl") { + isTransitive = platform.isLegacyForge + } + shadeRuntimeOnly("org.lwjgl:lwjgl-nanovg:$lwjgl:natives-windows") { + isTransitive = platform.isLegacyForge + } + shadeRuntimeOnly("org.lwjgl:lwjgl-nanovg:$lwjgl:natives-linux") { + isTransitive = platform.isLegacyForge + } + shadeRuntimeOnly("org.lwjgl:lwjgl-nanovg:$lwjgl:natives-macos") { + isTransitive = platform.isLegacyForge + } } tasks { @@ -53,9 +73,11 @@ tasks { exclude("META-INF/versions/**") exclude("**/module-info.class") exclude("**/package-info.class") - relocate("org.lwjgl", "org.lwjgl3") { - include("org.lwjgl.PointerBuffer") - include("org.lwjgl.BufferUtils") + if (platform.isLegacyForge) { + relocate("org.lwjgl", "org.lwjgl3") { + include("org.lwjgl.PointerBuffer") + include("org.lwjgl.BufferUtils") + } } duplicatesStrategy = DuplicatesStrategy.EXCLUDE dependsOn(jar) @@ -63,13 +85,16 @@ tasks { jar { enabled = false } + remapJar { + enabled = false + } } publishing { publications { - register<MavenPublication>("lwjgl") { + register<MavenPublication>("lwjgl-$platform") { groupId = "cc.polyfrost" - artifactId = "lwjgl" + artifactId = "lwjgl-$platform" artifact(tasks["shadowJar"]) } } diff --git a/lwjgl/mainProject b/lwjgl/mainProject new file mode 100644 index 0000000..dd1433e --- /dev/null +++ b/lwjgl/mainProject @@ -0,0 +1 @@ +1.8.9-forge
\ No newline at end of file diff --git a/lwjgl/root.gradle.kts b/lwjgl/root.gradle.kts new file mode 100644 index 0000000..d2dc0c7 --- /dev/null +++ b/lwjgl/root.gradle.kts @@ -0,0 +1,16 @@ +/** + * WHATEVER HAPPENS HERE MUST ALSO BE APPLIED IN `versions/root.gradle.kts` + */ +plugins { + kotlin("jvm") version "1.6.21" apply false + id("gg.essential.multi-version.root") + id("io.github.juuxel.loom-quiltflower-mini") version "171a6e2e49" apply false +} + +preprocess { + "1.8.9-forge"(10809, "srg") { + "1.12.2-forge"(11202, "srg") { + "1.16.2-forge"(11602, "srg") + } + } +}
\ No newline at end of file |