Skip to content

Commit 865f285

Browse files
fmeumrules_java Copybara
authored andcommitted
Use hermetic Java runtimes
Copybara Import from #241 BEGIN_PUBLIC Use hermetic Java runtimes (#241) Makes it easier to contribute to the project while ensuring that it remains compatible with Java 8. Closes #241 END_PUBLIC COPYBARA_INTEGRATE_REVIEW=#241 from fmeum:hermetic-ci 1cd4a4d PiperOrigin-RevId: 696820025 Change-Id: I166118e9814b1e0bde93c95e4e9ff9a6e05a49c4
1 parent 80de6ea commit 865f285

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.bazelrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
11
common --incompatible_disallow_empty_glob
2+
3+
# Use hermetic JDKs for testing and ensure compatibliity with Java 8.
4+
common --java_language_version=8
5+
common --java_runtime_version=remotejdk_8
6+
common --tool_java_language_version=8
7+
common --tool_java_runtime_version=remotejdk_8
8+
9+
# Hide Java 8 deprecation warnings.
10+
common --javacopt=-Xlint:-options

0 commit comments

Comments
 (0)