The csspin_java.java plugin can be used to provision a desired Java version
into the defined java.install_dir and making it available for use within
the context of csspin.
The plugin does not provide any tasks or commands to be executed.
For using the csspin_java.java plugin, a project's spinfile.yaml must
at least contain the following configuration.
plugin_packages:
- csspin-java
plugins:
- csspin_java.java
java:
version: "19"The provisioning of the plugin, its dependencies and Java can be done via the
well-known spin provision-command.
To use a local Java installation, the java.use can be leveraged as
demonstrated below:
spin -p java.use=java provision
spin -p java.use=java run --version