File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,23 @@ For `auto-value-annotations`, you can write this in `pom.xml`:
92
92
</dependencies >
93
93
```
94
94
95
+ Some AutoValue annotations have CLASS retention. This is mostly of use for
96
+ compile-time tools, such as AutoValue itself. If you are creating
97
+ a library, the end user rarely needs to know the original AutoValue annotations.
98
+ In that case, you can set the scope to ` provided ` , so that the user of your
99
+ library does not have ` auto-value-annotations ` as a transitive dependency.
100
+
101
+ ``` xml
102
+ <dependencies >
103
+ <dependency >
104
+ <groupId >com.google.auto.value</groupId >
105
+ <artifactId >auto-value-annotations</artifactId >
106
+ <version >${auto-value.version}</version >
107
+ <scope >provided</scope >
108
+ </dependency >
109
+ </dependencies >
110
+ ```
111
+
95
112
For ` auto-value ` (the annotation processor), you can write this:
96
113
97
114
``` xml
You can’t perform that action at this time.
0 commit comments