Skip to content

Railway Deployment #e584f8 fix: pin JDK 21 via NIXPACKS_JDK_VERSION - #1

Merged
railway-app[bot] merged 1 commit into
mainfrom
railway/fix-deploy-e584f8
Jul 11, 2026
Merged

Railway Deployment #e584f8 fix: pin JDK 21 via NIXPACKS_JDK_VERSION#1
railway-app[bot] merged 1 commit into
mainfrom
railway/fix-deploy-e584f8

Conversation

@railway-app

@railway-app railway-app Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Problem

The Nixpacks build failed during the Maven compile phase with "release version 21 not supported" because the jdk21 nixPkgs entry did not reliably activate JDK 21 as the active javac on PATH.

Solution

Set NIXPACKS_JDK_VERSION = "21" in nixpacks.toml so Nixpacks provisions and activates JDK 21 for all build phases, keeping maven in the setup packages so the Maven compile step succeeds.

Changes

  • Modified nixpacks.toml

Context

  • Deployment: #e584f8
  • Failed commit: 48b6052

Generated by Railway

@railway-app
railway-app Bot merged commit 85e81bb into main Jul 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants