Commit Graph

1387 Commits

Author SHA1 Message Date
Finn Rades
1a70c3703b Add XVFB support for headless client execution (#1432)
* Implement XVFB support

* Remove unused import

* Fix test

* Fix test v2

* Explicitly install xvfb into the test environment

* Rework xfvb execution

* Fix compile error

* Fix compile error v2

* We love testing with github ci

* Fix code-style
Build time speedup

* Build time speedup

* Fix java executable access
Fix caching

* Fix styling

* Fix xvfb again

* Fix xvfb again again

* Fix xvfb again again again

* Revert mistaken change

* Fix MC-DEV

* Update src/test/groovy/net/fabricmc/loom/test/integration/XvfbRunTest.groovy

Co-authored-by: modmuss <modmuss50@gmail.com>

* Cleanup

* Fix test

* Implement recommendations

* Implement recommendations v2

* Fix left over code

---------

Co-authored-by: modmuss <modmuss50@gmail.com>
2025-11-09 10:44:31 +00:00
modmuss
91d2edefbf NestJarsAction improvements (#1438) 2025-11-09 10:40:18 +00:00
modmuss
9ad97b74b9 Fix project deps (#1437) 2025-11-09 09:45:21 +00:00
modmuss
549edb7ad9 Remove "namedElements" when debof (#1435) 2025-11-08 23:20:06 +00:00
modmuss
03d4fd077b Very many debof fixes (#1430) 2025-11-08 09:04:40 +00:00
Finn Rades
f9dbaae926 Add manifest attributes and jar filtering to non-remapped jar task (#1429)
* Add manifest attributes and jar filtering to non-remapped jar task

* Fix checkstyle

* Implement feedback
2025-11-07 22:40:08 +00:00
modmuss
43e1ad7b31 Disable remap classpath system prop (#1426)
* Disable remap classpath system prop

* Fix build
2025-11-07 22:07:13 +00:00
modmuss
ec00261136 Find and apply installer data (#1428) 2025-11-07 21:54:51 +00:00
Finn Rades
eca987a2d3 Add nestJars API for nesting locally built mod jars (#1427)
* Add nestJars API for FileCollection support

* Add missin new-line

* Fix imports

* Rework constructor to avoid ugliness

* Update java docs

* Update java docs

* Implement asked improvements

* Fix checkstyle
2025-11-07 21:06:07 +00:00
modmuss50
6877f704a0 Move IncludedJarsNoRemapTest 2025-11-07 19:12:47 +00:00
Finn Rades
3a2a67bffe [Non-Obf]: Support JIJ with the regular jar task (#1425)
* Implement JIJ for jar task

* Implement JIJ for jar task, now without beeing a dumbass

* Reimplement old task, decouple

* reimplement last missing functionality

* fix checkstyle

* fix checkstyle v2

* fix checkstyle v3

* Remove dead / unneccesary check

* Cleanup / Code-Style

* Cleanup / Code-Style v2
2025-11-07 19:10:28 +00:00
modmuss
e50fce87cc Debof spec context (#1424)
* Ahhhhh

* Injected interfaces working

* Access wideners working
2025-11-07 19:04:50 +00:00
modmuss
48f7aa66fb Test compiling against the unobfuscated version. (#1423) 2025-11-05 13:49:09 +00:00
modmuss
8f40c6cb47 Create fabric-loom-no-remap plugin (#1417)
* Create fabric-loom-no-remap plugin

* Better

* Don't need the property

* Rename
2025-11-05 13:01:52 +00:00
modmuss50
5e5d9b8d0e Start on Loom 1.14 2025-11-05 13:01:25 +00:00
modmuss50
43023dc3b8 Update unpick 2025-11-03 15:10:25 +00:00
Juuz
5d59759a89 AbstractRemapJarTask: Fix manifests not being inherited (#1421)
* AbstractRemapJarTask: Fix manifests not being inherited

* Copy manifest before applying manifest service

This matches the original ordering of the manifest creation,
and fixes the override functionality in the service.

* Test merging named sections
2025-11-03 14:55:07 +00: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
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