Ugly fix to mercury classpath not having jetbrains annotations

This commit is contained in:
modmuss50
2020-10-10 21:13:12 +01:00
parent 86577525cd
commit 33fdd9ffb2
3 changed files with 21 additions and 3 deletions

View File

@@ -67,12 +67,12 @@ public abstract class DependencyProvider {
addDependency(object, "compile");
}
public void addDependency(Object object, String target) {
public Dependency addDependency(Object object, String target) {
if (object instanceof File) {
object = project.files(object);
}
project.getDependencies().add(target, object);
return project.getDependencies().add(target, object);
}
public void register(LoomDependencyManager dependencyManager) {