Skip to content

Commit

Permalink
Add a configuration option to skip ClearlyDefined
Browse files Browse the repository at this point in the history
Sometimes, we can't reach ClearlyDefined and we end up hanging while we
wait. By specifying "skip" as the ClearlyDefined URL skips the provider.
  • Loading branch information
waynebeaton committed Apr 22, 2024
1 parent 0ab33f5 commit dd3682a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ public int getWeight() {
return 100;
}
});
licenseDataProviders.addBinding().to(ClearlyDefinedSupport.class);

if (!"skip".equals(settings.getClearlyDefinedDefinitionsUrl())) {
licenseDataProviders.addBinding().to(ClearlyDefinedSupport.class);
}

bind(LicenseSupport.class).toInstance(new LicenseSupport());
bind(GitLabSupport.class).toInstance(new GitLabSupport());
Expand Down

0 comments on commit dd3682a

Please sign in to comment.