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

chore: Include License in Release JAR Files #101

Merged
merged 4 commits into from
Oct 17, 2024
Merged

chore: Include License in Release JAR Files #101

merged 4 commits into from
Oct 17, 2024

Conversation

MatKuhr
Copy link
Member

@MatKuhr MatKuhr commented Oct 17, 2024

Context

Required by OSPO

<!-- include LICENSE in all jar files -->
<resource>
<filtering>false</filtering>
<directory>${project.rootdir}</directory>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<directory>${project.rootdir}</directory>
<directory>${user.dir}</directory>

That allows you to remove all project.rootdir properties

Copy link
Member Author

Choose a reason for hiding this comment

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

This is not safe, because it depends from which directory the JVM was run. This might change e.g. if we make changes to how our GH actions work, or when running locally, etc.

The problem is if this points to the wrong dir, we won't notice it because there is no error thrown or anything. So considering some options this seems to be the most reliable way. See also this thread.

@MatKuhr MatKuhr enabled auto-merge (squash) October 17, 2024 08:57
@MatKuhr MatKuhr merged commit f5d0795 into main Oct 17, 2024
4 checks passed
@MatKuhr MatKuhr deleted the chore/license branch October 17, 2024 11:23
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