aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/net/fabricmc
AgeCommit message (Collapse)Author
2022-03-15Make legacy Forge discover and load coremods from the classpathJonas Herzig
2022-02-22Fix missing SideOnly annotationsJonas Herzig
We've assumed that Forge adds its annotation everywhere via its patches but it actually only adds them if a given file needs to have a patch applied for reasons other than just the SideOnly annotation. This would leave some classes/fields/methods without annotation which resulted in an exception when deserializing horses on 1.12.2 (because it references a class which in turn has methods referencing the dedicated server class which is server-only). Instead, we now convert all Fabric annotations (added during merging) to the Forge ones and remove duplicates (where patches also added them).
2022-01-11Simplify `isForge && !isLegacyForge` -> `isModernForge`Jonas Herzig
2022-01-11Re-use forge accesstransformer tool for legacy forgeJonas Herzig
2022-01-11Do not add mixin to AP configs during IDE sync even for legacy forgeJonas Herzig
I do not quite remember why I added this in the first place but it seems fine without, so let's not mess with it.
2022-01-11Only add LegacyMCP repo when using a legacy versionJonas Herzig
2022-01-11Flip a few `if`s so the modern code path comes before the legacy oneJonas Herzig
2022-01-11Add comments to non-obvious legacy code pathsJonas Herzig
2022-01-11Rename `isModLauncher` -> `isModernForge`Jonas Herzig
Usages are more related to the modern Forge than to ModLauncher specifically.
2022-01-11Use explicit if to separate modern and legacy runs setupJonas Herzig
2022-01-11Do not depend on lorenz impl classes to write identity mappingsJonas Herzig
2022-01-10Generate identity mappings in srg file only for legacy forgeJonas Herzig
Cause modern versions of Forge do not need them.
2022-01-10Clean up generated tiny v1 file after converting to v2Jonas Herzig
We never use the v1 file, so there isn't really any reason to keep it around.
2022-01-10Support for FG2-era ForgeJonas Herzig
2022-01-06Fix missing SrgProvider when generateSrgTiny is falseJonas Herzig
A fallback SrgProvider is instantiated and initialized here but never added to the provider list, resulting in a NPE right below in `getRawSrgFile`.
2022-01-06Fix always-dirty cache due to forge-client-extra.jarJonas Herzig
This jar used to always be included in the cache file list even though it is only used/generated with official mappings. Therefore it would always be missing from the cache when not using official mappings, unnecessarily re-running the patching code.
2022-01-06Simplify `MinecraftPatchedProvider.getGlobalCaches()`Jonas Herzig
Way easier to read than the previous array-copy implementation and trivial to extend when more file are optional (see next commit).
2021-12-19fix a multi-project issue (#65)KosmX
2021-12-12Add forgeExtra back to compile classpathshedaniel
Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-12-12Merge remote-tracking branch 'FabricMC/dev/0.10' into dev/0.10.0shedaniel
2021-12-11Add forgeRuntimeLibrary configuration + some clean up (#64)Juuxel
2021-12-10Apply mitigation's against Log4J2 exploit CVE-2021-44228.modmuss50
2021-12-08Patch ModDependencyInfo for fabric.mod.json checkshedaniel
Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-12-08Merge remote-tracking branch 'FabricMC/dev/0.10' into dev/0.10.0shedaniel
Signed-off-by: shedaniel <daniel@shedaniel.me> # Conflicts: # build.gradle # src/main/java/net/fabricmc/loom/configuration/mods/ModProcessor.java
2021-12-08Move architectury.common.json check behind fabric.mod.jsonshedaniel
Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-12-05Allow transitive access wideners to be declared through architectury.common.jsonshedaniel
Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-12-05Juuzify ArchitecturyLoomDecompiler (#60)Juuxel
* Juuzify ArchitecturyLoomDecompiler * Remove unused max memory
2021-12-04Add architectury decompiler (#59)shedaniel
* Add architectury decompiler Signed-off-by: shedaniel <daniel@shedaniel.me> * Perhaps let's not include javaexec helpers Signed-off-by: shedaniel <daniel@shedaniel.me> * Fix checkstyle and resolve reviews Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-12-02Validate remapped mods also have a remapped access widener. (#549)modmuss50
* Validate remapped mods also have a remapped access widener. * Fix checkstyle
2021-12-02Don't print unstable loom warningshedaniel
Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-12-02Fix support for Forge 1.18shedaniel
Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-11-29Fix merge conflictsshedaniel
Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-11-29Merge remote-tracking branch 'FabricMC/dev/0.10' into dev/0.10.0shedaniel
# Conflicts: # src/main/java/net/fabricmc/loom/configuration/providers/mappings/LayeredMappingSpecBuilderImpl.java # src/main/java/net/fabricmc/loom/configuration/providers/mappings/mojmap/MojangMappingLayer.java # src/main/java/net/fabricmc/loom/configuration/providers/mappings/mojmap/MojangMappingsSpec.java # src/test/groovy/net/fabricmc/loom/test/unit/layeredmappings/LayeredMappingSpecBuilderTest.groovy
2021-11-26Fix crash on Java 18 due to unpick using an outdated asm version.modmuss50
Unpick will now get the same version of asm that loom is running with on its classpath.
2021-11-25Fix duplicate comments about transitive access wideners. Fixes #544modmuss50
A more sophisticated fix might be nice, but im not sure it will provide a lot of benefit.
2021-11-25More improvements/fixes to shared caches maven publications + test improvements.modmuss50
2021-11-23Fix gradle module metadatas not including api deps in runtimeElements (#540)Juuxel
2021-11-20Add an option (enabled by default) to map synthetic field and method names ↵modmuss50
from the official mojang mappings. (#538)
2021-11-18Merge remote-tracking branch 'FabricMC/dev/0.10' into dev/0.10.0shedaniel
# Conflicts: # src/main/java/net/fabricmc/loom/configuration/providers/minecraft/MinecraftMappedProvider.java
2021-11-17Fix access widener file hashcode calculation breaking caching.modmuss50
When using transitive access wideners the mc jar would always be re-processed.
2021-11-15Add getBaseMappedJar to make it easier to get the pre-transformed game jar.modmuss50
2021-11-14Revert "Fix unobfuscated names not having params or docs. (#532)"shedaniel
Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-11-13Merge remote-tracking branch 'FabricMC/dev/0.10' into dev/0.10.0shedaniel
# Conflicts: # src/main/java/net/fabricmc/loom/configuration/providers/mappings/MappingsProviderImpl.java # src/test/groovy/net/fabricmc/loom/test/integration/FabricAPITest.groovy
2021-11-12Fix `namedElements` not extending from api (#533)modmuss50
* Fix `namedElements` not extending from api Fix artifact not waiting for remapAllJars with shared caches * Use apiElements * Add a better test for this. * Also add remapped api mods to namedElements
2021-11-11Fix for 1.18-pre1 server bundler.modmuss50
In the bundler its called 1.18 Pre-release 1 not 1.18-pre1, so we just assume there is only ever going to be 1 version per jar.
2021-11-10Reduce log level of "Using project based jar storage".modmuss50
This will be used on a lot more projects now as transitive access wideners becomes more widely used.
2021-11-10Ensure that the encoding is set to UTF-8modmuss50
2021-11-09Fix unobfuscated names not having params or docs. (#532)modmuss50
2021-11-06Merge remote-tracking branch 'FabricMC/dev/0.10' into dev/0.10.0shedaniel
# Conflicts: # src/main/java/net/fabricmc/loom/api/LoomGradleExtensionAPI.java # src/main/java/net/fabricmc/loom/extension/MinecraftGradleExtension.java
2021-11-01Fix missing blank line between javadoc and paramsmodmuss50