modmuss50
3913c2e897
Add a lock file around building the loom cache. Regenerate if the lock file exists.
...
This helps to ensure that failed or canceled builds do not cause the cache to be left in an undetectable invalid state.
2022-07-30 19:21:56 +01:00
modmuss50
c7e10a596e
Use Arg file to pass arguments when running using Idea and run tasks. ( #691 )
...
* Use Arg file to pass arguments when running using Idea and run tasks.
* Use arg file in eclipse
2022-07-30 07:41:31 +01:00
modmuss50
11ed1309e8
Add support for Mixin accessors and handle inner classes better.
2022-07-30 00:11:28 +01:00
modmuss50
b7f4939632
Harden downloader against partial downloads by creating a lock file while downloading.
2022-07-30 00:02:14 +01:00
modmuss50
7f1b006d66
Fix misleading error, afterEvaluate is still call even if the build has already failed.
2022-07-29 23:48:28 +01:00
modmuss50
37850a5868
Add ValidateMixinNameTask
2022-07-29 20:55:30 +01:00
modmuss50
a0187c95e4
Ensure that deps with injected ifaces are on both the compile and runtime classpath.
2022-07-25 22:50:12 +01:00
modmuss50
c06fa216df
Add maxRetries to the downloader, should help when downloading the assets.
2022-07-25 20:15:56 +01:00
modmuss50
53f239fd8e
Remove shareCaches option, has not been used for a few versions.
...
Was basically designed for FabricAPI only, now the same is applied where possible to all projects in a much better fashion.
2022-07-25 18:39:39 +01:00
modmuss50
688385a1bb
Update deps + fix some failing tests.
2022-07-25 18:37:16 +01:00
modmuss50
c4c6de23e3
Rewrite download utils ( #681 )
...
- eTag support (It seems Mojang's CDN and our meta/maven do not support this right now)
- Age based caching.
- Sha1 based caching.
- HTTP(S) proxy settings should now be respected.
- The downloader has better awareness of offline mode and refresh deps, cleaning up the calling code a bit.
- Uses the new Java 11 HTTP client, provides async support for downloading multiple files
- Progress handling (TODO needs hooking up to gradle)
- Better compression support. Handled by [Methanol](https://mizosoft.github.io/methanol/ )
- Unit tested with a real web server.
2022-07-25 18:01:11 +01:00
modmuss50
4bc7e39149
Ensure the compileClasspath is fully resolved before migrating mappings.
2022-07-08 20:41:53 +01:00
modmuss50
991628d619
Ensure all mercury classpath entries exist. Fixes a mmigrateMappings crash in some multi-project setups.
2022-07-08 20:28:52 +01:00
modmuss50
aa77ad8c4c
Support Mixin 0.8.5's configurable AP message levels.
...
Same API as MixinGradle. Closes #671
2022-07-03 21:23:36 +01:00
modmuss50
14b24b7e2b
Support configuring run environment variables & Fixes #653
2022-07-03 20:51:45 +01:00
modmuss50
48fafb9a64
Remove unused properties.
2022-07-03 15:09:45 +01:00
modmuss50
35d37def55
Add JarSplitter.
...
Still needs writing up.
2022-07-03 15:07:13 +01:00
modmuss50
5f09152e9f
Merge branch 'dev/0.12' into exp/0.13
2022-07-02 23:42:41 +01:00
modmuss50
b25e5cd5a6
Only realise the gradle property being queried.
...
Co-authored-by: Jason Penilla <11360596+jpenilla@users.noreply.github.com >
2022-07-02 23:38:49 +01:00
modmuss50
97927f913a
Replace getRemapArchives & getSetupRemappedVariants with a gradle property. ( #678 )
...
* Replace getRemapArchives & getSetupRemappedVariants with a gradle property as they are evaluated too early to be set.
* Use true for all projects.
* Cleanup, you can set properties for each subproject.
* Fix docs.
2022-07-01 18:13:56 +01:00
modmuss50
1e77bb0404
Reject the unmapped dependency from the target configuration. Completes #679
...
Prevents having duplicate dependencies on the classpath.
2022-06-29 18:22:21 +01:00
modmuss50
da34ea4bf0
Only run the idea sync task when one or more run configs is generated for the project.
...
Speeds up a fabric API sync by a reasonable amount.
2022-06-26 14:04:53 +01:00
modmuss50
3700fad9ca
ARM64 Windows & Linux support for MC versions that have classpath natives. Closes #675
2022-06-26 00:02:46 +01:00
modmuss50
da2992e7d9
Configurable remap configs. ( #674 )
...
* First pass at configurable remap configs.
* No benefit to making it lazy: https://github.com/gradle/gradle/blob/v7.4.2/subprojects/plugins/src/main/java/org/gradle/api/plugins/BasePlugin.java#L104 ... fixes some stuff to make it work.
2022-06-25 21:38:43 +01:00
modmuss50
9b2b857b38
Update MC manifest url.
2022-06-21 19:05:09 +01:00
modmuss50
317c6daedd
Apply the same manifest attributes to the sources jar. Including a list of client only entries.
...
Will be used to split the sources into client/common jars in a later change.
2022-06-20 21:11:11 +01:00
modmuss50
f705e997e8
Add "fabric.loom.test.homeDir" system prob to re-use gradle home between test runs. Vastly speeds up unit tests.
2022-06-20 20:49:35 +01:00
modmuss50
e86e2fc39c
Lazily eval jar tasks.
2022-06-20 20:39:10 +01:00
modmuss50
ac0917e9cb
Fix client only sources missing from sources jar registered after enabling split sourcesets.
2022-06-20 20:23:39 +01:00
modmuss50
78db6145fd
Cleanup old derp from MigrateMappingsTask. Closes #657
2022-06-20 20:17:22 +01:00
modmuss50
d1263e1539
Fix handling of mismatched client/server library versions. Closes #665
2022-06-20 20:16:15 +01:00
modmuss50
0460f0d618
Fix crash introduced in previous zip related changes.
2022-06-20 20:13:03 +01:00
modmuss50
e422dab784
Merge branch 'dev/0.12' into exp/0.13
2022-06-20 19:42:38 +01:00
modmuss50
d7001e9a3d
Don't use java toolchain for bootstrap project.
...
Reverts an accidental change from fff4afe405
2022-06-19 13:26:24 +01:00
modmuss50
651bcec276
Use TR's ref coutning FileSystemHandler ( #639 )
...
* Dont depend on other prepare tasks, only run after.
* Update for: https://github.com/FabricMC/tiny-remapper/pull/93
* Cleanup
* Bump deps
2022-06-16 19:22:13 +01:00
modmuss50
ef614e53c2
Start 0.13 cycle
2022-06-16 19:09:50 +01:00
Jared
722a72f999
Add Jetbrains Annotations to test compile ( #670 )
2022-06-16 19:07:40 +01:00
modmuss50
84a70b3e5d
Disable excluding client only libraries from the server run.
...
Mojang hot-fixed netty on the client only, causing loom to think its now a client only lib...
This needs improving to not care about the versions.
2022-06-08 19:26:17 +01:00
modmuss50
adc44ce0e9
Add "fabric.loom.skip-env-validation" property to skip environment validation.
2022-06-03 22:46:46 +01:00
modmuss50
38bc74db30
Fix build
2022-05-30 19:09:28 +01:00
modmuss50
ddd1081c28
Fix failing tests
2022-05-30 17:20:13 +01:00
Jason
c8e7fe2212
Add kotlin tests to actions matrix ( #660 )
2022-05-30 17:18:33 +01:00
modmuss50
768d15d7d9
Fix #659 Crash on arm machines with using 1.19-pre1+
2022-05-29 09:58:57 +01:00
modmuss50
a2e84e242a
Fix #654
2022-05-26 11:32:53 +01:00
modmuss50
3066b58059
Fix retrieving kotlin plugin version for beta/rc builds.
2022-05-26 11:31:45 +01:00
modmuss50
07ded449ee
Update mercury and set source compatibility version to 17
2022-05-26 11:21:53 +01:00
modmuss50
4f079f83aa
Add dependency and configuration helpers to ModSettings.
2022-05-26 11:09:25 +01:00
modmuss50
1956c03df2
Handle missing classpath entries when source remapping.
2022-05-21 01:05:10 +01:00
modmuss50
86d74b789a
Fix client remap classpath.
2022-05-21 00:53:14 +01:00
modmuss50
79668102c0
Fix crash when syncing idea when server only is enabled. Closes #652
2022-05-20 13:46:43 +01:00