aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2022-05-21Just enough to allow compiling against 1.19-pre1HEADdev/0.10.0Jonas Herzig
Upgrading asm 9.3 because apparently there's Java 19 classes in the MC jar now. Removing the `module` wrapper around dependencies because frankly I don't know why it's a thing in the first place (works fine without on all versions of UniversalCraft) and it prevents you from having two modules differing only in the classifier, which is what MC 1.19 does. Removing the throw when there are no natives, because those come bundled in jars now (this doesn't allow running in a dev env, but it's enough to compile a jar).
2022-05-10Switch to different cache folder so we don't fight with upstreamJonas Herzig
Otherwise it'll have to re-patch the Minecraft jars every time the user switches between two otherwise unrelated projects. This will waste a bunch of disk space, but that's likely better than constantly having to re-initialize stuff.
2022-05-10Merge branch 'dev/0.10.0-fg2' into dev/0.10.0Jonas Herzig
2022-05-10Fix missing legacy forge sourcesJonas Herzig
Forge has not published regular source artifacts for old versions, instead the sources zip is bundled within the userdev jar. Co-authored-by: DJtheRedstoner <52044242+DJtheRedstoner@users.noreply.github.com>
2022-05-10Fixup line numbers in forge sourceJonas Herzig
2022-03-15Bump loom patch versionJonas Herzig
2022-03-15Merge branch 'dev/0.10.0-fg2' into dev/0.10.0Jonas Herzig
2022-03-15Make legacy Forge discover and load coremods from the classpathJonas Herzig
2022-02-22Bump loom patch versionJonas Herzig
So jars (and in particular legacy forge ones) get regenerated (required because of c9c2765).
2022-02-22Merge branch 'dev/0.10.0-fg2' into dev/0.10.0Jonas 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-02-17Merge branch 'dev/0.10.0-fg2' into dev/0.10.0Jonas Herzig
2022-02-17Reconfigure plugin id and repo for essential mavenJonas Herzig
2022-02-16Merge remote-tracking branch 'FabricMC/dev/0.10' into dev/0.10.0shedaniel
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-11Configure ValidateAccessWidenerTask.targetJar lazily (#569)Juuxel
This should prevent crashes if the validateAccessWidener task is initialised manually (by other plugins or scripts iterating all tasks, for example).
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-22Only warn when the yarn version does not match the minecraft version.modmuss50
Should allow yarn versions to be used across mc versions when needed.
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