1743 Commits

Author SHA1 Message Date
Juuz
53de3fbc2a Add warning message for outdated Loom 2024-01-10 20:16:42 +09:00
shedaniel
4885d510d9 Merge remote-tracking branch 'FabricMC/dev/1.1' into dev/1.1 2024-01-10 20:15:52 +09:00
modmuss
5aee45de97 Validate jar and fail if it was built with Loom 1.5 or later. (#988) 2024-01-04 14:09:25 +00:00
Juuz
b7f3c674f9 ModMetadataFiles: Prefer quilt.mod.json over architectury.common.json 2023-06-12 20:45:55 +03:00
Juuz
479bb0ba17 Fix architectury.common.json etc being used over fabric.mod.json (#140)
Fixes #136.
2023-06-12 20:45:12 +03:00
Juuz
da08cf9330 AtRemapper: Work around Gradle 8.1 bug causing Files.readString(path) to call Path.toFile()
Same issue and fix as in 4ff9f726e1,
just a different class.

Fixes #129.
2023-05-11 23:51:37 +03:00
Juuz
4337986982 ForgeToolExecutor: Use project Java toolchain if available 2023-04-30 19:22:56 +03:00
Juuz
e35789b392 JarManifestService: Fix "Could not determine fabric loader version" log spam
...by restoring this file to exactly how it is upstream.
2023-04-30 19:22:37 +03:00
Juuz
5fb322a83d GenerateForgePatchedSourcesTask: Apply AT and SAS before decompiling
This makes the patches not get rejected, and the output actually looks like
it should now.
2023-04-30 19:22:33 +03:00
Juuz
2d6218686e InjectLogic: Don't try to create null parent 2023-04-30 19:22:27 +03:00
Juuz
827698d5d1 FunctionLogic: Set output name to output.jar 2023-04-30 19:22:22 +03:00
Juuz
8709c9f0d7 Update forge runtime to 1.1.8 to fix crash 2023-04-21 00:20:50 +03:00
Juuz
5a3864ac8d Update forge runtime to 1.1.6 2023-04-20 22:29:25 +03:00
Juuz
0afa1ee8ba Update forge runtime to 1.1.5 2023-04-20 22:03:30 +03:00
Juuz
e40c2ace57 Merge remote-tracking branch 'upstream/dev/1.1' into dev/1.1 2023-04-20 22:02:46 +03:00
modmuss50
11f69ccbf0 Fix run tasks in Gradle 8.1 (#863) 2023-04-16 23:23:44 +01:00
Juuz
be2818180f Fix inconsistent Forge library transformation hash (#128)
* SrgMerger: Add mergeSrg overload returning the raw MemoryMappingTree

* Rewrite ForgeLibrariesProvider for consistent transformed output paths

Now it also only transforms fmlloader instead of pointlessly copying
around unrelated files and looking inside them. We know where we can find
the files we need to patch.

Fixes #127 which is caused by the DLI config and runtime fmlloader jar
paths being different due to their transform ID hashes differing.

* Use a local Maven repo instead

* ForgeLibrariesProvider: Adjust comment
2023-04-16 12:14:09 +03:00
Juuz
9534e9a9f5 ForgeTest: Add 1.19.4 to list of tested versions 2023-04-16 00:32:54 +03:00
Juuz
a0f189feb6 Merge remote-tracking branch 'upstream/dev/1.1' into dev/1.1 2023-04-14 17:56:41 +03:00
modmuss50
4ff9f726e1 Work around Gradle 8.1 bug causing Files.readString(Path) to call path.toFile(). 2023-04-12 19:56:01 +01:00
Juuz
5b1c18b3c1 Fix code format
Also replaced some Groovy 3 syntax with Groovy 2 syntax because
Eclipse is bad and outdated as usual.
2023-04-03 18:00:31 +03:00
Juuz
b7b5d5023e Merge remote-tracking branch 'upstream/dev/1.1' into dev/1.1
# Conflicts:
#	build.gradle
#	src/test/groovy/net/fabricmc/loom/test/integration/FabricAPITest.groovy
#	src/test/groovy/net/fabricmc/loom/test/unit/kotlin/KotlinRemapperClassloaderTest.groovy
#	src/test/groovy/net/fabricmc/loom/test/unit/layeredmappings/LayeredMappingSpecBuilderTest.groovy
#	src/test/groovy/net/fabricmc/loom/test/unit/layeredmappings/MojangMappingLayerTest.groovy
#	src/test/resources/projects/dependencyResolutionManagement/settings.gradle
2023-04-03 17:43:30 +03:00
Juuz
7c05f2d23f FabricModJsonFactory.containsMod: Fix infinite recursion on Quilt 2023-04-03 17:38:24 +03:00
modmuss50
75a98a5038 Only force re-downloads when manually refreshing deps (#851) 2023-04-02 15:40:09 +01:00
Juuz
f4fb29e26c Remove beta notice 2023-04-01 16:50:13 +03:00
modmuss50
ad7d4e75b9 Reformat groovy code (#850)
* Reformat groovy

* Also format gradle files

* Groovy import order
2023-03-31 10:22:58 +01:00
Juuz
91da4bfe57 ModsTomlTest: Suppress GStringExpressionWithinString
It's intentional in the code in question - it really is a Groovy template
used via Gradle's ProcessResources task.
2023-03-18 16:11:35 +02:00
Juuz
85df5781d2 ErroringModMetadataFile: Fix code format 2023-03-17 20:05:21 +02:00
Juuz
c763db9287 AccessWidenerUtils: Fix compilation 2023-03-17 19:04:25 +02:00
Juuz
ca40dc4589 Merge remote-tracking branch 'upstream/dev/1.1' into dev/1.1
# Conflicts:
#	src/main/java/net/fabricmc/loom/configuration/mods/AccessWidenerUtils.java
2023-03-17 19:02:31 +02:00
Juuz
86c08c580f ModMetadataFiles: Only log a warning with broken mods.toml 2023-03-17 19:01:25 +02:00
Juuz
e37fd9fed2 ModsToml: Improve error message for invalid files 2023-03-17 18:48:29 +02:00
marcus8448
b506a6280a fix: remapping of jars without a fabric.mod.json (#840)
* fix: remapping of jars without a fabric.mod.json
(jars that have `Fabric-Loom-Remap: true`)

* fix: checkstyle
2023-03-10 19:30:18 +00:00
Juuz
3880902438 Resolve runtime files for forgeRuntimeLibrary 2023-03-08 20:51:30 +02:00
Juuz
5ccb17ca6f Add more features to DependencyDownloader 2023-03-08 20:51:29 +02:00
Juuz
ef42465378 Deprecate Forge data generation API (#117)
* Deprecate RunConfigSettings.data()

* Leave RCS.data() intact, only apply hardcoded game args if old api is used
2023-02-28 19:34:18 +02:00
Juuz
64373aa8ce Fix code style 2023-02-19 03:30:49 +02:00
Juuz
7c83033d94 Make access transformer spec hash code consistent
Fixes #119.
2023-02-19 03:16:56 +02:00
Juuz
674572f1df Add actual mods.toml metadata parsing 2023-02-19 02:36:11 +02:00
Juuz
aa5c77a123 ProcessedNamedMinecraftProvider: Fix missing jar prefix in root project jar
This fixes running a Forge root project when jar processors are enabled.
2023-02-19 01:58:22 +02:00
Juuz
c3dded0649 Merge remote-tracking branch 'upstream/dev/1.1' into dev/1.1
# Conflicts:
#	src/main/java/net/fabricmc/loom/configuration/providers/minecraft/SingleJarMinecraftProvider.java
2023-02-19 01:37:05 +02:00
Caoimhe
83b968df64 Warn when using clientOnlyMinecraftJar() on Minecraft versions newer than 1.3 (#824)
Single JARs break things like source generation on newer versions and
pretty much have no difference there, so we should log a warning,
similar to what we do for merged JARs not being supported on 1.2.5 or
older.
2023-02-18 21:04:17 +00:00
modmuss50
4a11cbae07 Test against Gradle 8 (#828)
* Test against Gradle 8

* Update
2023-02-18 21:04:17 +00:00
modmuss50
ab114b5d7a Fallback to HTTP 1.1 on the last retry when downloading. (#829) 2023-02-18 21:04:17 +00:00
Juuz
b19184751b Add toString to ModSettings and RemapConfigurationSettings (#831)
This helps a bit with debugging code that uses them as you don't
have to open the object to see which mod/remap configuration we're
investigating.
2023-02-18 21:04:17 +00:00
Juuz
978f9dcb0f Clean up SRG mapping trees and TinyRemapperHelper (#118)
- Instead of a TinyMappingsService holding two files (normal + srg),
  each file gets its own tiny mappings service.
- Allow using SRG mappings in MinecraftJarProcessor impls
  via ProcessorContext.
- Reverts most of our extensive changes to TinyRemapperHelper, they're not
  necessary anymore.
- Restores a missing mapping namespace check to
  TinyRemapperHelper.getTinyRemapper.
2023-02-18 20:39:00 +02:00
Juuz
d28db4ca3a Remove accidental leftover RunConfigSettings.envVariables map
Not a breaking change since it wasn't a documented/intentional API
and didn't do anything.
2023-02-18 19:32:19 +02:00
Juuz
b8a2828582 Tweak publications to match upstream more closely
- Removes one duplicate publication (plugin), it already exists in the
  gradle plugin development plugin.
- Removed some minor differences in the snapshot publications to match
  upstream to reduce merge conflicts.
2023-02-18 18:22:21 +02:00
Juuz
d735945581 workflows/publish: Add dev/1.1 to published branches 2023-02-18 18:14:30 +02:00
Juuz
3fed53ac21 LoomGradlePlugin: Add beta log message 2023-02-18 18:13:58 +02:00