Skip to content

Commit

Permalink
Bump javacopts from -source 7 -target 7 to -source 8 -target 8. F…
Browse files Browse the repository at this point in the history
…ixes #373.

RELNOTES=targets now build with `-source 8 -target 8` instead of `-source 7 -target 7`
PiperOrigin-RevId: 607018759
  • Loading branch information
chaoren authored and Flogger Team committed Feb 14, 2024
1 parent fa5afea commit 3b7e325
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions api/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ java_library(
STACK_GETTER_JAVA_LANG_ACCESS_IMPL_SRCS +
STACK_GETTER_COMMON_SRCS + CHECKS,
),
javacopts = ["-source 7 -target 7"],
javacopts = ["-source 8 -target 8"],
tags = ["maven_coordinates=com.google.flogger:flogger:${project.version}"],
visibility = ["//visibility:public"],
exports = [":checks"],
Expand Down Expand Up @@ -77,7 +77,7 @@ STACK_GETTER_COMMON=$(location :stack_getter_common)
CHECKS=$(location :checks)
JAVABASE=$$PWD/$(JAVABASE)
JAR=$$PWD/$(JAVABASE)/bin/jar
$$JAVABASE/bin/javac -d $$TMPDIR -source 7 -target 7 -cp $${STACK_GETTER_COMMON}:$${CHECKS} -implicit:none \
$$JAVABASE/bin/javac -d $$TMPDIR -source 8 -target 8 -cp $${STACK_GETTER_COMMON}:$${CHECKS} -implicit:none \
$(location src/main/java/com/google/common/flogger/util/JavaLangAccessStackGetter.java)
cd $$TMPDIR && $$JAR cf $$OUTPUT com/google/common/flogger/util/*StackGetter*.class
""",
Expand Down Expand Up @@ -111,14 +111,14 @@ cd $$TMPDIR && $$JAR cf $$OUTPUT com/google/common/flogger/util/*StackGetter*.cl
java_library(
name = "stack_getter_common",
srcs = STACK_GETTER_COMMON_SRCS,
javacopts = ["-source 7 -target 7"],
javacopts = ["-source 8 -target 8"],
deps = [":checks"],
)

java_library(
name = "checks",
srcs = CHECKS,
javacopts = ["-source 7 -target 7"],
javacopts = ["-source 8 -target 8"],
deps = [
"@google_bazel_common//third_party/java/error_prone:annotations",
],
Expand Down Expand Up @@ -159,7 +159,7 @@ javadoc_library(
java_library(
name = "system_backend",
srcs = SYSTEM_BACKEND_SRCS,
javacopts = ["-source 7 -target 7"],
javacopts = ["-source 8 -target 8"],
tags = ["maven_coordinates=com.google.flogger:flogger-system-backend:${project.version}"],
visibility = ["//visibility:public"],
deps = [
Expand Down
2 changes: 1 addition & 1 deletion log4j/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ LOG4J_BACKEND_RESOURCES = glob(["src/main/resources/**"])
java_library(
name = "log4j_backend",
srcs = LOG4J_BACKEND_SRCS,
javacopts = ["-source 7 -target 7"],
javacopts = ["-source 8 -target 8"],
resources = LOG4J_BACKEND_RESOURCES,
tags = ["maven_coordinates=com.google.flogger:flogger-log4j-backend:${project.version}"],
deps = [
Expand Down
2 changes: 1 addition & 1 deletion slf4j/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ SLF4J_BACKEND_RESOURCES = glob(["src/main/resources/**"])
java_library(
name = "slf4j_backend",
srcs = SLF4J_BACKEND_SRCS,
javacopts = ["-source 7 -target 7"],
javacopts = ["-source 8 -target 8"],
resources = SLF4J_BACKEND_RESOURCES,
tags = ["maven_coordinates=com.google.flogger:flogger-slf4j-backend:${project.version}"],
deps = [
Expand Down

0 comments on commit 3b7e325

Please sign in to comment.