Dont throw when annotationDependency is not resloved.
parent
5c4d89bd0d
commit
42a0cbd3b3
|
@ -183,10 +183,6 @@ public class SourceRemapper {
|
||||||
Set<File> files = project.getConfigurations().getByName("compileOnly")
|
Set<File> files = project.getConfigurations().getByName("compileOnly")
|
||||||
.files(annotationDependency);
|
.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) {
|
for (File file : files) {
|
||||||
m.getClassPath().add(file.toPath());
|
m.getClassPath().add(file.toPath());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue