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

ci: use .java-version #11323

Merged
merged 4 commits into from
May 15, 2024
Merged

ci: use .java-version #11323

merged 4 commits into from
May 15, 2024

Conversation

v1v
Copy link
Contributor

@v1v v1v commented May 9, 2024

What

Revert f6d3b6b to enable the .java-version and honour the GitHub actions setup-java by using the java-version-file, see Java-version-file docs.

Why

This should help reduce the maintainability of the GitHub actions by centralising the version to be used in the CI in one place.

@v1v v1v requested a review from a team as a code owner May 9, 2024 11:33
Comment on lines +16 to +21
- id: read-java
run: echo "version=$(cat .java-version)" >> "$GITHUB_OUTPUT"
- uses: graalvm/setup-graalvm@2f25c0caae5b220866f732832d5e3e29ff493338 # v1.2.1.1
with:
version: "latest"
java-version: "21"
java-version: "${{ steps.read-java.outputs.version }}"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This can be potentially once graalvm/setup-graalvm#95 is done :)

@zeitlinger
Copy link
Member

why not use .tool-versions from asdf? This is a great tool.

@v1v
Copy link
Contributor Author

v1v commented May 15, 2024

why not use .tool-versions from asdf? This is a great tool.

I've no strong opinion. However, it might be better to done it in a follow-up, once graalvm/setup-graalvm#95 is available.

Then, there won't be any need to parse the file regardless.

What do you think?

@trask trask merged commit facdc18 into open-telemetry:main May 15, 2024
73 checks passed
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.

None yet

4 participants