Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Implementation:Ray project Ray Deploy Jars

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

Overview

External tool documentation for the deploy_jars() function that publishes Ray Java JARs to Maven Central.

Description

deploy_jars() in java/build-jar-multiplatform.sh (L154-175) runs mvn -T16 install deploy -Prelease to publish multiplatform JARs to Maven Central via OSSRH. Only runs for master branch on ray-project/ray. Writes ~/.m2/settings.xml with credentials from OSSRH_TOKEN_USERNAME and OSSRH_TOKEN_PASSWORD environment variables.

Usage

Invoked automatically in the release CI pipeline after tests pass.

Code Reference

Source Location

  • Repository: ray-project/ray
  • File: java/build-jar-multiplatform.sh (L154-175)

Signature

deploy_jars()

I/O Contract

Inputs

Name Type Required Description
OSSRH_TOKEN_USERNAME Env var Yes Sonatype OSSRH username
OSSRH_TOKEN_PASSWORD Env var Yes Sonatype OSSRH password
Built JARs Files Yes Multiplatform JARs from build step

Outputs

Name Type Description
Published JARs Maven artifacts ray-api, ray-runtime, ray-serve on Maven Central

Usage Examples

Deploy (CI Only)

cd java && bash build-jar-multiplatform.sh deploy_jars

Related Pages

Implements Principle

Requires Environment

Page Connections

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