Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix license header #245

Merged
merged 1 commit into from Sep 28, 2023
Merged

Fix license header #245

merged 1 commit into from Sep 28, 2023

Conversation

honnix
Copy link
Collaborator

@honnix honnix commented Sep 26, 2023

TL;DR

Fix license header by using a year parameter

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Complete description

With this, we will not be forced to use 2021 forever.

Tracking Issue

Remove the 'fixes' keyword if there will be multiple PRs to fix the linked issue

NA

Follow-up issue

NA

Signed-off-by: Hongxin Liang <honnix@users.noreply.github.com>
@@ -440,40 +440,13 @@
</googleJavaFormat>
<removeUnusedImports />
</java>
<xml>
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't know how we came up with this <xml> configuration but it doesn't seems to be supported by spotless at all.

@honnix honnix marked this pull request as ready for review September 26, 2023 09:58
@honnix honnix requested a review from bergman September 26, 2023 09:58
@honnix
Copy link
Collaborator Author

honnix commented Sep 26, 2023

We could also retrospectively updating all headers according to git commit history but that would be a massive change. Do we want to do this? #246

It is also worth noting that spotless license header thing does not support package-info.java, so those files we can only do manually.

@@ -418,7 +418,7 @@
<licenseHeader>
<!-- Specify either content or file, but not both -->
<content><![CDATA[/*
* Copyright 2021 Flyte Authors
* Copyright $YEAR Flyte Authors
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Why does this have no . :( To fix that we will need to update all Java files.

@honnix honnix mentioned this pull request Sep 26, 2023
8 tasks
@honnix honnix mentioned this pull request Sep 27, 2023
8 tasks
@honnix honnix merged commit 459fa97 into master Sep 28, 2023
4 checks passed
@honnix honnix deleted the fix-license-header branch September 28, 2023 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants