From 6a742011d0a39c2a1e60a89e291f1640fb20f05f Mon Sep 17 00:00:00 2001 From: Robert Stupp Date: Sun, 26 Oct 2025 09:52:23 +0100 Subject: [PATCH] Root POM: link to project's LICENSE, add NOTICE+DISCLAIMER to comment This change replaces the project's license URL in the parent POM from the AL-2.0 template to the `LICENSE` file in the project's root directory. Before (in `pom.xml`): ``` Apache-2.0 https://www.apache.org/licenses/LICENSE-2.0.txt ``` With this change: ``` Apache-2.0 https://raw.githubusercontent.com/apache/polaris/HEAD/LICENSE NOTICE: https://raw.githubusercontent.com/apache/polaris/HEAD/NOTICE DISCLAIMER: https://raw.githubusercontent.com/apache/polaris/HEAD/DISCLAIMER ``` --- build-logic/src/main/kotlin/publishing/configurePom.kt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/build-logic/src/main/kotlin/publishing/configurePom.kt b/build-logic/src/main/kotlin/publishing/configurePom.kt index 36e3aa58f6..f981a86a0d 100644 --- a/build-logic/src/main/kotlin/publishing/configurePom.kt +++ b/build-logic/src/main/kotlin/publishing/configurePom.kt @@ -75,6 +75,7 @@ internal fun configurePom(project: Project, mavenPublication: MavenPublication, task.doFirst { mavenPom.run { + val gitInfo = GitInfo.memoized(project) val asfProject = AsfProject.memoized(project, e.asfProjectId.get()) val asfProjectId = asfProject.apacheId @@ -85,7 +86,14 @@ internal fun configurePom(project: Project, mavenPublication: MavenPublication, licenses { license { name.set("Apache-2.0") // SPDX identifier - url.set(asfProject.licenseUrl) + url.set(gitInfo.rawGithubLink("LICENSE")) + comments.set( + """ + NOTICE: ${gitInfo.rawGithubLink("NOTICE")} + DISCLAIMER: ${gitInfo.rawGithubLink("DISCLAIMER")} + """ + .trimIndent() + ) } } mailingLists {