aboutsummaryrefslogtreecommitdiff
path: root/deploy
diff options
context:
space:
mode:
authorFabian Meumertzheim <fabian@meumertzhe.im>2022-12-13 17:45:30 +0100
committerFabian Meumertzheim <fabian@meumertzhe.im>2022-12-13 19:17:54 +0100
commit2b3a8234931cb43d14bfd71855326866953c52e3 (patch)
treeef6eb3254bd5e276307bc2909ee6ca7572387b03 /deploy
parent3053776429b1d5eb56ff85df8f0ccb61701d6f9f (diff)
downloadjazzer-api-2b3a8234931cb43d14bfd71855326866953c52e3.tar.gz
deploy: Guard stdlib javadoc links behind a flag
Linking javadocs against a remote endpoint makes the javadoc generation non-hermetic and requires an internet connection for the build to succeed. While this is necessary and acceptable for docs builds, it should not be required to produce our Maven artifacts.
Diffstat (limited to 'deploy')
-rw-r--r--deploy/BUILD.bazel18
1 files changed, 10 insertions, 8 deletions
diff --git a/deploy/BUILD.bazel b/deploy/BUILD.bazel
index fa10f6df..0c00cd11 100644
--- a/deploy/BUILD.bazel
+++ b/deploy/BUILD.bazel
@@ -24,10 +24,13 @@ sh_binary(
java_export(
name = "jazzer-api",
- javadocopts = [
- "-link",
- "https://docs.oracle.com/en/java/javase/17/docs/api/",
- ],
+ javadocopts = select({
+ ":emit_linked_javadoc": [
+ "-link",
+ "https://docs.oracle.com/en/java/javase/17/docs/api/",
+ ],
+ "//conditions:default": [],
+ }),
maven_coordinates = JAZZER_API_COORDINATES,
pom_template = "//deploy:jazzer-api.pom",
visibility = ["//visibility:public"],
@@ -62,12 +65,11 @@ java_export(
# Exclude the unshaded classes comprising com.code-intelligence:jazzer since the java_library
# target comprising jazzer-junit depend on the individual libraries, not the shaded jar.
deploy_env = ["//driver/src/main/java/com/code_intelligence/jazzer:jazzer_lib"],
- javadocopts = [
- "-link",
- "https://docs.oracle.com/en/java/javase/17/docs/api/",
- ] + select({
+ javadocopts = select({
":emit_linked_javadoc": [
"-link",
+ "https://docs.oracle.com/en/java/javase/17/docs/api/",
+ "-link",
"https://codeintelligencetesting.github.io/jazzer-docs/jazzer-api/",
"-link",
"https://codeintelligencetesting.github.io/jazzer-docs/jazzer/",