aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/net/fabricmc/loom/configuration/providers
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-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-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-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-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-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-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-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-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-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-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-09Fix unobfuscated names not having params or docs. (#532)modmuss50
2021-10-28Fix Gradle 8 deprecationshedaniel
Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-10-27Forgot to commit fix merge conflictsshedaniel
Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-10-26Merge remote-tracking branch 'FabricMC/dev/0.10' into dev/0.10.0shedaniel
# Conflicts: # build.gradle # src/main/java/net/fabricmc/loom/configuration/ide/RunConfig.java # src/main/java/net/fabricmc/loom/configuration/mods/ModProcessor.java # src/main/java/net/fabricmc/loom/configuration/providers/mappings/MappingsProviderImpl.java # src/main/java/net/fabricmc/loom/task/RemapJarTask.java # src/main/java/net/fabricmc/loom/util/FileSystemUtil.java # src/main/java/net/fabricmc/loom/util/TinyRemapperHelper.java
2021-10-26Use NIO instead of ZipUtil (#513)shedaniel
* Use nio for zip utils * Make tests work * Please work * Fix some issues with tests * Fix more issues with tests * NIOZipUtils -> ZipUtils * Resolve Juuxel's reviews * Use our own FS utils * Improve error handling, add loom Pair * Add Unit tests + fixes Co-authored-by: modmuss50 <modmuss50@gmail.com>
2021-10-13Merge remote-tracking branch 'FabricMC/dev/0.10' into dev/0.10.0shedaniel
Signed-off-by: shedaniel <daniel@shedaniel.me> # Conflicts: # .github/workflows/test.yml # src/main/java/net/fabricmc/loom/configuration/RemapConfiguration.java # src/main/java/net/fabricmc/loom/configuration/ide/RunConfig.java # src/main/java/net/fabricmc/loom/configuration/providers/MinecraftProviderImpl.java # src/main/java/net/fabricmc/loom/configuration/providers/minecraft/assets/MinecraftAssetsProvider.java # src/main/java/net/fabricmc/loom/decompilers/fernflower/AbstractFernFlowerDecompiler.java # src/main/java/net/fabricmc/loom/decompilers/fernflower/ForkingJavaExec.java # src/main/java/net/fabricmc/loom/task/GenVsCodeProjectTask.java # src/main/java/net/fabricmc/loom/task/GenerateSourcesTask.java # src/main/java/net/fabricmc/loom/util/SourceRemapper.java # src/test/resources/projects/parchment/build.gradle
2021-10-12Don't allow none reproducible dependencies in layered mappings as it breaks ↵modmuss50
the caching guarantee.
2021-10-11Rewrite GenSources including full support for CFR. (#511)modmuss50
* Rewrite CFR decompiler interface. Support javadoc * CFR line numbers and fixes. * Cleanup and fix * Use WorkerExecutor to fork, massively cleans up the fernflower code, but does remove the fancy multithreaded logging. * Use IPC to get logging back from the decompilers. * Cleanup UnpickJarTask, fix leak in IPCServer * Used published CFR build * Handle older windows versions that do not support AF_UNIX. * Fixes and basic unit test * Improve memory handling of genSources * Stop decompile worker JVM
2021-10-09Turn the tinyMappingsJar dependency into a module dependencyshedaniel
Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-09-29Support 21w39amodmuss50
2021-09-29Fix checkstylesshedaniel
Signed-off-by: shedaniel <daniel@shedaniel.me>