Skip to content

Commit

Permalink
require repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
Revxrsal committed Dec 16, 2024
1 parent b9ed9b4 commit c2b9ef9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/src/main/java/revxrsal/zapper/DependencyManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ public DependencyManager(@NotNull File directory, @NotNull URLClassLoaderWrapper

public void load() {
try {
if (repositories.isEmpty()) {
throw new IllegalArgumentException("No repositories were specified.");
}
for (Dependency dep : dependencies) {
File file = new File(directory, String.format("%s.%s-%s.jar", dep.getGroupId(), dep.getArtifactId(), dep.getVersion()));
File relocated = new File(directory, String.format("%s.%s-%s-relocated.jar", dep.getGroupId(),
Expand Down

0 comments on commit c2b9ef9

Please sign in to comment.