Skip to content

Conversation

@snazy
Copy link
Member

@snazy snazy commented Oct 27, 2025

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):

  <licenses>
    <license>
      <name>Apache-2.0</name>
      <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>;
    </license>
  </licenses>

With this change:

  <licenses>
    <license>
      <name>Apache-2.0</name>
      <url>https://raw.githubusercontent.com/apache/polaris/HEAD/LICENSE</url>
      <comments>NOTICE: https://raw.githubusercontent.com/apache/polaris/HEAD/NOTICE
DISCLAIMER: https://raw.githubusercontent.com/apache/polaris/HEAD/DISCLAIMER</comments>
    </license>
  </licenses>

@snazy
Copy link
Member Author

snazy commented Oct 27, 2025

Depends on #2910, #2909, #2908

@snazy snazy force-pushed the license-link-github branch from b1f5cb2 to 6c3231c Compare October 29, 2025 10:32
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`):
```
  <licenses>
    <license>
      <name>Apache-2.0</name>
      <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
    </license>
  </licenses>
```

With this change:
```
  <licenses>
    <license>
      <name>Apache-2.0</name>
      <url>https://raw.githubusercontent.com/apache/polaris/HEAD/LICENSE</url>
      <comments>NOTICE: https://raw.githubusercontent.com/apache/polaris/HEAD/NOTICE
DISCLAIMER: https://raw.githubusercontent.com/apache/polaris/HEAD/DISCLAIMER</comments>
    </license>
  </licenses>
```
@snazy snazy force-pushed the license-link-github branch from 6c3231c to 6a74201 Compare November 1, 2025 19:53
@snazy snazy marked this pull request as ready for review November 1, 2025 19:53
@snazy snazy requested a review from jbonofre November 1, 2025 19:53
@github-project-automation github-project-automation bot moved this from PRs In Progress to Ready to merge in Basic Kanban Board Nov 2, 2025
comments.set(
"""
NOTICE: ${gitInfo.rawGithubLink("NOTICE")}
DISCLAIMER: ${gitInfo.rawGithubLink("DISCLAIMER")}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding these links for release builds sounds valuable to me, but given current impl. of GitInfo for non-release builds (using HEAD) I do not think the links would be useful or even correct.

Could we identity whether GetInfo has a solid tag and avoid adding links if it does not?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The link would be correct (e.g. https://raw.githubusercontent.com/apache/polaris/$rawLinkRef/$file translates to https://raw.githubusercontent.com/apache/polaris/HEAD/LICENSE) in case it's not a release.
I don't see a better alternative than HEAD here for non-release builds, as the Git commit SHA could be from "anywhere".

However, the referenced files are probably not the right ones for the root pom.

Hm - maybe let's drop this PR. I'll leave it open for a bit, but it looks like it's incorrect.

@snazy
Copy link
Member Author

snazy commented Nov 4, 2025

Let's abandon this PR.

@snazy snazy closed this Nov 4, 2025
@github-project-automation github-project-automation bot moved this from Ready to merge to Done in Basic Kanban Board Nov 4, 2025
@snazy snazy deleted the license-link-github branch November 4, 2025 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants