Jump to content

Connect Leeroopedia MCP: Equip your AI agents to search best practices, build plans, verify code, diagnose failures, and look up hyperparameter defaults.

Principle:Ray project Ray Java JAR Building

From Leeroopedia
Knowledge Sources
Domains Build_Systems, Java_Packaging
Last Updated 2026-02-13 17:00 GMT

Overview

A multi-platform build process that compiles Java source code and bundles platform-specific native binaries into distributable JAR files.

Description

Java JAR Building produces Maven-distributable JAR files for the Ray Java SDK modules (ray-api, ray-runtime, ray-serve). The process compiles Java source via Maven, builds native C++ binaries via Bazel, and bundles both into JARs. For multiplatform releases, native binaries from multiple platforms (Linux, macOS) are downloaded from S3 and merged into a single JAR.

Usage

Execute as part of the release pipeline to produce Java artifacts for Maven Central.

Theoretical Basis

The JAR format bundles compiled Java bytecode with native libraries. Multiplatform JARs use a naming convention to include natives for multiple operating systems, with runtime selection based on os.name and os.arch system properties.

Related Pages

Implemented By

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment