diff --git a/driver/src/main/java/eu/cloudnetservice/driver/module/DefaultModuleProvider.java b/driver/src/main/java/eu/cloudnetservice/driver/module/DefaultModuleProvider.java index 641ec29d50..755b46a591 100644 --- a/driver/src/main/java/eu/cloudnetservice/driver/module/DefaultModuleProvider.java +++ b/driver/src/main/java/eu/cloudnetservice/driver/module/DefaultModuleProvider.java @@ -458,7 +458,13 @@ public void notifyPostModuleLifecycleChange(@NonNull ModuleWrapper wrapper, @Non } // ensure that the required properties are set dependency.assertDefaultPropertiesSet(); - // decide which way to go (by url or repository). In this case we start with the more common repository way + // decide which way to go (by url or repository). In this case we start with the developer defined url if there's one + if (dependency.url() != null) { + loadedDependencies.add(this.doLoadDependency(dependency, configuration, handler, + () -> this.moduleDependencyLoader.loadModuleDependencyByUrl(configuration, dependency))); + continue; + } + // check if the repository defined a repository for us to use if (dependency.repo() != null) { var repoUrl = Preconditions.checkNotNull( repos.get(dependency.repo()), @@ -468,12 +474,6 @@ public void notifyPostModuleLifecycleChange(@NonNull ModuleWrapper wrapper, @Non () -> this.moduleDependencyLoader.loadModuleDependencyByRepository(configuration, dependency, repoUrl))); continue; } - // check if the repository defined a fixed download url for us to use - if (dependency.url() != null) { - loadedDependencies.add(this.doLoadDependency(dependency, configuration, handler, - () -> this.moduleDependencyLoader.loadModuleDependencyByUrl(configuration, dependency))); - continue; - } // the dependency might be a dependency for a module, save this pendingModuleDependencies.add(dependency); }