Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,11 @@
</goals>
</execution>
</executions>
<configuration>
<excludes>
<exclude>**/AutoValue_*.java</exclude>
</excludes>
</configuration>
</plugin>

<!-- Report jacoco coverage to coveralls.io -->
Expand Down
6 changes: 6 additions & 0 deletions sdks/java/core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,12 @@
<version>1.0-rc2</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.google.auto.value</groupId>
<artifactId>auto-value</artifactId>
<version>1.1</version>
<scope>provided</scope>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why provided vs optional for auto-service?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 it should be compile-time only, aka <scope>compile</scope><optional>true</optional>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

provided is better than compile here, as the dependency is not propagated transitively (reference). optional is then no necessary since it deals with transitive dependencies.

Also, this is the recommended pom.xml definition from AutoValue.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM

</dependency>

<!-- test dependencies -->
<dependency>
Expand Down
Loading