From 42a0cbd3b38a6f843e1b74d50a58352f6920e8a8 Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Wed, 21 Oct 2020 08:59:20 +0100 Subject: [PATCH] Dont throw when annotationDependency is not resloved. --- src/main/java/net/fabricmc/loom/util/SourceRemapper.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main/java/net/fabricmc/loom/util/SourceRemapper.java b/src/main/java/net/fabricmc/loom/util/SourceRemapper.java index c0750b0..faa48ca 100644 --- a/src/main/java/net/fabricmc/loom/util/SourceRemapper.java +++ b/src/main/java/net/fabricmc/loom/util/SourceRemapper.java @@ -183,10 +183,6 @@ public class SourceRemapper { Set files = project.getConfigurations().getByName("compileOnly") .files(annotationDependency); - if (files.size() != 1) { - throw new RuntimeException(String.format("Found %d files for the annotations, expected 1", files.size())); - } - for (File file : files) { m.getClassPath().add(file.toPath()); }