2362 Commits

Author SHA1 Message Date
Juuz
7396be9d31 ForgeRunConfigTest: Remove outdated test for MOD_CLASSES 2025-10-29 16:22:30 +02:00
Juuz
abc38b5921 Fix export classpath task config in the companion plugin
The mod platform cannot be stored in companion projects,
so it's marked optional.
2025-10-29 16:20:15 +02:00
Juuz
e0be5bf488 Update to Unprotect 2.0.2
Fixes #305.
2025-10-29 16:17:19 +02:00
Juuz
0629aabe8a Fix plugin IDs in tests 2025-10-29 15:25:28 +02:00
Juuz
e9f0c8dda2 Fix compilation error in tests 2025-10-29 15:15:33 +02:00
Juuz
24ffed6f9e Update to Unprotect 2.0.1
Fixes #304 by removing transitive loader/ModLauncher deps.
2025-10-29 15:11:33 +02:00
Juuz
6a9f5cec3f Port Forge run templates to the new classpath group system 2025-10-29 15:08:31 +02:00
Juuz
f038ad586f FabricModJsonFactory: Fix compilation error 2025-10-29 15:04:33 +02:00
Juuz
a1594dd322 Port Aw2At to class-tweaker 2025-10-29 15:04:16 +02:00
Juuz
c9566b02b0 Rename companion plugin to dev.architectury.loom-companion 2025-10-29 12:33:30 +02:00
Juuz
1479c65cc5 Merge remote-tracking branch 'upstream/dev/1.12' into exp/1.12
# Conflicts:
#	build.gradle
#	src/main/java/net/fabricmc/loom/configuration/CompileConfiguration.java
#	src/main/java/net/fabricmc/loom/configuration/mods/AccessWidenerAnalyzeVisitorProvider.java
#	src/main/java/net/fabricmc/loom/extension/LoomGradleExtensionApiImpl.java
#	src/main/java/net/fabricmc/loom/extension/MixinExtensionApiImpl.java
#	src/main/java/net/fabricmc/loom/extension/MixinExtensionImpl.java
#	src/main/java/net/fabricmc/loom/task/launch/GenerateDLIConfigTask.java
#	src/main/java/net/fabricmc/loom/util/gradle/GradleUtils.java
#	src/main/resources/log4j2.fabric.xml
#	src/test/resources/projects/multiproject/build.gradle
2025-10-29 12:31:21 +02:00
modmuss
e076ac7bcf Direct port to class tweaker (#1398)
* Direct port to class tweaker

* Debugging help

* Checkstyle

* Update CT
2025-10-24 18:06:26 +01:00
modmuss
c08bfbe5be Warn when the project is stored in OneDrive (#1402)
* Warn when the project is stored in OneDrive

This is a large source of random errors we see in the support channels.

* Dont event check if it exists
2025-10-23 22:19:33 +01:00
modmuss
36cf73997f Make the intergration tests easier to debug (#1401)
* Make the intergration tests easier to debug

* Spotless
2025-10-23 19:25:17 +01:00
modmuss
692ab93693 Support depending on type safe projects. (#1399) 2025-10-23 08:54:46 +01:00
modmuss50
e67de3f9af Export runtime jars from companion projects. 2025-10-22 23:20:14 +01:00
modmuss
2a47c835d1 Fix exporting the dev jar path in a projects classpath. (#1397) 2025-10-22 21:28:57 +01:00
modmuss
09a4831f25 Support classpath groups when using configure on demand. (#1392)
* Support classpath groups when using configure on demand.

* Cleanup

* Work around Gradle 8.14 issue

* Another fix

* Rename plugin

* Fix plugin versioning

* Add some docs

* More fixes

* Ensure backwards compatible.
2025-10-20 22:46:36 +01:00
Joseph Burton
b2c933d2c0 Add annotations apply integration test (#1396) 2025-10-17 11:30:39 +01:00
Joseph Burton
3783f41ef3 Fix annotations not being applied in a project outside Enigma (#1395) 2025-10-15 21:52:49 +01:00
Joseph Burton
5656d41792 Apply record component annotations to getter methods and canonical constructor parameters (#1394) 2025-10-15 17:10:16 +01:00
Joseph Burton
501070a47a Make annotations data a bit nicer to use (#1391)
* Make annotations data a bit nicer to use

* Add copy constructors
2025-10-08 12:01:23 +01:00
Juuz
5250e9fb85 Fix invisible log levels being enabled in the log4j config (#1388)
The previous level made loggers report that e.g. the trace
level is always enabled which is clearly wrong.
2025-10-06 22:00:03 +01:00
modmuss
fd2f807647 Only warn when attempting to configure the disabled mixin AP (#1387) 2025-10-05 19:18:57 +01:00
modmuss50
3d2a080242 Invalid remapped sources when using refresh dependencies.
Closes #1142
2025-10-05 18:07:27 +01:00
modmuss
ccb923d533 Fix remapping Kotlin classes containing $. (#1385)
* Fix remapping Kotlin classes containing $.

Closes #1363

* spotless
2025-10-05 17:58:10 +01:00
modmuss
53a99f8603 Fix progress logger (#1386) 2025-10-05 17:57:56 +01:00
modmuss
4eac2e7845 Fix CRF decompile failing on c0.30 (#1384)
- ClassLineNumbers.readMappings throws a nicer error when the input data is empty.
- GenerateSourcesTask include linemap filename when failed to read.
- CRF decompiler wont write empty linemap data.
- Add test
2025-10-05 17:15:49 +01:00
modmuss
d611d7f1b3 Replace TCA with forked fabric-log4j-util (#1375)
* fabric-log4j-util

* Update
2025-10-05 16:28:12 +01:00
modmuss
e2639f9e27 Improve loom.mixin error message now that the AP is disabled by default. (#1383) 2025-10-05 16:26:37 +01:00
modmuss
c97f9e4454 Update to ASM 9.9 (#1382) 2025-10-05 10:18:30 +01:00
modmuss
2dd467bdb7 Remove isRootProject from extension as it can hide Project.getRootProject when in the loom extension block. (#1381) 2025-10-05 09:53:49 +01:00
Joseph Burton
dd90d7bd29 Add AnnotationsDataValidator (#1379)
* Add AnnotationsDataValidator

* Use Constants.ASM_VERSION
2025-10-03 18:08:09 +01:00
KikuGie
7f95c3c60f Make fabric.mod.json path configurable at configuration stage. (#1364)
* Add `fabric.mod.json` path property.

* Add path provider integration tests.

* Separate fabric.mod.json reading methods and move selection to the helper method.

* Separate FMJ getter methods and add configuration to datagen and testmod settings.

* Remove the `fabricModJsonPath` property from Fabric API source sets

* Address review requests by fixing formatting and removing redundant changes

* Fix build

* Move tests to existing file, and remove var usage.

* Fix build :)

---------

Co-authored-by: modmuss50 <modmuss50@gmail.com>
2025-10-03 10:16:17 +01:00
modmuss
103db759f6 Fix SpecContext always resolving mod dependencies with the runtime attribute. (#1378)
Likely fixes #1334
2025-10-01 14:23:05 +01:00
modmuss
5f513b0efc Add basic unit tests for SpecContext (#1377) 2025-10-01 11:27:14 +01:00
Juuz
74794ca7ec StringConstantPatcher: Use Constants.ASM_VERSION 2025-10-01 11:14:56 +03:00
Juuz
6714f9cd63 Merge branch 'dev/1.11' into exp/1.12 2025-10-01 11:13:53 +03:00
Juuz
fc47aa2171 Remap a bunch of new class names in FancyModLoader
Fixes #299.
2025-10-01 11:10:48 +03:00
Juuz
2097c83da5 Use InstallerTools as external tool instead of library
This cuts down on Loom's direct compiletime dependencies.
2025-10-01 01:46:59 +03:00
Juuz
044eb9161f Remove remaining Guava usages 2025-10-01 01:46:59 +03:00
Juuz
d0ec9525bb Merge 1.12, part 1
- Fix compilation errors
- Re-enable mixin AP by default on old Forge
2025-10-01 01:46:58 +03:00
Juuz
96b1497f29 Merge remote-tracking branch 'upstream/exp/1.12' into exp/1.12
# Conflicts:
#	build.gradle
#	gradle/runtime.libs.versions.toml
#	src/main/java/net/fabricmc/loom/build/nesting/JarNester.java
#	src/main/java/net/fabricmc/loom/build/nesting/NestableJarGenerationTask.java
#	src/main/java/net/fabricmc/loom/configuration/mods/ModConfigurationRemapper.java
#	src/main/java/net/fabricmc/loom/configuration/providers/mappings/tiny/MappingsMerger.java
#	src/main/java/net/fabricmc/loom/configuration/providers/minecraft/MinecraftProvider.java
#	src/main/java/net/fabricmc/loom/configuration/providers/minecraft/mapped/AbstractMappedMinecraftProvider.java
#	src/main/java/net/fabricmc/loom/extension/MixinExtensionApiImpl.java
#	src/main/java/net/fabricmc/loom/task/launch/GenerateDLIConfigTask.java
#	src/main/java/net/fabricmc/loom/task/service/LorenzMappingService.java
#	src/main/java/net/fabricmc/loom/util/Constants.java
2025-10-01 01:09:17 +03:00
Juuz
a7d9504f2b Remove Commons IO usages 2025-10-01 01:06:38 +03:00
Juuz
e1c5f7e868 Use Constants.ASM_VERSION everywhere 2025-10-01 00:21:36 +03:00
Juuz
e76606425e Move most Architectury classes into dev.architectury.loom
The remaining classes are either API types like ModPlatform
or single classes that make sense in specific packages
next to e.g. other implementations of the same interface.
2025-10-01 00:14:20 +03:00
Juuz
841440ff98 FieldMappingsMigrator: Clean up code 2025-09-30 23:40:20 +03:00
Juuz
66a2229add Remove usage of Guava's Table class 2025-09-30 23:36:40 +03:00
Juuz
c24f4539ba Replace uses of Guava code with JDK and custom classes 2025-09-30 19:12:58 +03:00
Joseph Burton
7484a7fd95 Call visitAnnotableParameterCount (#1376) 2025-09-30 13:38:13 +01:00