Skip to content

About

Scala plugin for vfox

Topics

Resources

Stars

0 stars

Watchers

3 watching

Forks

Repository files navigation

vfox-scala

中文 | English

Scala plugin for vfox.

It installs Scala 3 and Scala 2 releases, from GitHub for 2.11 and later and for 2.10.5 to 2.10.7, and from scala-lang.org for the older ones, and checks a download against the SHA-256 that Scala publishes for it where there is one. It also finds Scala that is already on the machine and links it, so you can use it through vfox without a second download.

Install

After installing vfox, add the plugin, install a version and select it:

vfox add scala
vfox install scala@3.10.1
vfox use --global scala@3.10.1
scala -version

scala -version shows the version that is selected. For scala to be on the PATH, vfox has to be hooked into your shell, see its quick start. Scala runs on a Java runtime, which must be installed separately.

vfox search scala lists the releases.

Versions

A version is written as Scala releases it, such as 3.10.1, 2.13.18, 2.10.4 or 2.7.7.final. Release candidates and milestones keep their suffix, as in 3.0.0-RC1. The long-term support releases carry the note LTS in vfox search.

vfox install scala@3.10.1       # verified against its published SHA-256
vfox install scala@2.13.18      # from GitHub
vfox install scala@2.10.4       # from the scala-lang.org archive
vfox exec scala@3.10.1 -- scalac -version

docs/versions.md says where each version is downloaded from, and when a checksum is checked.

Scala already on the machine

vfox link --detect scala looks for Scala installations that vfox did not install: SCALA_HOME, SDKMAN, asdf, mise, Homebrew, Scoop, the system directories and Program Files. It asks which ones to link, or links all of them with --yes. It needs vfox 1.1.0 or later.

vfox link --detect scala --yes
vfox exec scala@2.12.20 -- scala -version

docs/detect.md lists where it looks and how it reads each version.

Documentation

Releasing

Maintainers publish from the Plugin workflow, as described in docs/development.md.

License

Apache License 2.0, see LICENSE.

About

Scala plugin for vfox

Topics

Resources

Stars

0 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages