Simplify last fix
parent
6bec4e592a
commit
91c150c7e7
|
@ -62,14 +62,9 @@ public abstract class AbstractRunTask extends JavaExec {
|
||||||
MappingsProvider mappingsProvider = extension.getMappingsProvider();
|
MappingsProvider mappingsProvider = extension.getMappingsProvider();
|
||||||
|
|
||||||
List<String> libs = new ArrayList<>();
|
List<String> libs = new ArrayList<>();
|
||||||
|
for (File file : getProject().getConfigurations().getByName("runtimeClasspath").getFiles()) {
|
||||||
String[] configurations = new String[]{"compile", "implementation"};
|
|
||||||
for(String configuration : configurations){
|
|
||||||
for (File file : getProject().getConfigurations().getByName(configuration).getFiles()) {
|
|
||||||
libs.add(file.getAbsolutePath());
|
libs.add(file.getAbsolutePath());
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
for (Path file : extension.getUnmappedMods()) {
|
for (Path file : extension.getUnmappedMods()) {
|
||||||
if (Files.isRegularFile(file)) {
|
if (Files.isRegularFile(file)) {
|
||||||
libs.add(file.toFile().getAbsolutePath());
|
libs.add(file.toFile().getAbsolutePath());
|
||||||
|
|
Loading…
Reference in New Issue