Commit Graph

2383 Commits

Author SHA1 Message Date
Juuz
680d26fb46 AbstractRemapJarTask: Fix manifest attributes not being inherited from input 2025-11-03 15:14:12 +02:00
Juuz
c11fdb8756 Fix plugin id in RemapJarContentsTest 2025-11-03 14:33:04 +02:00
Juuz
3bb147322c Merge remote-tracking branch 'upstream/dev/1.13' into dev/1.13
# Conflicts:
#	gradle/libs.versions.toml
2025-11-03 14:06:35 +02:00
Juuz
910efd322e Update Mercury 2025-11-03 14:02:17 +02:00
Juuz
b1deb12895 Prevent disabling obfuscation on Neo and Forge for now 2025-11-03 13:54:11 +02:00
Juuz
5f6891992a Merge remote-tracking branch 'upstream/exp/1.13' into dev/1.13
# Conflicts:
#	build.gradle
#	gradle/libs.versions.toml
#	src/main/java/net/fabricmc/loom/LoomGradleExtension.java
#	src/main/java/net/fabricmc/loom/configuration/CompileConfiguration.java
#	src/main/java/net/fabricmc/loom/extension/LoomGradleExtensionApiImpl.java
#	src/main/java/net/fabricmc/loom/extension/LoomGradleExtensionImpl.java
#	src/main/java/net/fabricmc/loom/task/RemapJarTask.java
2025-11-03 13:51:55 +02:00
modmuss50
94d4eb6e08 Update Mercury Mixin 2025-11-03 09:44:45 +00:00
Julian Burner
224d015c22 Update to Mapping-IO 0.8.0 (#1419) 2025-11-03 09:27:59 +00:00
Juuz
a0d73dc3b7 Add task to migrate CT/AW mappings (#1412)
* Add task to migrate CT/AW mappings

* Remove unused logger

* Add option to map CT in place, add common base class

* Add test for migrating AW/CT mappings

* Add SkipWhenEmpty to MigrateClassTweakerMappingsTask.inputFile

* Split CT migration service from base service
2025-11-02 13:12:56 +00:00
modmuss
e41982c51e Migrate mapping improvements. (#1416)
* Migrate mapping improvements.

* Revert to old logic

* Fix

* Add --overrideInputsIHaveABackup

* Skip task when input is empty

* Fix again

* Update MM
2025-11-01 08:25:46 +00:00
modmuss50
2e16a97f08 Merge remote-tracking branch 'origin/dev/1.12' into exp/1.13 2025-10-31 22:31:51 +00:00
Juuz
4fb75cf336 Include source mapping hash in decompiler cache key (#1414)
* Include source mapping hash in decompiler cache key

Fixes #1410.

* Mark source mappings hash property as optional, improve name
2025-10-31 21:38:25 +00:00
modmuss
0e2fc99eb1 Add back getModSourceSets(), as its used by mc dev to do nothing. (#1415) 2025-10-31 21:34:31 +00:00
modmuss50
f7321abfd5 Fix ordering of mercury processors 2025-10-31 14:52:24 +00:00
modmuss
1f1448fd19 Add mercury mixin to migrate mappings task. (#1413) 2025-10-31 13:16:27 +00:00
modmuss50
3575bf3715 Merge remote-tracking branch 'origin/dev/1.12' into exp/1.13 2025-10-31 11:52:47 +00:00
Juuz
f8a465377c Fix using Enigma mappings with mod-provided javadoc (#1411)
- Fixes using formats with inherently multiple namespaces
  by actually only checking for the presence of dst names
  instead of dst namespaces.
- Fixes using formats without namespace ids by replacing
  the fallback namespaces with intermediary and named.
2025-10-31 11:52:23 +00:00
modmuss
577e5c8bfd Add 'fabric.loom.disableObfuscation' property to disable all remapping. (#1409)
* Add 'fabric.loom.disableObfuscation' property

* More work, the test passes now.

* Fix
2025-10-30 20:11:52 +00:00
Juuz
5892364fdf Make remapping tasks use the archive file from the Jar API (#1406)
* Make remapping tasks use the archive file from the Jar API

Other minor changes:
- Exception messages now include the absolute path of
  the jar file
- RemapSourcesJarTask now also uses descriptive wrappers
  instead of a direct new RuntimeException(...)

* Stop overriding Jar.copy with a no-op

* Add test for using Jar's API on remapJar and remapSourcesJar
2025-10-30 20:10:47 +00:00
feenko
04995cbcf9 Fix FMJ generator not resolving dependencies correctly with exactly one version range (#1408) 2025-10-30 15:54:17 +00:00
modmuss50
371bfe905a Start on 1.13 2025-10-30 07:44:02 +00:00
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