Fix loom 1.5 screwing up the buildscript (#300)

* Finally fix the cursed loom 1.5 update.

* Formatstyle adjustment.

Tabs make this look ugly.
This commit is contained in:
Kichura 2024-01-21 10:38:51 +01:00 committed by GitHub
parent 051e944693
commit 67c977009b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 35 additions and 7 deletions

View File

@ -125,10 +125,6 @@ static void setupRepositories(RepositoryHandler repositories) {
}
}
subprojects.each {
remapJar.dependsOn("${it.path}:remapJar")
}
dependencies {
// dummy version
minecraft("com.mojang:minecraft:1.14.4")
@ -137,9 +133,17 @@ dependencies {
include("com.viaversion:viaversion:${rootProject.viaver_version}")
include("org.yaml:snakeyaml:${rootProject.yaml_version}")
include("com.github.TinfoilMC:ClientCommands:1.1.0")
}
subprojects.each {
include project("${it.name}:")
subprojects.each {
remapJar.dependsOn("${it.path}:remapJar")
}
remapJar {
afterEvaluate {
subprojects.each {
nestedJars.from project("${it.path}").tasks.getByName("remapJar")
}
}
}

View File

@ -17,5 +17,5 @@ include("viafabric-mc119")
include("viafabric-mc120")
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.7.0"
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}

View File

@ -5,4 +5,8 @@ dependencies {
modImplementation("net.fabricmc.fabric-api:fabric-api:0.28.5+1.14")
modImplementation("io.github.prospector:modmenu:1.7.17+build.1")
modImplementation("com.github.TinfoilMC:ClientCommands:1.1.0")
}
tasks.compileJava {
options.release.set(8)
}

View File

@ -5,4 +5,8 @@ dependencies {
modImplementation("net.fabricmc.fabric-api:fabric-api:0.28.5+1.15")
modImplementation("io.github.prospector:modmenu:1.10.4+build.1")
modImplementation("com.github.TinfoilMC:ClientCommands:1.1.0")
}
tasks.compileJava {
options.release.set(8)
}

View File

@ -4,4 +4,8 @@ dependencies {
modImplementation("net.fabricmc.fabric-api:fabric-api:0.42.0+1.16")
modImplementation("com.terraformersmc:modmenu:1.16.23")
}
tasks.compileJava {
options.release.set(8)
}

View File

@ -5,3 +5,7 @@ dependencies {
modImplementation("net.fabricmc.fabric-api:fabric-api:0.46.1+1.17")
modImplementation("com.terraformersmc:modmenu:2.0.17")
}
tasks.compileJava {
options.release.set(16)
}

View File

@ -5,3 +5,7 @@ dependencies {
modImplementation("net.fabricmc.fabric-api:fabric-api:0.76.0+1.18.2")
modImplementation("com.terraformersmc:modmenu:3.2.5")
}
tasks.compileJava {
options.release.set(17)
}

View File

@ -15,3 +15,7 @@ dependencies {
loom {
intermediaryUrl.set("https://maven.legacyfabric.net/net/legacyfabric/intermediary/%1\$s/intermediary-%1\$s-v2.jar")
}
tasks.compileJava {
options.release.set(8)
}