Skip to content

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

Open
adamnfish-gu wants to merge 1 commit into
platform/tool-versions-cifrom
adopt/java
Open

adamnfish-gu wants to merge 1 commit into
platform/tool-versions-cifrom
adopt/java

Conversation

@adamnfish-gu

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

Copy link
Copy Markdown

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
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.

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.

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