Suggest `compileOnlyApi` rather than `compile` for AutoValue with Gradle.
Suggest `compileOnlyApi` rather than `compile` for AutoValue with Gradle.

Since `compileOnlyApi` is a recent feature, continue to mention the old way in a note.

Fixes https://github.com/google/auto/issues/995.

RELNOTES=n/a
PiperOrigin-RevId: 362995141

eamonnmcmanus/auto,google/auto,eamonnmcmanus/auto,eamonnmcmanus/auto,google/auto,google/auto