Skip to content

Commit

Permalink
[bazel] Ensure the default java toolchain targets java 8
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Aug 1, 2019
1 parent 0b4ddef commit b4c6833
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
try-import .bazelrc.local

# Set the default java toolchain
build --java_toolchain=@bazel_tools//tools/jdk:toolchain_java8
test --java_toolchain=@bazel_tools//tools/jdk:toolchain_java8

# We target java 8 by default
build --javacopt "-source 8"
build --javacopt "-target 8"
Expand Down

0 comments on commit b4c6833

Please sign in to comment.