Page MenuHomePhabricator

[JVM Stewardship] To be discussed: SDK Man
Open, MediumPublic

Description

SDK Man allows switching between SDKs, like JDK, with ease. It allows to pin the JDK to a particular version for a project/directory.

Adding a .sdkmanrc file to our projects would allow to automatically switch to the correct JDK when entering a project directory.

AC

Event Timeline

Will adopting SDKMan be a prescriptive change or just a default option? Would this change affect only a user's development environment, or also impact CI?

+1 for making SDKMan the default JDK manager, but it would be great if we could document an opt-out path.
Enforcing SDKMan could break existing workflows (e.g., Windows without WSL, or other version managers)

Will adopting SDKMan be a prescriptive change or just a default option? Would this change affect only a user's development environment, or also impact CI?

+1 for making SDKMan the default JDK manager, but it would be great if we could document an opt-out path.
Enforcing SDKMan could break existing workflows (e.g., Windows without WSL, or other version managers)

I think the proposal is to add .sdkmanrc files to all repo, but not to mandate that everyone uses them. Having an SDKMan config file doesn't force anyone to use it, in which case it just doesn't change anything for you.

Since there are no objection appart from the comment from @gmodena above, we can move forward with this, document and add config files to our repos.

Change #1055935 had a related patch set uploaded (by Gehel; author: Gehel):

[wikimedia-event-utilities@master] build: add SDKMan configuration

https://gerrit.wikimedia.org/r/1055935

Change #1055935 merged by Ottomata:

[wikimedia-event-utilities@master] build: add SDKMan configuration

https://gerrit.wikimedia.org/r/1055935

Gehel triaged this task as High priority.Aug 14 2024, 2:18 PM

Change #1062712 had a related patch set uploaded (by Gehel; author: Gehel):

[analytics/gobblin-wmf@main] build: introduce .sdkmanrc to document JDK version to use for this project

https://gerrit.wikimedia.org/r/1062712

Gehel lowered the priority of this task from High to Medium.Aug 14 2024, 2:30 PM

Change #1098908 had a related patch set uploaded (by Gehel; author: Gehel):

[analytics/refinery/source@master] build: add sdkman configuration

https://gerrit.wikimedia.org/r/1098908

Change #1062712 merged by Gehel:

[analytics/gobblin-wmf@main] build: introduce .sdkmanrc to document JDK version to use for this project

https://gerrit.wikimedia.org/r/1062712

Change #1098908 merged by jenkins-bot:

[analytics/refinery/source@master] build: add sdkman configuration

https://gerrit.wikimedia.org/r/1098908