Skip to content

Commit

Permalink
[core] post validate chocolatey only when enabled. Fixes #757
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Feb 16, 2022
1 parent 4626d3b commit bce6d96
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,10 @@ private static void checkCustomVersion(JReleaserContext context, Distribution di
}

public static void postValidateChocolatey(JReleaserContext context, Distribution distribution, Chocolatey packager, Errors errors) {
if (!packager.isEnabled()) return;
context.getLogger().debug("distribution.{}.chocolatey", distribution.getName());

JReleaserModel model = context.getModel();
Project project = model.getProject();
Project project = context.getModel().getProject();

if (isBlank(project.getLicenseUrl())) {
errors.configuration(RB.$("ERROR_project_no_license_url"));
Expand Down

0 comments on commit bce6d96

Please sign in to comment.