Skip to content

java: Declare the java toolchain in .tool-versions - #147

Merged
adamnfish-gu merged 2 commits into
mainfrom
adopt/java
Oct 19, 2026
Merged

adamnfish-gu merged 2 commits into
mainfrom
adopt/java

Conversation

@adamnfish-gu

@adamnfish-gu adamnfish-gu commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

script/setup installed maven via brew, which is macOS-only. It now resolves dependencies.

script/test and script/run cd to the project root so they work from any directory, matching the other skeletons.


Base platform/tool-versions-ci (#144), so the diff shows only this branch's changes. Merge #144 first.

Part of #143.

script/setup installed maven via brew, which is macOS-only. It now resolves
dependencies.

script/test and script/run cd to the project root so they work from any
directory, matching the other skeletons.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Comment thread java/script/setup Outdated
fi No newline at end of file
cd "$(dirname "${BASH_SOURCE[0]}")/.."

mvn --quiet dependency:resolve

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Running this script gives no output at all, which was a bit disconcerting. I think this is because of the --quiet flag: would we consider removing it? Maven does print a lot of output when installing things, but I think I prefer that to no output at all.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah I think you're right, thanks.

I'll leave --quiet on for the run script so the program's output is clear, but I agree it's worth making the setup more transparent.

Comment thread java/script/test

cd "$(dirname "${BASH_SOURCE[0]}")/.."

mvn test

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I wondered why the --quiet flag wasn’t used here, so I experimented: looks like if you add the flag you don’t even get "test passed", so it’s definitely better without.

@emdash-ie emdash-ie left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This looks good to me! Tested locally by installing java and maven with my own package manager. (So I haven’t tested installation via mise, but I’m sure it works fine.)

I have a request above, but happy to merge with or without.

Base automatically changed from platform/tool-versions-ci to main October 19, 2026 14:11
@adamnfish-gu
adamnfish-gu merged commit b4672b5 into main Oct 19, 2026
3 checks passed
@adamnfish-gu
adamnfish-gu deleted the adopt/java branch October 19, 2026 14:18
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.

2 participants