Inital remap jar configuration cache support (#1161)

* Move everything to the new service system

* Checkstyle

* Fix unit tests + make them use the internet less

* Some more fixes

* Split the mixin ap mapping handling out into its own service.

* Checkstyle

* Fixes

* Move mixin refmap handling to a service

* Minor changes
This commit is contained in:
modmuss
2024-08-20 12:51:47 +01:00
committed by GitHub
parent 3c32259001
commit 9157c22448
60 changed files with 950 additions and 885 deletions

View File

@@ -229,7 +229,7 @@ public abstract class AbstractRemapJarTask extends Jar {
return getInputFile();
}
protected static List<String> getRootPaths(Set<File> files) {
public static List<String> getRootPaths(Set<File> files) {
return files.stream()
.map(root -> {
String rootPath = root.getAbsolutePath().replace("\\", "/");
@@ -242,7 +242,7 @@ public abstract class AbstractRemapJarTask extends Jar {
}).toList();
}
protected static Function<File, String> relativePath(List<String> rootPaths) {
public static Function<File, String> relativePath(List<String> rootPaths) {
return file -> {
String s = file.getAbsolutePath().replace("\\", "/");