Commit Graph

1256 Commits

Author SHA1 Message Date
modmuss
e3cd4947bf Remove loom bootstrap (#1261)
* Remove bootstrap, its no longer required as Gradle has a nicer error message for outdated java.

* No need to check idea or gradle version
2025-02-09 23:27:48 +00:00
modmuss
34edc76a50 Improved class entry validation (#1260)
* Improved class entry validation

* Fixes and tests
2025-02-09 23:21:54 +00:00
modmuss50
74795b0250 Add "productionRuntimeMods" configuration 2025-01-27 11:06:43 +00:00
modmuss
fc26023047 Configure compile task mixin options lazily (#1256)
* Try to configure compile task mixin options lazily

* Fix CompileJava being realised too soon, and other misc lazy task fixes.
2025-01-26 21:06:30 +00:00
modmuss
cd6e7a3e28 Run tests with latest nightly (#1255) 2025-01-26 18:30:37 +00:00
modmuss50
1c025787b9 Fix VSC working directory location.
Co-authored-by: fewizz <hazeevaidar@gmail.com>
2025-01-26 14:26:41 +00:00
modmuss
9bcce94d5a Update to Mapping-IO 0.7.0 & Tiny Remapper 0.11 (#1245)
* Update to Mapping-IO 0.7.0

* Update to Mapping-IO 0.7.1

* Revert changes

* Update tiny remapper

* Fix invalid tiny v2 header.
2025-01-26 14:02:16 +00:00
modmuss50
cb8ba8fe1d Correct use UntrackedTask. Also fix #1254 2025-01-26 12:35:26 +00:00
modmuss
362fc98c47 Improvements to test and IDE runs (#1252)
* Improves to test and IDE runs

* Use correct sourceset
2025-01-22 22:05:55 +00:00
modmuss
3ee1372feb Fix getCompileRuntimeModsFromRemapConfigs not returning mods that have different versions on the compile/runtime classpath. (#1246) 2025-01-08 09:51:42 +00:00
modmuss
e1cc6f05fa Add support for running the production client with the tracy profiler. (#1244)
* Add support for running the production client with the tracy profiler.

* Fix test

* Update tracy capture
2025-01-04 21:06:28 +00:00
modmuss
52a19b3bf7 Use XVFB on Linux CI, allows running the client prod tasks on a headless OS (#1243) 2025-01-02 20:35:00 +00:00
modmuss
8b6658c559 Production run tasks (#1241)
* Production run tasks

* Fix

* Add some docs
2025-01-02 14:25:32 +00:00
modmuss
c46e252643 Add DSL to configure Fabric API game tests (#1240)
* Add DSL to configure game tests

* Small cleanup

* More work
2025-01-02 14:25:20 +00:00
modmuss
454e32ece7 Refactor Fabric API extension (#1238)
* Refactor Fabric API extension

* Fix

* Fix

* Even more cleanup
2025-01-01 14:25:54 +00:00
Space Walker
543d0a3d10 create backup jars for legacy merged mapped minecraft providers (#1230)
* create backup jars for legacy merged mapped mc providers

* only merge jars if remapping occurred

* Cleanup + add logger

* Fixes

---------

Co-authored-by: modmuss50 <modmuss50@gmail.com>
2024-12-29 15:57:45 +00:00
Space Walker
44ca4b8b8a Run library processor for server-only projects for Minecraft versions without bundle metadata (#1231)
* run library processor for server-only projects without  bundle metadata

* implement suggested changes
2024-12-29 15:57:11 +00:00
modmuss
cc51c64c37 Fix #1229 (#1237) 2024-12-29 15:56:17 +00:00
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
modmuss50
d9349c57e1 Bump version 2024-12-23 14:19:26 +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