mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-04-01 21:17:46 -05:00
Merge remote-tracking branch 'FabricMC/dev/0.10' into dev/0.10.0
Signed-off-by: shedaniel <daniel@shedaniel.me> # Conflicts: # build.gradle # src/main/java/net/fabricmc/loom/util/TinyRemapperHelper.java
This commit is contained in:
@@ -92,12 +92,11 @@ dependencies {
|
||||
}
|
||||
|
||||
// tinyfile management
|
||||
implementation ('dev.architectury:tiny-remapper:1.3.11')
|
||||
implementation ('dev.architectury:mappings-layers-core:1.4.9')
|
||||
implementation ('dev.architectury:tiny-remapper:1.4.12')
|
||||
implementation 'net.fabricmc:access-widener:2.0.0'
|
||||
implementation 'net.fabricmc:mapping-io:0.2.1'
|
||||
|
||||
implementation ('net.fabricmc:lorenz-tiny:4.0.0') {
|
||||
implementation ('net.fabricmc:lorenz-tiny:4.0.1') {
|
||||
transitive = false
|
||||
}
|
||||
implementation "dev.architectury:refmap-remapper:1.0.5"
|
||||
|
||||
@@ -28,6 +28,7 @@ import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Path;
|
||||
import java.util.Map;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
import com.google.common.collect.ImmutableSet;
|
||||
@@ -48,6 +49,11 @@ public final class TinyRemapperHelper {
|
||||
.put("javax/annotation/concurrent/Immutable", "org/jetbrains/annotations/Unmodifiable")
|
||||
.build();
|
||||
|
||||
/**
|
||||
* Matches the new local variable naming format introduced in 21w37a.
|
||||
*/
|
||||
private static final Pattern MC_LV_PATTERN = Pattern.compile("\\$\\$\\d+");
|
||||
|
||||
private TinyRemapperHelper() {
|
||||
}
|
||||
|
||||
@@ -81,7 +87,8 @@ public final class TinyRemapperHelper {
|
||||
builder.fixPackageAccess(true);
|
||||
}
|
||||
|
||||
return builder.build();
|
||||
return builder.invalidLvNamePattern(MC_LV_PATTERN)
|
||||
.build();
|
||||
}
|
||||
|
||||
public static TinyRemapper getTinyRemapper(Project project) throws IOException {
|
||||
|
||||
@@ -44,7 +44,7 @@ class FabricAPITest extends Specification implements GradleProjectTestTrait {
|
||||
setup:
|
||||
def gradle = gradleProject(
|
||||
repo: "https://github.com/FabricMC/fabric.git",
|
||||
commit: "fc40aa9d88e9457957bdf3f8cec9698846828cd3",
|
||||
commit: "46582230fb580d4c1f71e4b0737df27417ec9cb1",
|
||||
version: version,
|
||||
patch: "fabric_api"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user