mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-03-28 04:07:01 -05:00
Simplify last fix
This commit is contained in:
@@ -62,14 +62,9 @@ public abstract class AbstractRunTask extends JavaExec {
|
||||
MappingsProvider mappingsProvider = extension.getMappingsProvider();
|
||||
|
||||
List<String> libs = new ArrayList<>();
|
||||
|
||||
String[] configurations = new String[]{"compile", "implementation"};
|
||||
for(String configuration : configurations){
|
||||
for (File file : getProject().getConfigurations().getByName(configuration).getFiles()) {
|
||||
libs.add(file.getAbsolutePath());
|
||||
}
|
||||
}
|
||||
|
||||
for (File file : getProject().getConfigurations().getByName("runtimeClasspath").getFiles()) {
|
||||
libs.add(file.getAbsolutePath());
|
||||
}
|
||||
for (Path file : extension.getUnmappedMods()) {
|
||||
if (Files.isRegularFile(file)) {
|
||||
libs.add(file.toFile().getAbsolutePath());
|
||||
|
||||
Reference in New Issue
Block a user