Skip to content

Commit 858caf4

Browse files
cpovirkGoogle Java Core Libraries
authored and
Google Java Core Libraries
committed
Fix [Gradle GWT compilation breakage](#7134).
Fixes #7134 (tested using the sscce.zip from that issue, adding `mavenLocal()` to the top of its `repositories` and updating `guava-gwt` to `HEAD-jre-SNAPSHOT`) RELNOTES=Fixed [Gradle GWT compilation breakage](#7134). PiperOrigin-RevId: 623826917
1 parent dad0c59 commit 858caf4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

guava-gwt/pom.xml

+10
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,16 @@
5252
<artifactId>guava</artifactId>
5353
<version>${project.version}</version>
5454
</dependency>
55+
<!-- We redeclare the j2objc-annotations dependency from `guava`: Our Gradle
56+
Module Metadata hides the dependency declared in `guava` from runtime
57+
configurations downstream, and GWT uses the runtime configuration for
58+
its builds. Thus, GWT doesn't get j2objc-annotations transitively, in
59+
contrast to the other deps of `guava`, which it does get transitively.
60+
(Arguably we should redeclare *all* the `guava` deps here.) -->
61+
<dependency>
62+
<groupId>com.google.j2objc</groupId>
63+
<artifactId>j2objc-annotations</artifactId>
64+
</dependency>
5565
<dependency>
5666
<groupId>com.google.guava</groupId>
5767
<artifactId>guava-testlib</artifactId>

0 commit comments

Comments
 (0)