Commit Graph

1078 Commits

Author SHA1 Message Date
tranquillity-codes
3fce2627d6 Make LineNumberRemapper stop trying to guess line numbers (#1235)
Usually the guesses were wrong, so instead let's not generate a
LineNumberTable for lines that lack a mapping in the linemap. This makes
the behavior on decompiler bugs/issues more predictable.
2024-12-23 15:57:57 +00:00
modmuss
2ba633badf Download source artifacts in parallel (#1232) 2024-12-23 14:24:39 +00:00
modmuss50
40d17bacee Update to Gradle 8.12 2024-12-23 14:19:32 +00:00
modmuss
c80333b2bd Fix client data gen source set not depending on main when using split sources (#1228)
* Fix client data gen not depending on main when using split sources

* Also don't delete datagen output on clean

* Checkstyle
2024-12-02 18:02:37 +00:00
modmuss50
1d0946f55b Fix datagen task output 2024-11-30 12:22:37 +00:00
modmuss
0769601cfe Configure classpath groups for test task. (#1227)
* Configure classpath groups for test task.

Closes #1192

* Fix missing patch

* Fix test
2024-11-29 17:09:30 +00:00
modmuss
7cc7cb0c15 Allow datagen tasks to be skipped when up to date. (#1226)
Fixes #1135
2024-11-29 09:50:14 +00:00
Jason Penilla
e5ad4e186c Fix getKnownIndyBsms storing a set in a list without sorting (#1225)
* Cache source mappings (#1220) (#1221)

* Fix getKnownIndyBsms storing a set in a list

This caused remapJar to re-run unnecessarily

---------

Co-authored-by: modmuss <modmuss50@gmail.com>
2024-11-29 09:15:00 +00:00
modmuss
c4e2679e24 Add option to configure datagen with the client. (#1224)
* Add option to configure datagen with the client.

* Revert nightly upgrade
2024-11-28 20:18:25 +00:00
modmuss
38cff6d2bb Make ExceptionUtil & DaemonUtils config cache safe. (#1223)
* Make ExceptionUtil & DaemonUtils config cache safe.

* Fix tests

* Fix build
2024-11-28 15:00:01 +00:00
Liyan Zhao
758dcb748d fix: ignore some very very old kotlin classes to prevent them breaking remapping process (#1210)
* fix: ignore some very very old kotlin classes to prevent them breaking remapping process. Why? 7c539b01f5/libraries/kotlinx-metadata/jvm/src/kotlin/metadata/jvm/KotlinClassMetadata.kt (L427)

* fix: review suggestions
2024-11-28 10:40:39 +00:00
modmuss
816d778e61 Use the stable kotlin-metadata (#1222)
* Use the stable kotlin-metadata since Kotlin 2

* More fixes

* Fix build

* Fix unit test
2024-11-28 10:39:14 +00:00
modmuss
e9af47166a Cache source mappings (#1220) 2024-11-26 09:58:43 +00:00
modmuss
6492178eaf Add decompile cache rules properties. (#1217)
Closes #1206
2024-11-22 10:25:56 +00:00
Ash
13ed992ad1 fix: make JarNester deterministic (#1197)
* fix: make JarNester deterministic

Sorts the list of jars to nest before adding them to fabric.mod.json to ensure the ordering is deterministic.

* fix: make ordering use a platform-independent sort
2024-11-15 10:25:18 +00:00
modmuss
1f28935221 Initial project isolation support (#1215)
* Enable project isolation

* Add test for COD

* Make spotless happy
2024-11-14 21:56:20 +00:00
modmuss
e387514ff7 Update to Gradle 8.11 (#1214)
* Update to Gradle 8.11

* Fix 8.12 producing empty outputs

* More 8.12 fixes
2024-11-14 18:44:05 +00:00
modmuss
495aae338f Fix #1205 (#1207) 2024-11-01 15:14:41 +00:00
modmuss
050eb5a541 Handle idea modules not using the project build path. (#1201) 2024-10-26 18:43:49 +01:00
modmuss
6b18a7b4b0 Fix dependency source remapping + update Mercury (#1194) 2024-10-14 19:55:49 +01:00
modmuss50
23f30737be Fix idea run configs from not generating 2024-10-11 20:13:15 +01:00
modmuss
ca9ed4764d Update to ASM 9.7.1 (#1188)
* Update to ASM 9.7.1

* Fix Gradle 8.12 nightlies
2024-10-10 08:52:04 +01:00
modmuss50
c6e4025a0f Fix #1186 Incorrect location of launch.json for vscode task 2024-10-09 09:32:15 +01:00
modmuss
8c2d5525e8 Fix #1184 : GradleUtils.getDependencyProject not working for typesafe project accessors (#1185) 2024-10-02 09:43:37 +01:00
modmuss
e70ca3d7c1 Fix and test no cache gen sources (#1183)
* Fix and test no cache gen sources

* Spotless
2024-09-30 23:33:40 +01:00
Space Walker
e5b785ab41 Select jar configuration based on which sides are present (#1182)
* auto select jar configuration based on which sides are present

* move logic into jar configuration property convention
2024-09-30 14:37:25 +01:00
秋 雨落
4f6992430f Fix transformJson mis-encoding. (#1181)
Signed-off-by: 秋雨落 <i@rain.cx>
2024-09-30 09:47:17 +01:00
modmuss50
799759ae64 Ensure that gen sources always runs after remap jar. 2024-09-28 14:04:34 +01:00
modmuss50
fa8a43b531 Remove configuration cache warning 2024-09-26 22:31:06 +01:00
modmuss
e4d4503e2a Update deps, suppress 8.11 warnings, remove self resolving dependency code (#1180)
* Update a handful of deps

* Fully remove deprecated SelfResolvingDependency support

* Work around Gradle 8.11 deprecation, lets deal with it later.
2024-09-26 22:29:43 +01:00
modmuss
567f978578 Setup the test sourceset better when using split sources. (#1179)
* Setup the test sourceset better when using split sources.

Fixes #1060

Also added a tool to extract test projects to make them easier to work on.

* Fix
2024-09-26 20:39:22 +01:00
modmuss
bc9ce581e4 Add a Gradle property to override the runtime java compat version. (#1178) 2024-09-26 19:03:53 +01:00
Mega
5b44b25066 Fix a Specific Case Issue of Generics in Injected Interfaces (when more than one type parameter are provided by the Target Class) (#1177)
* Fix Other Type Parameters than the First One not Being Read

* spotlessApply
2024-09-24 18:55:13 +01:00
Space Walker
bc58b6f058 Fix conflicts caused by MappingsMerger (#1171)
* only complete official namespaces for unobfuscated members

* TinyRemapperHelper.create does not like null names

* add MappingsMergerTest
2024-09-24 09:51:40 +01:00
modmuss
4d3c0a811c Gen sources config caching support (#1169)
* Gen sources config caching support

* Fixes

* Some fixes
2024-09-17 20:39:57 +01:00
modmuss50
a5985401db Merge remote-tracking branch 'origin/dev/1.7' into exp/1.8 2024-09-08 10:55:28 +01:00
James Mitchell
36a199f3b8 Only validate loom version when mixins are to be remapped with TinyRemapper (#1168)
* Only validate loom version when mixins are to be remapped with TinyRemapper

* add tests

* change existing test to match new logic

* update "Valid loom version" test

* tabs for indentation, spaces for alignment

* fix more sneaky tabs
2024-09-08 10:52:32 +01:00
modmuss
5f9f087ff7 Rewrite migrate mappings task to be configuration cache compatible. (#1167) 2024-09-07 12:50:20 +01:00
modmuss
d18c109e58 More configuration cache support for IDE tasks (#1166) 2024-09-06 23:13:10 +01:00
Space Walker
039b435e5d use manifest name in file name instead of url hash (#1127) 2024-09-03 18:13:04 +01:00
Space Walker
7ab6e56a37 fix inner class detection in JarWalker (#1148) 2024-09-03 18:11:53 +01:00
ev chang
648a059d26 Add SHA1 suffix to intermediaries (#1141)
* Add SHA1 suffix to intermediaries

Having two or more different intermediaries for one version breaks; we use this to differentiate between intermediaries.

* Only add SHA1 to name if intermediary url is different from default

* Format code and remove duplicated method
2024-09-03 18:11:37 +01:00
modmuss
543e49dfe0 Configuration cache support for IDE tasks (#1163)
* Configuration cache support for IDE tasks

* Fix some tests
2024-08-31 10:13:07 +01:00
modmuss
f3a9a49c6f Enable configuration cache for most tests by default (#1162)
* Enable configuration cache for all tests by default

* Support config cache in test projects

* Some config cache test fixes

* Config caching for run game tasks

* Problems for later

* More problems for later

* Bump min idea version, and remove version check.

* Untested client entries service

* Fixes
2024-08-30 14:39:48 +01:00
modmuss
9157c22448 Inital remap jar configuration cache support (#1161)
* Move everything to the new service system

* Checkstyle

* Fix unit tests + make them use the internet less

* Some more fixes

* Split the mixin ap mapping handling out into its own service.

* Checkstyle

* Fixes

* Move mixin refmap handling to a service

* Minor changes
2024-08-20 12:51:47 +01:00
modmuss
3c32259001 New service system for source jar remapping (#1160)
* New service system for source jar remapping

* Remove the class generation, its too complex and useless.

* Fix

* Tests and cleanup

* Add basic SourceRemapperService test

* Skip file property tests on windows.
2024-08-19 15:18:13 +01:00
modmuss
4fef156888 Update to Gradle 8.10 (#1157)
* Update to Gradle 8.10

* 8.10 for real
2024-08-15 14:29:18 +01:00
Juuz
efe66075ba Include dev jars from other projects in classpath groups (#1155)
* Include dev jars from other projects in classpath groups

* Verify that projects use Loom before getting namedElements
2024-08-15 13:28:37 +01:00
modmuss
b533dacba8 Remove multi project optimisation (#1159)
* Remove multi project optimisation

* Fix build

* Fix FAPI test
2024-08-14 10:59:18 +01:00
modmuss
5f52e1232f Configuration cache support for SourceSetHelper.findFileInResource (#1158)
* Configuration cache support for SourceSetHelper.findFileInResource

* Prove that config cache is working

* Misc improvements

* Fix tests on windows
2024-08-12 13:12:29 +01:00