8000 Use SDKMAN to install Ant and Java · Issue #368 · jython/jython · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Use SDKMAN to install Ant and Java #368

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

Open
wfouche opened this issue Feb 11, 2025 · 2 comments · May be fixed by #369
Open

Use SDKMAN to install Ant and Java #368

wfouche opened this issue Feb 11, 2025 · 2 comments · May be fixed by #369

Comments

@wfouche
Copy link
wfouche commented Feb 11, 2025

Adding a .sdkmanrc file to the Jython repo, will allow the correct latest stable versions of Ant and Java to be installed with less effort.

.sdkmanrc

# Enable auto-env through the sdkman_auto_env config
# Add key=value pairs of SDKs to use below

# Ant
ant=1.10.14

# Java
java=8.0.442-tem

Ant and Java is installed by simply running the following command:

$ sdk env

or if the requested versions of Ant and Java are not yet localled cached

$ sdk env install
@jeff5
Copy link
Member
jeff5 commented May 4, 2025

SDKMAN seems like a useful thing, so I guess one would also want to have its configuration file in the development environment. From the documentation, there's some friction involved when using it on Windows, so I may only adopt it myself on the holiday laptop, which is Linux.

I don't tear my development environment down between tasks, as one might a Python virtual environment and re-build it from the requirements file. Those who develop using a containerised IDE might appreciate the configuration arriving with the project files. Is the idea to support that kind of working? Isn't there usually a user-specific profile too?

As things stand, though, we don't check-in configuration files for IDEs, but "support" those IDEs through .gitignore.

I notice these pin the build tool and JDK to particular micro-versions. Won't we find we're either pinned to an old version, or constantly updating this file? I think the argument is different for dependencies (JARs) that we bundle in the fat JARs or communicate in the POM, because we test with those. Even there, it is a real nuisance if it really matters exactly which versions are used.

@koppor
Copy link
koppor commented May 16, 2025

.sdkmanrc files are also compatible with mise. One could even set both the required java and python version.

Note that java@21 is perfectly valid. Thus, no micro-versioning, but "pinning" to some main java releases.

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 a pull request may close this issue.

3 participants
0