Commit Graph

981 Commits

Author SHA1 Message Date
modmuss
c60b456f7e Print info about locked files during configuration or genSources (#1066)
* Print info about locked files during configuration or genSources

* Use release version

* Output adjustments

* Fix build

* Add user back
2024-03-11 21:16:46 +00:00
modmuss
994a97e3de Refactor MinecraftMetadataProvider to create it earlier (#1072) 2024-03-11 12:57:52 +00:00
modmuss
f0ca06f912 Cleanup MinecraftJarConfiguration (#1070)
* Cleanup MinecraftJarConfiguration

* Fixes

* Fixes
2024-03-11 11:36:52 +00:00
Flemmli97
21b7dd9b99 Use last 16 chars for checksum (#1064)
* Fix deprecation warning in Gradle 8.7 (#1056)

* use last 16 chars for checksum

* hash the path

Co-authored-by: Flemmli97 <Flemmli97@users.noreply.github.com>
2024-03-10 13:39:22 +00:00
modmuss
2e74a84d37 Check Minecraft java version (#1059)
* Fix deprecation warning in Gradle 8.7 (#1056)

* Check Minecraft java version

* Fix

* Fix

* Fix
2024-03-10 13:38:37 +00:00
modmuss
b44e4ec3d5 Add API to get named minecraft jars. (#1063) 2024-03-10 13:37:45 +00:00
LlamaLad7
04ca22c225 Refactor/better kotlin metadata (#1061)
* Kotlin: Don't depend on metadata internals.

* Kotlin: Remap type parameter annotations.

* Kotlin: Bump metadata to 0.9.0
2024-03-04 09:40:09 +00:00
FirstMegaGame4
ae1ba0ab86 Injected Interfaces, Generics Support (#1050) 2024-02-25 15:26:00 +00:00
modmuss
0dc1ba012a Update deps (#1054) 2024-02-24 15:04:56 +00:00
modmuss50
7904141677 Prevent Gradle from running vscode task asynchronously
Closes #1048
2024-02-19 22:02:24 +00:00
Jason Penilla
1412f65e10 Print info about process lock owner (#1040)
* Print info about process lock owner

* format

* Fix extraneous space with empty args

* Avoid leaking sensitive info in program arguments by default

* fix indent

* switch var usage around
2024-02-19 18:35:58 +00:00
modmuss
9ea10ff759 Add Offline mode / locking test (#1046)
* Add Offline mode / locking test

* Fix

* Make offline tests more resilient
2024-02-19 18:35:43 +00:00
modmuss
f0df5a5a71 Add interface injection unit test (#1052)
* Add interface injection unit test

* Cleanup and fixes
2024-02-19 15:06:33 +00:00
Jason Penilla
910963a81c Download intermediary using Gradle (#1042)
* Download intermediary using Gradle

* address review

* Remove ApiWrapper

* Use detached configuration
2024-02-08 22:20:10 +00:00
Jason Penilla
2a385b3e2b Improve locking strategy for concurrent loom executions (#1031)
* Improve locking strategy for concurrent loom executions

This is especially useful for when IntelliJ decides to randomly sync the
Gradle project while I am running Gradle from the command line already.

* Fix style violations

* Adjust feedback messages and use Duration for timeout

* Fixup message
2024-02-03 23:33:28 +00:00
modmuss50
b2376a0981 Fallback to maven central for artifacts such as sources or javadocs that are not mirrored on Mojang's repo.
Fixes #1032
2024-02-03 23:30:13 +00:00
modmuss
8250b509a4 Prepare for SelfResolvingDependency's removal & Update to Gradle 8.6 (#1038)
* Prepare for SelfResolvingDependency's removal
Update to Gradle 8.6

* Update docker images

* ProjectDependency is also a SRD

* Throw if layered mappings are created too late.
2024-02-03 23:26:33 +00:00
modmuss50
297b7f90e9 Fix split decompile task name. Closes #1029 2024-01-25 08:49:25 +00:00
modmuss
5d2b75dc1d Remapper extension improvements (#1024)
* Remapper extension improvements

* Fix

* Fix generics
2024-01-16 16:27:51 +00:00
modmuss50
255b3b2b88 Fix #1023
Just a quick fix for now, might look into why its broken in 1.6
2024-01-13 10:58:08 +00:00
modmuss50
615b81641c Don't apply loom-native-support when LWJGL is upgraded to support Java 19+.
Fixes a crash in 1.20.1, when using Java 21
2024-01-10 21:45:36 +00:00
modmuss
480dd5e393 Some minor peformance improvements (#1019) 2024-01-06 17:17:26 +00:00
Jason Penilla
8df229313e Cache FMJs and ArtifactMetadata when reading during configuration time (#1018)
We have to read every jar on remapped configs to see if they are a mod or should otherwise be remapped. By caching we can avoid re-reading jars that are java-runtime & java-api or are on multiple remapped configs. The cache scope could probably be widened to help more with multi-project builds, but I am leaving that for future work as I think it would also require some sort of invalidation.
2024-01-05 18:35:39 +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
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