Skip to content

Commit

Permalink
fix(core): More updates to config checks. Relates to #913
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Aug 26, 2022
1 parent 44b2032 commit c77eef5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ public static void validateDistributions(JReleaserContext context, JReleaserCont
distribution.setName(e.getKey());
}
if (context.isDistributionIncluded(distribution)) {
if (!mode.validateConfig()) {
validateDistribution(context, mode, distribution, new Errors());
} else {
if (mode.validateConfig()) {
validateDistribution(context, mode, distribution, errors);
}
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ private static void validateJlink(JReleaserContext context, JReleaserContext.Mod
jlink.setStereotype(context.getModel().getProject().getStereotype());
}

context.getLogger().debug("jlink.{}.java", jlink.getName());
context.getLogger().debug("assemble.jlink.{}.java", jlink.getName());
if (!validateJava(context, jlink, errors)) {
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ private static void validateJpackage(JReleaserContext context, JReleaserContext.
}
}

context.getLogger().debug("jpackage.{}.java", jpackage.getName());
context.getLogger().debug("assemble.jpackage.{}.java", jpackage.getName());
if (!validateJava(context, jpackage, errors)) {
return;
}
Expand Down

0 comments on commit c77eef5

Please sign in to comment.