Skip to content

Commit bc8f324

Browse files
bcorsoDagger Team
authored and
Dagger Team
committed
Use "-release" instead of "-source -target".
RELNOTES=N/A PiperOrigin-RevId: 708892114
1 parent e9e8deb commit bc8f324

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.bazelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ build --java_runtime_version=remotejdk_18
2424
build --tool_java_runtime_version=remotejdk_18
2525

2626
# Default source/target versions.
27-
build --javacopt="-source 8 -target 8"
27+
build --javacopt="--release 8"
2828

2929
# Workaround for https://openjdk.java.net/jeps/411.
3030
# See https://github.com/bazelbuild/bazel/issues/14502#issuecomment-1018366245.

build_defs.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ DOCLINT_HTML_AND_SYNTAX = ["-Xdoclint:html,syntax"]
1818

1919
DOCLINT_REFERENCES = ["-Xdoclint:reference"]
2020

21-
JAVA_RELEASE_MIN = ["-source 8 -target 8"]
21+
JAVA_RELEASE_MIN = ["--release 8"]
2222

2323
POM_VERSION = "${project.version}"

0 commit comments

Comments
 (0)