Looming danger

- Bump arch loom and gradle versions
- Do not set default refmap name
- Enable legacy mixin ap in loom
- Individually add sourcesets to looms refmap stuffs
This commit is contained in:
Jozufozu 2024-09-09 20:55:36 -07:00
parent fb41248c4c
commit dfc1e3a397
5 changed files with 16 additions and 5 deletions

View file

@ -48,12 +48,9 @@ class SubprojectPlugin: Plugin<Project> {
}
}
@Suppress("UnstableApiUsage")
private fun setupLoom(project: Project) {
val loom = project.the<LoomGradleExtensionAPI>()
loom.silentMojangMappingsLicense()
loom.mixin.defaultRefmapName = "flywheel.refmap.json"
}
private fun setupJava(project: Project) {

View file

@ -60,6 +60,14 @@ defaultPackageInfos {
sources(api, lib, backend, main)
}
loom {
mixin {
useLegacyMixinAp = true
add(main, "flywheel.refmap.json")
add(backend, "backend-flywheel.refmap.json")
}
}
dependencies {
modImplementation("net.fabricmc:fabric-loader:${property("fabric_loader_version")}")
modApi("net.fabricmc.fabric-api:fabric-api:${property("fabric_api_version")}")

View file

@ -61,6 +61,12 @@ defaultPackageInfos {
}
loom {
mixin {
useLegacyMixinAp = true
add(main, "flywheel.refmap.json")
add(backend, "backend-flywheel.refmap.json")
}
forge {
mixinConfig("flywheel.backend.mixins.json")
mixinConfig("flywheel.impl.mixins.json")

View file

@ -19,7 +19,7 @@ forge_version_range = [47.0.0,)
# General build dependency versions
java_version = 17
arch_loom_version = 1.6.397
arch_loom_version=1.7.412
cursegradle_version = 1.4.0
parchment_version = 2023.09.03

View file

@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-all.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME