Downgrade VV dependency to J8

Downgrades the included dependency to J8 to support bootstrapping legacy versions which don't support newer Java versions, running from IDE is excluded here
This commit is contained in:
FlorianMichael 2024-06-01 01:57:28 +02:00
parent 0d1c553ee1
commit 3fb4d18b7e
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126
2 changed files with 10 additions and 1 deletions

View File

@ -14,6 +14,7 @@ plugins {
id "com.modrinth.minotaur" version "2.8.7" id "com.modrinth.minotaur" version "2.8.7"
id "fabric-loom" version "1.6-SNAPSHOT" apply false id "fabric-loom" version "1.6-SNAPSHOT" apply false
id "com.github.ben-manes.versions" version "0.51.0" id "com.github.ben-manes.versions" version "0.51.0"
id "xyz.wagyourtail.jvmdowngrader" version "0.6.1"
} }
def ENV = System.getenv() def ENV = System.getenv()
@ -129,17 +130,24 @@ subprojects.each {
remapJar.dependsOn("${it.path}:remapJar") remapJar.dependsOn("${it.path}:remapJar")
} }
configurations {
includeJ8
}
jvmdg.dg(configurations.includeJ8)
dependencies { dependencies {
// dummy version // dummy version
minecraft("com.mojang:minecraft:1.14.4") minecraft("com.mojang:minecraft:1.14.4")
mappings("net.fabricmc:yarn:1.14.4+build.18:v2") mappings("net.fabricmc:yarn:1.14.4+build.18:v2")
include("com.viaversion:viaversion:${rootProject.viaver_version}") includeJ8("com.viaversion:viaversion:${rootProject.viaver_version}")
include("org.yaml:snakeyaml:${rootProject.yaml_version}") include("org.yaml:snakeyaml:${rootProject.yaml_version}")
include("com.github.TinfoilMC:ClientCommands:1.1.0") include("com.github.TinfoilMC:ClientCommands:1.1.0")
} }
remapJar { remapJar {
nestedJars.from configurations.includeJ8
afterEvaluate { afterEvaluate {
subprojects.each { subprojects.each {
nestedJars.from project("${it.path}").tasks.named("remapJar") nestedJars.from project("${it.path}").tasks.named("remapJar")

View File

@ -1,6 +1,7 @@
pluginManagement { pluginManagement {
repositories { repositories {
gradlePluginPortal() gradlePluginPortal()
mavenCentral()
maven ("https://maven.fabricmc.net/") maven ("https://maven.fabricmc.net/")
} }
} }