Commit Graph

947 Commits

Author SHA1 Message Date
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
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
modmuss
175015c03f Linux RISC-V support (#1154)
* Linux RiscV support

* Small improvement.

* Fix comments
2024-08-12 13:11:58 +01:00
modmuss
5f09e18f03 Make no loader warning an info log (#1152)
* Make no loader warning an info log

* Remove !
2024-07-31 18:48:18 +01:00
modmuss
fa8bf5ede3 Fix and test writing uncompressed entries to zip files. (#1139)
* Fix and test writing uncompressed entries to zip files.

* Minor code cleanup
2024-07-04 17:51:41 +01:00
modmuss
462ba97d52 Fix crash in DownloadAssetsTask when there is no client run config. (#1137)
* Fix crash in DownloadAssetsTask when there is no client run config.

* Fix build
2024-07-04 17:51:41 +01:00
Juuz
f456190f71 NestableJarGenerationTask: Change superclass to AbstractLoomTask (#1136)
This fixes the task group.
2024-07-04 17:51:41 +01:00
modmuss
097fd98fc9 Update to Gradle 8.8 (#1125) 2024-06-14 08:49:47 +01:00
modmuss50
eacd6fbc5f Don't throw when loom was unable to stop the worker, as it may have already been stopped by Gradle. 2024-06-13 22:14:37 +01:00
modmuss50
bee963b1d0 Reset decompiler cache with refresh deps 2024-05-23 17:40:32 +01:00
modmuss50
7c70a5f8a4 Fix handling of classes with no package in CachedJarProcessor.
Closes #1121
2024-05-23 16:45:25 +01:00
modmuss50
63214b491f Don't print warning about incorrect sources jar when there is no sources jar. 2024-05-16 21:17:14 +01:00
modmuss
8110523508 Add super classes to decompiler cache ClassEntry (#1118)
* Add super classes to decompiler cache ClassEntry

* And implement

* Add existing classes jar for the decompiler
2024-05-14 21:31:26 +01:00
modmuss
db65759c88 Experimental Sandbox support (#1107) 2024-05-09 09:10:05 +01:00
modmuss
5b7d598d02 More work towards config caching support (#1115) 2024-05-05 10:21:36 +01:00
modmuss
8ba38ef904 Fix Mojang mappings with noIntermediateMappings (#1114)
* Try to fix mojang mappings with no intermediary mappings

* Fix
2024-05-05 09:20:46 +01:00
Space Walker
c5c52aba65 Use different cache files for custom manifest and metadata jsons (#1077)
* use different cache files for custom manifest and metadata jsons

* add properties for custom manifests to loom extension api

* expand manifests api with a priority queue

* add ApiStatus annotations where needed

* explain sort order in javadoc

* add getVersionMetaFileName function

* merge the two manifests locations together

* convert hash code to hex string

* fix metadata provider tests

* update priorities of built in manifests so they're first by default

* fix VersionsManifestAPI javadoc

* update comment in MinecraftMetadataProvider

* fix ManifestLocation.cacheFile

* deprecate and replace getCustomMinecraftManifest
2024-05-04 18:18:26 +01:00
Luke Bemish
63ebc35e1d Improve how include configuration works (#1080)
* Initial work on better include configuration

* Remove unused members

* Substantially simplify

* Only process configuration once

* Hopefully fix tests

* Make platform dependencies work again

* Fix edge case where include or super configuration has withDependencies action

* Fix including subproject/composite jars and add test

* Remove needless following of external result

* Change priority for module location discovery

* Fix failing test

* Apply suggestions from code review

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

---------

Co-authored-by: modmuss <modmuss50@gmail.com>
2024-05-04 18:16:32 +01:00
modmuss50
0b2d683c1c Improve error message when failing to parse fmj json.
Closes #1103
2024-05-04 18:12:57 +01:00
modmuss
be1e207ebd Stop Gradle daemon after unrecoverable zip errors (#1113) 2024-05-02 18:08:33 +01:00
modmuss
2752dc3a6a Make Vineflower the default decompiler (#1110) 2024-04-26 11:52:26 +01:00
modmuss
2c3a0adb5b Add manifest entry allowing deps to define known bsms (#1111) 2024-04-26 11:52:09 +01:00
modmuss50
683a3ba523 Merge remote-tracking branch 'origin/dev/1.6' into exp/1.7 2024-04-25 20:26:24 +01:00
modmuss
bd009515cb Update loom native, with better error handling. (#1102) 2024-04-20 22:49:21 +01:00
modmuss
e142cb8d0c Print file locks in more cases during decompile (#1099) 2024-04-17 20:41:29 +01:00
modmuss
9a3b82c8a3 Initial config caching work (#1053) 2024-04-15 18:56:59 +01:00
modmuss
b8da4e5498 Update dependencies (#1089)
* Update depedencies

* Fix Gradle 9 deprecation warning

* No need for the shadow jar plugin
2024-04-15 15:12:49 +01:00
modmuss
7010ad633b Fix sources publishing (#1098)
* Fix sources publishing

* Revert "Fix sources publishing"

This reverts commit a3fec653dc5255b9bc939dd3305e5df8529da729.

* A better fix
2024-04-15 15:12:10 +01:00
modmuss
1b1168d7e2 Fix and test line number remapper (#1097) 2024-04-15 15:11:57 +01:00
modmuss
02af089e57 Lock disowning +write linemap txt file for debugging (#1094)
* Write line map file (#1090)

* Lock disowning (#1093)

* Lock disowning

* Comment fix

* Typo

* Use a much lower lock timeout on CI
2024-04-14 15:14:44 +01:00
modmuss
e96c0e2fbd Fix remapped sources publishing (#1084) 2024-04-01 21:13:50 +01:00
modmuss50
ba8124e2d6 Set artifact urls for the Mojang maven repo in the correct place. 2024-04-01 15:00:03 +01:00
modmuss50
658ca0c709 Replace hard link with move.
Fixes https://github.com/orgs/FabricMC/discussions/3659
2024-03-20 23:03:25 +00:00
modmuss50
713e1ff268 Enable decompile cache by default 2024-03-20 10:34:19 +00:00
modmuss50
c3dd16d9bf Fix idea sync task group 2024-03-20 10:26:00 +00:00
modmuss50
d0feecfbcb Don't fail setup if a project FMJ is invalid. 2024-03-19 23:03:49 +00:00
modmuss50
ae9db3fbbd Fix datagen run config having incorrect name. Closes #1000 2024-03-19 22:15:33 +00:00
chris
c1d51b1149 Introduce SemVer version parsing to included mods/libraries (#1075)
* Introduce SemVer version parsing & ".Final" suffix stripping to included mods/libraries

* Address review about `CONSTANT_CASE` variables, add unit test

* thanks spotless :/
2024-03-19 20:23:29 +00:00
modmuss
455b9d6aed Only set startFirstThread on versions using LWJGL 3 (#1076)
* Only set startFirstThread on versions using LWJGL 3

* Lazily evaluate RunConfig
2024-03-19 20:08:35 +00:00
Space Walker
3670ccb959 Support merging pre 1.3 Minecraft versions. (#1026)
Co-authored-by: modmuss50 <modmuss50@gmail.com>
2024-03-19 17:25:57 +00:00
modmuss50
30ef45e878 Fix async zip processor executor.
Virtual threads are much slower, lets not worry about them for now.
2024-03-18 16:24:07 +00:00