Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

package com.google.errorprone.annotations does not exist #121

Closed
ccate opened this issue Aug 26, 2019 · 1 comment
Closed

package com.google.errorprone.annotations does not exist #121

ccate opened this issue Aug 26, 2019 · 1 comment

Comments

@ccate
Copy link

ccate commented Aug 26, 2019

Using instructions in Readme, building a java_grpc_library target results in:

ERROR: /private/var/tmp/_bazel_ike/c553dc0ae4d37944748b3c167ed33b42/external/com_google_protobuf/BUILD:632:1: Building external/com_google_protobuf/libprotobuf_java_util.jar (6 source files) failed (Exit 1)
warning: -parameters is not supported for target value 1.7. Use 1.8 or later.
external/com_google_protobuf/java/util/src/main/java/com/google/protobuf/util/Timestamps.java:39: error: package com.google.errorprone.annotations does not exist
import com.google.errorprone.annotations.CanIgnoreReturnValue;
                                        ^
external/com_google_protobuf/java/util/src/main/java/com/google/protobuf/util/Durations.java:155: error: cannot find symbol
  @CanIgnoreReturnValue
   ^
  symbol:   class CanIgnoreReturnValue
  location: class Durations

WORKPLACE additions:

http_archive(
    name = "build_stack_rules_proto",
    urls = ["https://github.com/stackb/rules_proto/archive/b93b544f851fdcd3fc5c3d47aee3b7ca158a8841.tar.gz"],
    sha256 = "c62f0b442e82a6152fcd5b1c0b7c4028233a9e314078952b6b04253421d56d61",
    strip_prefix = "rules_proto-b93b544f851fdcd3fc5c3d47aee3b7ca158a8841",
)
load("@build_stack_rules_proto//:deps.bzl", "io_grpc_grpc_java")

io_grpc_grpc_java()

load("@io_grpc_grpc_java//:repositories.bzl", "grpc_java_repositories")

grpc_java_repositories(
    omit_com_google_protobuf = False,
    omit_com_google_errorprone_error_prone_annotations = True,
)

load("@build_stack_rules_proto//java:deps.bzl", "java_grpc_library")
java_grpc_library()

@pcj

@pcj
Copy link
Member

pcj commented Nov 16, 2021

Closing stale PRs and issues, please reopen new one if desired.

@pcj pcj closed this as completed Nov 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants