Skip to content

Commit

Permalink
Update .bazelrc Java Language Version Flags to Fix New Rules Java8 De…
Browse files Browse the repository at this point in the history
…faults

Now that I've moved to using rules_java for java_*() rules, it turns out that
they're defaulting to Java8 language version even though I'm specifying remoteJDK11
Java runtime. These new flags in .bazelrc ensure that rules_java is configured to
properly use language version 11.
  • Loading branch information
JasonSteving99 committed May 1, 2024
1 parent 24e5987 commit b578df0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
common --enable_bzlmod
common --java_runtime_version=remotejdk_11
build --java_language_version=11
build --tool_java_language_version=11

################################################################################
# BEGIN: Flags required for ClaroDocs JS Development.
Expand Down
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module(
name = "claro-lang",
repo_name = "claro-lang",
version = "0.1.507",
version = "0.1.508",
)

bazel_dep(name = "aspect_bazel_lib", version = "2.0.1")
Expand Down
2 changes: 2 additions & 0 deletions examples/bzlmod/.bazelrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
common --enable_bzlmod
common --java_runtime_version=remotejdk_11
build --java_language_version=11
build --tool_java_language_version=11
2 changes: 1 addition & 1 deletion examples/bzlmod/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module(name = "example-claro-module")

bazel_dep(name = "claro-lang", version = "0.1.507")
bazel_dep(name = "claro-lang", version = "0.1.508")

0 comments on commit b578df0

Please sign in to comment.