bazelbuild / bazelbuild/bazel

`all_android_tools_deploy.jar` doesn't contain AutoValue's annotation processor

Open
#24,287 13 comments 0 reactions 0 assignees View on GitHub
type: bug untriaged
Dominant language
Java
Stars
25.8k
Forks
4.6k
Avg merge
2d 18h
Merged PRs (30d)
75

Description

### Description of the bug:

The final all_android_tools_deploy.jar doesn't contain AutoValue's annotation processor class.

### Which category does this issue belong to?

android tools

### What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

I wasn't able to reproduce it in a sample project, but we see it in our project.

Basically, the error says:
```
ERROR: non zero exit: worker spawn failed for Javac
warning: [options] source value 8 is obsolete and will be removed in a future release
warning: [options] target value 8 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
error: Annotation processor 'com.google.auto.value.processor.AutoValueProcessor' not found
ERROR: non zero exit: worker spawn failed for Javac
```

### Which operating system are you running Bazel on?

macOS

### What is the output of `bazel info release`?

7.4.0

### If `bazel info release` returns `development version` or `(@non-git)`, tell us how you built Bazel.

_No response_

### What's the output of `git remote get-url origin; git rev-parse HEAD` ?

_No response_

### If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.

It might be related to: https://github.com/bazelbuild/bazel/pull/23709

### Have you found anything relevant by searching the web?

_No response_

### Any other information, logs, or outputs that you want to share?

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by inspecting how all_android_tools_deploy.jar is assembled and verify whether com.google.auto.value.processor.AutoValueProcessor is present. Review the possible connection to pull request 23709 and use the reported Javac annotation-processor failure as the check for done; a reproducible test or artifact inspection is needed.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.