Skip to main content

Module spec

Module spec 

Source
Expand description

Human-readable Java spec parsing and matching ("Eclipse Adoptium v^17.0.0 ax86_64"). Human-readable Java specification parsing and matching.

A spec string like "Eclipse Adoptium v^17.0.0 ax86_64" describes a desired Java installation by vendor, version constraint, and architecture.

Format: <vendor> v<constraint> a<arch>

PartExampleMeaning
VendorEclipse AdoptiumFuzzy-matched against name / vendor
Constraint^17.0.0Compatible with 17.0.0 (semver caret)
Architecturex86_64Architecture substring match

Supported constraint operators:

  • ^17.0.0 — compatible (≥17.0.0, <18.0.0)
  • ~17.0.0 — approximately (≥17.0.0, <17.1.0)
  • >=17.0.0, <=17.0.0, >17.0.0, <17.0.0
  • 17.0.0 — exact (no prefix)

Structs§

JavaSpec
A parsed Java installation query spec.

Enums§

VersionReq
A version constraint with an operator and target version.