1900 Commits

Author SHA1 Message Date
Juuz
acd9ad739b DependencyDownloader: Upgrade (transitive) Log4J if needed 1.4 2024-01-24 13:22:35 +02:00
shedaniel
b3d2e349f5 Fix checkstyle 2024-01-10 22:33:19 +09:00
shedaniel
36ec0dc99d Remove beta warning 2024-01-10 22:22:46 +09:00
shedaniel
0446bbfef2 Merge remote-tracking branch 'FabricMC/dev/1.4' into dev/1.4 2024-01-10 22:21:27 +09:00
modmuss
a0aa6eafb2 Validate jar and fail if it was built with Loom 1.5 or later. (#988) 2024-01-04 14:15:15 +00:00
Juuz
1ea6b89130 Check expected Minecraft version before running MCPConfig (#183) 2023-12-16 21:07:15 +02:00
Juuz
45bb6841d8 Fix NeoForge ATs not being fully remapped (#185)
Fixes #184. Also rewrites all code using the CadixDev AT library to use our fork.
2023-12-16 20:18:18 +02:00
Juuz
5b3e7c72b6 Merge remote-tracking branch 'upstream/dev/1.4' into dev/1.4 2023-12-14 20:06:38 +02:00
Juuz
94eac81d45 Revive unified mods for the development environment (#182)
* Add Union Relauncher for Forge 49+

* Don't apply this on Neo
2023-12-13 14:14:27 +08:00
modmuss50
d9a436c684 Fix data gen folder not being added to resources.
Closes https://github.com/FabricMC/fabricmc.net/issues/69
2023-12-09 22:27:06 +00:00
Juuz
9f070d270f AccessWidenerUtils: Ignore fabric.mod.json on (Neo)Forge
Fixes #165. Closes #180.
2023-12-09 14:14:34 +02:00
shedaniel
827c0e9928 Update TR. Fix #174 2023-12-08 02:16:42 +08:00
Juuz
63b47619ec test-push: Remove test reporting 2023-11-17 18:26:44 +02:00
Juuz
229f073492 Improve log message for experimental platforms 2023-11-17 16:24:29 +02:00
Juuz
7c08c02796 ModPlatform: Introduce display name 2023-11-17 16:24:16 +02:00
Juuz
ad7eee6fa5 ModProcessor: Clean up with MappingOption.forNamespaces 2023-11-17 16:19:52 +02:00
Juuz
a11b828380 NeoForge support (#166)
* Initial plumbing for NeoForge support

* Fix checkstyle

* Add ModPlatform.id

* Use NeoForge-specific cache

* Use NeoForge-specific dependency configuration

This is only for the "(neo)forge" configuration exposed
as API. The other configurations remain the same.

* Add test for basic NeoForge 1.20.2 projects

* Implement hacky fast track for NeoForge field migration

In other works, we skip field migrating for now.

* Disable patched decompilation task on Neo

* Disable mixin AP for building on NeoForge

* Many changes related to NeoForge mappings and remapping

* Code style and related fixes

* McpExecutor: Add support for downloading deps via Gradle

Also adds support for downloading a file without a repo
for NeoForm functions.

* Fix wrong configurations being used on NeoForge

* Fix mixin version detection on NeoForge

* Rename MinecraftPatchedProvider jar paths on NeoForge

* Test NeoForge against a client-only MC jar

* Add DFU for codecs, support NeoForge run config templates

* Centralise userdev config reading, support missing SAS

* Set up Shadow for bundling DFU

* Use correct name for NeoForm in cache files

* RemapJarTask: Fix check using isForgeLike for Forge

* MojangMappingsMerger: Complete and reorder mappings

* Fix SRG being used on NeoForge

* Fix SRG being used on NeoForge for ATs

* Use client pipeline for merged to avoid patch issues on Neo

* Update to architectury-loom-runtime 2.0

* Fix Minecraft jar name on Neo

* Fix MojangMappingsMerger having incomplete names

* Fix NeoForge mod dependency remapping using wrong mappings

* Quiet down MojangMappingsMerger

* Fix (Neo)Forge builtin coremods not being remapped

Fixes #146.

* Disable deprecated data generation API on NeoForge

* Use release version of the forge runtime

* Revert "Set up Shadow for bundling DFU"

This reverts commit 2bb8166744.

* Make NeoForge Field Migration work

* NeoForge shouldn't try to get datagen mods

* Fix checkstyle

* Remove mojang maven

* Split Forge and NeoForge extensions

* SimpleNeoForgeTest: Bump Neo version and fix Yarn version

* Remove resolved TODOs

* Re-enable joined NeoForm pipeline

* MPP: Rename srg -> intermediate jars

* Reintroduce namespace filtering for mapping trees

Should be a simple optimisation to avoid reading an
additional ns.

* ForgeRunTemplateTest: Fix code format

* Adapt SrgMerger into ForgeMappingsMerger (#169)

* Fix crash with NeoForge ext creation

* Adapt SrgMerger into ForgeMappingsMerger

* Update tiny-remapper

* Fix spotless

* Resolve reviews

* Fix checkstyle

* Remap ASMAPI.redirectFieldToMethod (#171)

* Remap ASMAPI.redirectFieldToMethod

* Move lastClassName outside the if

* Fix missing template variables in tests using forge/simple

* Add Java version to forge/simple test variables

* Disable naming service dependency on Neo

* Fix changing patch version not affecting mapped game jars

Fixes #167.

* Rename configuration: neoforge -> neoForge

---------

Co-authored-by: shedaniel <daniel@shedaniel.me>
2023-11-17 16:04:22 +02:00
shedaniel
e3b51e9e97 Fix Field Migration (#168)
* Fix #162

* Refactor some field migrator code
2023-11-13 14:52:02 +08:00
shedaniel
683a866284 Fix dependencies not being remapped with srg 2023-11-12 22:02:42 +08:00
Juuz
b82a5bcc04 Move NeoForge integration test to a neoforge subpackage 2023-10-31 18:24:13 +02:00
Juuz
8403d42403 Use version catalog for Forge support dependencies 2023-10-31 00:29:25 +02:00
Juuz
95dfd29ac9 Remove unused lorenz-asm dependency 2023-10-31 00:20:51 +02:00
shedaniel
31147018be Publish 1.4 beta builds 2023-10-24 11:23:40 +08:00
shedaniel
48c39617c5 Support newer versions of MinecraftForge 1.20.2. (#164)
* Support newer versions of MinecraftForge 1.20.2.

* Add directly to settings.getEnvironmentVariables()
2023-10-24 11:22:38 +08:00
shedaniel
c8599e7f66 Merge remote-tracking branch 'upstream/dev/1.4' into dev/1.4 2023-10-24 11:19:58 +08:00
modmuss
7106441298 Fix extending the client/datagen compile/runtime classpath from main (#967) 2023-10-22 13:52:17 +01:00
Juuz
65920d3958 Merge branch 'dev/1.3' into exp/1.4 2023-10-20 14:22:43 +03:00
Juuz
b6354a06ef Update more generated system properties for Quilt Loader 2023-10-20 14:21:52 +03:00
modmuss50
39841d8dc0 Revert "Fix server only jar, closes #966"
This reverts commit eb0c45956b.
2023-10-16 18:57:31 +01:00
modmuss50
eb0c45956b Fix server only jar, closes #966 2023-10-16 16:20:43 +01:00
modmuss
a6534adeaf Fix runtime crash on Intel Mac's when LWJGL has been updated. Closes #963 (#964) 2023-10-16 16:20:43 +01:00
modmuss
8c7c14e922 Add fabricApi.configureDataGeneration API/DSL to help with setting up data generation. (#960)
* Add fabricApi.configureDataGeneration API/DSL to help with setting up datageneration.

* Clean + add option to not add to resources

* Dont create new task
2023-10-16 16:20:43 +01:00
haykam821
78a903d2c9 Sort extra manifest attributes (#958) 2023-10-16 16:20:43 +01:00
modmuss
46e27ce1ba Rename .jnilib natives to .dylib (#956) 2023-10-16 16:20:43 +01:00
shedaniel
2df02d16c6 Fix spotless 2023-10-13 18:09:04 +08:00
shedaniel
91388d507b Add NeoForge test 2023-10-12 22:29:07 +08:00
shedaniel
4af46aa67c Merge remote-tracking branch 'upstream/exp/1.4' into exp/1.4
# Conflicts:
#	src/main/java/net/fabricmc/loom/configuration/providers/minecraft/mapped/ProcessedNamedMinecraftProvider.java
2023-10-12 22:09:40 +08:00
embeddedt
b7c80133ce Use hash of cache value as the JAR name for processed Minecraft JARs (#944)
* Use hash of cache value as the JAR name for processed Minecraft JARs

In basic testing, this cuts down the number of JARs to just one
provided the same AWs are used on all subprojects

* Fix checkstyle

* Remove redundant code

* Fix mod javadoc caching, and fixup tests.

* Hopefully fix ModJavadocTest on windows.

---------

Co-authored-by: modmuss <modmuss50@gmail.com>
2023-09-25 22:44:31 +01:00
shedaniel
352294adb7 Fix project name 2023-09-23 16:43:33 +08:00
shedaniel
f9f275d377 Fix compilation errors 2023-09-23 16:38:09 +08:00
shedaniel
649bbcaf55 Merge remote-tracking branch 'upstream/exp/1.4' into exp/1.4
# Conflicts:
#	.gitignore
#	build.gradle
#	settings.gradle
#	src/main/java/net/fabricmc/loom/api/LoomGradleExtensionAPI.java
#	src/main/java/net/fabricmc/loom/configuration/LoomConfigurations.java
#	src/main/java/net/fabricmc/loom/configuration/mods/ModProcessor.java
#	src/main/java/net/fabricmc/loom/extension/LoomGradleExtensionApiImpl.java
#	src/main/java/net/fabricmc/loom/task/service/JarManifestService.java
#	src/main/java/net/fabricmc/loom/task/service/TinyRemapperService.java
#	src/main/java/net/fabricmc/loom/util/Constants.java
2023-09-23 16:11:29 +08:00
shedaniel
54f252f6b5 Remove beta warning 1.3 2023-09-23 15:59:30 +08:00
shedaniel
ec6b2b0392 Merge remote-tracking branch 'origin/dev/1.2' into dev/1.3 2023-09-23 15:53:45 +08:00
modmuss
bd09af1783 Downloader: Protect against partially downloaded files. (#954)
* Downloader: Protect against partially downloaded files.

* Cleanup

* Add 1 minute timeout.

* Checkstyle
2023-09-22 18:55:44 +01:00
modmuss50
0b36121357 Add Fabric-Jar-Type to jar manifest.
Either 'classes' or 'sources', the idea is mod distribution platforms can check that sources jars are not uploaded accidentally.

Closes #939
2023-09-11 11:47:19 +01:00
modmuss
1a4f76584f Fix reproducable zips across timezones. (#952)
* Create test for zip timezones

* Fix :)

* Update ReproducibleBuildTest

* Update windows hashes
2023-09-11 11:31:10 +01:00
modmuss
71b7bea854 Support the Vineflower decompiler (#951) 2023-09-11 11:29:01 +01:00
modmuss
0a3779f41d Fix and test FabricApiExtension not supporting deprecated modules. (#950) 2023-09-09 22:37:02 +01:00
modmuss
e924faf44e Support reading "development" dependencies from the installer json. (#949)
* Support reading "development" dependencies from the installer json.

* Fix checkstyle and comment.
2023-09-09 22:36:51 +01:00
modmuss50
4caf4f831e Sort client only entries, fixes #940 2023-09-09 17:31:43 +01:00