Files
setup-java/src/distributions/liberica-nik/models.ts
T
Pasha Finkelshteyn 92f9362dd0 dist: Support Liberica NIK (#878) (#1112)
Add the `liberica-nik` distribution (Liberica Native Image Kit), a
GraalVM-based build from BELL Software resolved via the Bell-SW
`/v1/nik/releases` API.

- `java-version` matches the embedded JDK version (from the release's
  `liberica` component), consistent with every other distribution.
- `java-package: jdk` installs the `standard` bundle; `jdk+fx` installs
  the `full` bundle with JavaFX/Swing support.
- Supported on Linux, macOS and Windows for x64 and aarch64.

Signed-off-by: asm0dey <pavel.finkelshtein@gmail.com>
Co-authored-by: Bruno Borges <brborges@microsoft.com>
2026-07-14 14:49:31 -04:00

27 lines
697 B
TypeScript

// Models from https://api.bell-sw.com/api.html (NIK product)
export type Bitness = '32' | '64';
export type ArchType = 'arm' | 'ppc' | 'sparc' | 'x86';
export type OsVersions = 'linux' | 'linux-musl' | 'macos' | 'windows';
export interface ArchitectureOptions {
bitness: Bitness;
arch: ArchType;
}
export interface NikComponent {
component: string;
version: string;
embedded?: boolean;
}
export interface NikVersion {
// The main Liberica NIK VM bundle download URL.
downloadUrl: string;
// NIK/GraalVM version (e.g. '24.1.0+1'), kept for logging only.
version: string;
// The embedded `liberica` component carries the actual JDK version.
components: NikComponent[];
}