Skip to content

Commit

Permalink
specify local jdk runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
ramil-bitrise committed Jan 9, 2025
1 parent f6b4eef commit 194c4a5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,6 @@ build:remote_bitrise --noremote_upload_local_results
build:remote_bitrise --extra_execution_platforms=//:darwin_arm64
build:remote_bitrise --xcode_version=16.2.0
build:remote_bitrise --repo_env=XCODE_VERSION=16.2.0
build:remote_bitrise --java_runtime_version=rbe_jdk21
build:remote_bitrise --tool_java_runtime_version=rbe_jdk21
build:remote_bitrise --extra_toolchains=//:all
7 changes: 7 additions & 0 deletions BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Bazel - Google's Build System

load("@bazel_skylib//rules:write_file.bzl", "write_file")
load("@rules_java//toolchains:local_java_repository.bzl", "local_java_runtime")
load("@rules_license//rules:license.bzl", "license")
load("@rules_pkg//pkg:tar.bzl", "pkg_tar")
load("@rules_python//python:defs.bzl", "py_binary")
Expand Down Expand Up @@ -319,3 +320,9 @@ REMOTE_PLATFORMS = ("rbe_ubuntu2004",)
)
for platform_name in REMOTE_PLATFORMS
]

local_java_runtime(
name = "rbe_jdk21",
java_home = "/Users/vagrant/.jenv/versions/21",
version = "21",
)

0 comments on commit 194c4a5

Please sign in to comment.