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:
parent
dbcbdcc029
commit
dd5ec83c99
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue