Skip to content

Latest commit

 

History

History
64 lines (45 loc) · 1.92 KB

File metadata and controls

64 lines (45 loc) · 1.92 KB

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.

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.

How to use a local Java installation?

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

csspin_java.java schema reference