Commit Graph

1256 Commits

Author SHA1 Message Date
modmuss50
c52f868af4 Revert checkstyle update for now. 2024-01-04 14:43:50 +00:00
modmuss50
793388cbfb Update libs 2024-01-04 14:07:12 +00:00
modmuss
872d12ace0 Update tiny-remapper, misc perf improvements, test fixes. (#1009)
* Only mixin remap/analyse classpath jars that use static mixin remappings.

* More of a mess

* Less of a mess?

* Nope?

* Exclude the none root MC jars from the remap classpath when using MPO

* Improve test a little

* Update TR

* Checkstyle

* Fix DLN test

* Fix possible crash when closing build services
2024-01-04 00:39:36 +00:00
modmuss
c5d73548e7 Remove jackson (#1014)
* Remove jackson

* Fix unit tests
2024-01-02 22:35:37 +00:00
modmuss
20ea426a7a Ensure that modImplementation is processed first, so any installer.json on that configuration takes priority. (#1015) 2024-01-02 22:35:22 +00:00
modmuss50
6452509ec5 Optimise IncludedJarFactory & ZipReprocessorUtil
No longer processes the jar multiple times, caches the jar in place.

ZipReprocessorUtil now directly writes the file to disk, instead of first copying it to memory.
2023-12-20 16:58:51 +00:00
modmuss
85101bca01 Fix Intelij download sources hook. (#1006)
* Fix Intelij download sources hook.

* Cleanup and performance improvements
2023-12-20 16:49:42 +00:00
modmuss
ecc7e730e9 Read data generation modid from FMJ by default. And code cleanup. (#1008)
* Read data generation modid from FMJ by default. And code cleanup.

Closes #999

* Fix #1000
2023-12-20 15:52:13 +00:00
modmuss
51e1da7330 Update deps (#1007)
* Update deps

* Fix KotlinRemapperClassloaderTest
2023-12-20 10:14:26 +00:00
modmuss50
e980ee60ad Use a Property for appendProjectPathToConfigName 2023-12-19 16:49:27 +00:00
modmuss50
a6547244e9 Add loom.getMinecraftVersion()
Closes #982
2023-12-19 16:31:35 +00:00
Matt Sturgeon
bbf7f96b41 Allow disabling RunConfig appending project path (#1005)
* Fix data gen folder not being added to resources.

Closes https://github.com/FabricMC/fabricmc.net/issues/69

* Allow disabling RunConfig appending project path

Add a `appendConfigNameWithPath` property to `RunConfigSettings` controlling whether to append the path for non-root projects.

Default behaviour is unchanged.

---------

Co-authored-by: modmuss50 <modmuss50@gmail.com>
2023-12-19 16:25:19 +00:00
Jason Penilla
6f38d5f2e8 Change how include disables transitive dependencies to allow platform dependencies to work (#838)
* Change how `include` disables transitive dependencies to allow platform dependencies to work

* style fix

* Cleanup and add test

* spotlessApply

---------

Co-authored-by: modmuss50 <modmuss50@gmail.com>
2023-12-19 13:46:35 +00:00
Jamalam
f2e8ff2cef Check refmaps exist before adding them to mixin configs (#971) 2023-12-15 09:50:25 +00:00
modmuss
014a6fce2b Remapper extensions (#984)
* Remapper extension API

* Fix build

* More work

* Fixes, thanks Gradle.

* Build fix

* Cleanup
2023-12-15 09:47:26 +00:00
Juuz
0e9663b7a4 Add missing Minecraft version check for mappings, fix typos (#1002)
* Fix data gen folder not being added to resources.

Closes https://github.com/FabricMC/fabricmc.net/issues/69

* Add missing Minecraft version check for mappings, fix typos

Fixes #1001.

* Add test for TinyJarInfo

---------

Co-authored-by: modmuss50 <modmuss50@gmail.com>
2023-12-15 09:46:53 +00:00
modmuss50
cf8cbb245b Fix data gen folder not being added to resources.
Closes https://github.com/FabricMC/fabricmc.net/issues/69
2023-12-09 22:28:50 +00:00
J.T. McQuigg
3df66d612a Update Github Actions (#997) 2023-12-09 22:14:33 +00:00
dicedpixels
7dfe800768 Filter out realms connection error message from debug log (#991)
* feat: filter out realms connection error message from debug log

* fix: multiple regex filters
2023-12-09 14:03:02 +00:00
J.T. McQuigg
53112fb0b5 Replace Deprecated .getBuildDir with .getLayout().getBuildDirectory() and make Lazy (#978)
* replace Deprecated .getBuildDir with .getLayout().getBuildDirectory().getAsFile().get()

Signed-off-by: Joseph T. McQuigg <J.T.McQuigg12@gmail.com>

* Make lazy

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

* MORE

Signed-off-by: Joseph T. McQuigg <J.T.McQuigg12@gmail.com>

* remove file import

Signed-off-by: Joseph T. McQuigg <J.T.McQuigg12@gmail.com>

---------

Signed-off-by: Joseph T. McQuigg <J.T.McQuigg12@gmail.com>
Co-authored-by: modmuss <modmuss50@gmail.com>
2023-12-08 09:00:34 +00:00
Jason Penilla
229b3b3800 Don't resolve source artifacts in CI (#994) 2023-12-04 11:52:11 +00:00
modmuss
b987b4e711 Always use unix line endings on windows (#986)
* Always use unix line endings on windows

* Also run checks on windows.

* Fix binary files :)
2023-11-23 22:36:57 +00:00
modmuss
92da5adb48 Remove Minecraft libraries from the remap classpath. (#987) 2023-11-20 19:15:30 +00:00
modmuss
99380d98e5 Add Fabric-Loom-Mixin-Remap-Type manifest entry (#980) 2023-11-20 15:19:48 +00:00
Jason Penilla
f63a4f4d25 Skip remapping in AbstractRemapJarTasks when source and target namespaces match (#985)
* Skip remapping in `AbstractRemapJarTask`s when source and target namespaces match

The "remap jar" tasks have much more functionality than simply remapping jars at this point, such as adding namespace metadata, nesting jars, ensuring reproducible builds, etc. Some custom build logic may want to take advantage of these features without the full overhead of no-op remapping with TinyRemapper/Mercury.

* Add test
2023-11-20 10:35:46 +00:00
modmuss
846d16ce2d Update deps (#983) 2023-11-19 16:59:35 +00:00
modmuss50
7c3bec39cb Create remap configurations for automatic data generation configuration.
Closes #972
2023-11-09 22:33:17 +00:00
modmuss50
09a4ffb803 Disable run config tasks when removed from loom.runs
It's not possible to remove a gradle task once registered.
2023-11-09 22:26:38 +00:00
modmuss
afe3d8ad89 Fix tests on newer Gradle versions (#979)
* Test against Gradle 8.5-rc1

* Test fixes for 8.5/8.6

* Spotless
2023-11-09 13:39:17 +00:00
modmuss
83ab524639 Update MIO to 0.5.0 (#974)
* Update MIO to 0.5.0

* Beta 3 + fix
2023-11-06 19:16:44 +00:00
modmuss
ee0e5df98c Fix server only jars. (#968)
* Actally fix server only jars.

* Cleanup the single jar names
2023-11-06 10:40:49 +00:00
Juuz
731f0728da Support mixins without refmaps in mod dependencies (#976)
* Support mixins without refmaps in mod dependencies

* Fix review concerns

* Add test for MixinDetector

* Change warning to a RuntimeException

* FabricAPITest: Test building without mixin AP

* Deal with Eclipse being stuck in the 2010s and not supporting basic Groovy syntax

* Auto-fix Groovy code format

* Fix FabricAPITest not running

* Fix code style
2023-11-06 10:40:24 +00:00
modmuss
fd34697015 Raspberry Pi support (#973)
* Raspberry Pi support

* Reduce log level
2023-11-02 21:51:57 +00:00
modmuss50
a60928ab28 Start on 1.5 2023-11-02 19:21:52 +00:00
modmuss
7106441298 Fix extending the client/datagen compile/runtime classpath from main (#967) 2023-10-22 13:52:17 +01:00
modmuss50
39841d8dc0 Revert "Fix server only jar, closes #966"
This reverts commit eb0c45956b.
2023-10-16 18:57:31 +01:00
modmuss50
eb0c45956b Fix server only jar, closes #966 2023-10-16 16:20:43 +01:00
modmuss
a6534adeaf Fix runtime crash on Intel Mac's when LWJGL has been updated. Closes #963 (#964) 2023-10-16 16:20:43 +01:00
modmuss
8c7c14e922 Add fabricApi.configureDataGeneration API/DSL to help with setting up data generation. (#960)
* Add fabricApi.configureDataGeneration API/DSL to help with setting up datageneration.

* Clean + add option to not add to resources

* Dont create new task
2023-10-16 16:20:43 +01:00
haykam821
78a903d2c9 Sort extra manifest attributes (#958) 2023-10-16 16:20:43 +01:00
modmuss
46e27ce1ba Rename .jnilib natives to .dylib (#956) 2023-10-16 16:20:43 +01:00
embeddedt
b7c80133ce Use hash of cache value as the JAR name for processed Minecraft JARs (#944)
* Use hash of cache value as the JAR name for processed Minecraft JARs

In basic testing, this cuts down the number of JARs to just one
provided the same AWs are used on all subprojects

* Fix checkstyle

* Remove redundant code

* Fix mod javadoc caching, and fixup tests.

* Hopefully fix ModJavadocTest on windows.

---------

Co-authored-by: modmuss <modmuss50@gmail.com>
2023-09-25 22:44:31 +01:00
modmuss
bd09af1783 Downloader: Protect against partially downloaded files. (#954)
* Downloader: Protect against partially downloaded files.

* Cleanup

* Add 1 minute timeout.

* Checkstyle
2023-09-22 18:55:44 +01:00
modmuss50
0b36121357 Add Fabric-Jar-Type to jar manifest.
Either 'classes' or 'sources', the idea is mod distribution platforms can check that sources jars are not uploaded accidentally.

Closes #939
2023-09-11 11:47:19 +01:00
modmuss
1a4f76584f Fix reproducable zips across timezones. (#952)
* Create test for zip timezones

* Fix :)

* Update ReproducibleBuildTest

* Update windows hashes
2023-09-11 11:31:10 +01:00
modmuss
71b7bea854 Support the Vineflower decompiler (#951) 2023-09-11 11:29:01 +01:00
modmuss
0a3779f41d Fix and test FabricApiExtension not supporting deprecated modules. (#950) 2023-09-09 22:37:02 +01:00
modmuss
e924faf44e Support reading "development" dependencies from the installer json. (#949)
* Support reading "development" dependencies from the installer json.

* Fix checkstyle and comment.
2023-09-09 22:36:51 +01:00
modmuss50
4caf4f831e Sort client only entries, fixes #940 2023-09-09 17:31:43 +01:00
modmuss
ae159dd126 Support Zip.getEntryCompression() setting (#936)
* Support Zip.getEntryCompression() setting

* Checkstyle

* Set for both the entry and ZOS
2023-09-09 13:21:43 +01:00