Remove ml cpp notice check from oss distributions (#63370)

The ML cpp notice only exists with default distributions, but the check
task exists on all archive distributions. This commit avoids creating
the task for distributions that don't have ML.

closes #63128
This commit is contained in:
Ryan Ernst 2020-10-06 18:04:59 -07:00 committed by Ryan Ernst
parent dbcbdcc029
commit dd5ec83c99
No known key found for this signature in database
GPG Key ID: 5F7EA39E15F54DCE
1 changed files with 2 additions and 1 deletions

View File

@ -73,7 +73,8 @@ public class InternalDistributionArchiveCheckPlugin implements Plugin<Project> {
task.dependsOn(checkNotice);
});
if (project.getName().contains("zip") || project.getName().contains("tar")) {
String projectName = project.getName();
if (projectName.contains("oss") == false && (projectName.contains("zip") || projectName.contains("tar"))) {
project.getExtensions().add("licenseName", "Elastic License");
project.getExtensions().add("licenseUrl", project.getExtensions().getExtraProperties().get("elasticLicenseUrl"));
TaskProvider<Task> checkMlCppNoticeTask = registerCheckMlCppNoticeTask(