csspin_java.java
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.
How to setup the csspin_java.java plugin?
For using the csspin_java.java plugin, a project’s spinfile.yaml must
at least contain the following configuration.
Minimal configuration of
spinfile.yaml to leverage csspin_java.javaplugin_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.
How to use a local Java installation?
To use a local Java installation, the java.use can be leveraged as
demonstrated below:
Using a local Java installation
spin -p java.use=java provision
spin -p java.use=java run --version
csspin_java.java schema reference
- java: 'object'
Configuration regarding the java plugin for csspin
- java.version: 'str'
Java version
- java.install_dir: 'path'
The directory in which JAVA should be installed
- java.java_home: 'path internal'
The path to the JAVA installation path
- java.use: 'path'
The path to an existing JAVA installation
- java.schema: 'object'
- java._requires: 'list'