Skip to content

Commit

Permalink
Use "-release" instead of "-source -target".
Browse files Browse the repository at this point in the history
RELNOTES=N/A
PiperOrigin-RevId: 708892114
  • Loading branch information
bcorso authored and Dagger Team committed Dec 24, 2024
1 parent e9e8deb commit bc8f324
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ build --java_runtime_version=remotejdk_18
build --tool_java_runtime_version=remotejdk_18

# Default source/target versions.
build --javacopt="-source 8 -target 8"
build --javacopt="--release 8"

# Workaround for https://openjdk.java.net/jeps/411.
# See https://github.com/bazelbuild/bazel/issues/14502#issuecomment-1018366245.
Expand Down
2 changes: 1 addition & 1 deletion build_defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ DOCLINT_HTML_AND_SYNTAX = ["-Xdoclint:html,syntax"]

DOCLINT_REFERENCES = ["-Xdoclint:reference"]

JAVA_RELEASE_MIN = ["-source 8 -target 8"]
JAVA_RELEASE_MIN = ["--release 8"]

POM_VERSION = "${project.version}"

0 comments on commit bc8f324

Please sign in to comment.