Skip to content

Commit

Permalink
Use correct method to report unknown properties
Browse files Browse the repository at this point in the history
  • Loading branch information
radcortez committed Apr 19, 2022
1 parent eb63ba7 commit c6679c2
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,7 @@ private static void reportUnknownBuildProperties(LaunchMode launchMode, Set<Stri
// So it only reports during the build, because it is very likely that the property is available in runtime
// and, it will be caught by the RuntimeConfig and log double warnings
if (!launchMode.isDevOrTest()) {
for (String unknownProperty : unknownBuildProperties) {
ConfigDiagnostic.unknown(unknownProperty);
}
ConfigDiagnostic.unknownProperties(new ArrayList<>(unknownBuildProperties));
}
}

Expand Down

0 comments on commit c6679c2

Please sign in to comment.