From 9e12693bded90d25acf7a9fbec1b32936268be0d Mon Sep 17 00:00:00 2001 From: Kawika Avilla Date: Wed, 12 May 2021 21:33:38 +0000 Subject: [PATCH] [BUILD] Update notice generator Update the notice generator so that builds come with the expected header Signed-off-by: Kawika Avilla --- src/dev/build/tasks/notice_file_task.ts | 2 +- src/dev/notice/generate_notice_from_source.ts | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/dev/build/tasks/notice_file_task.ts b/src/dev/build/tasks/notice_file_task.ts index 9b67e31a6803..d9196d8d6f44 100644 --- a/src/dev/build/tasks/notice_file_task.ts +++ b/src/dev/build/tasks/notice_file_task.ts @@ -39,7 +39,7 @@ export const CreateNoticeFile: Task = { log.info('Generating notice from source'); log.indent(4); const noticeFromSource = await generateNoticeFromSource({ - productName: 'OpenSearch Dashboards', + productName: 'OpenSearch', directory: build.resolvePath(), log, }); diff --git a/src/dev/notice/generate_notice_from_source.ts b/src/dev/notice/generate_notice_from_source.ts index 6cc29eee4524..5c08e127868c 100644 --- a/src/dev/notice/generate_notice_from_source.ts +++ b/src/dev/notice/generate_notice_from_source.ts @@ -93,7 +93,11 @@ export async function generateNoticeFromSource({ productName, directory, log }: let noticeText = ''; noticeText += `${productName}\n`; - noticeText += `Copyright 2012-${new Date().getUTCFullYear()} Elasticsearch B.V.\n`; + noticeText += `Copyright ${new Date().getUTCFullYear()} OpenSearch Contributors\n\n`; + noticeText += `This product includes software developed by Elasticsearch (http://www.elastic.co).\n`; + noticeText += `Copyright 2009-2018 Elasticsearch\n\n`; + noticeText += `This product includes software developed by The Apache Software Foundation (http://www.apache.org/)\n\n`; + noticeText += `This product includes software developed by Joda.org (http://www.joda.org/).\n`; for (const comment of noticeComments.sort()) { noticeText += '\n---\n';