Skip to content

Commit 4c5a197

Browse files
AnshulPatniAnshul Patni
andauthored
build: override central-publishing-maven-plugin guava dependency to 33.5.0-jre (#392)
In Google's Airlock / BCID L2 environment (maven-3p-trusted), older 32.x versions of Guava are not cached or mirrored. When central-publishing-maven-plugin:0.10.0 runs during release builds, Maven fails to resolve its transitive dependency on guava:32.1.0-jre. This overrides the plugin dependency to use guava:33.5.0-jre (which is already used by the project and available in Airlock). Change-Id: I74139da32a803ec4fbeda3ff893e615b606cb5e7 Co-authored-by: Anshul Patni <anshulpatni@google.com>
1 parent 73d9fa3 commit 4c5a197

3 files changed

Lines changed: 21 additions & 0 deletions

File tree

function-maven-plugin/pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,13 @@
170170
<publishingServerId>sonatype-central-portal</publishingServerId>
171171
<centralSnapshotsUrl>https://central.sonatype.com/repository/maven-snapshots/</centralSnapshotsUrl>
172172
</configuration>
173+
<dependencies>
174+
<dependency>
175+
<groupId>com.google.guava</groupId>
176+
<artifactId>guava</artifactId>
177+
<version>33.5.0-jre</version>
178+
</dependency>
179+
</dependencies>
173180
</plugin>
174181
</plugins>
175182
</build>

functions-framework-api/pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,13 @@
203203
<publishingServerId>sonatype-central-portal</publishingServerId>
204204
<centralSnapshotsUrl>https://central.sonatype.com/repository/maven-snapshots/</centralSnapshotsUrl>
205205
</configuration>
206+
<dependencies>
207+
<dependency>
208+
<groupId>com.google.guava</groupId>
209+
<artifactId>guava</artifactId>
210+
<version>33.5.0-jre</version>
211+
</dependency>
212+
</dependencies>
206213
</plugin>
207214
</plugins>
208215
</build>

invoker/pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,13 @@
136136
<publishingServerId>sonatype-central-portal</publishingServerId>
137137
<centralSnapshotsUrl>https://central.sonatype.com/repository/maven-snapshots/</centralSnapshotsUrl>
138138
</configuration>
139+
<dependencies>
140+
<dependency>
141+
<groupId>com.google.guava</groupId>
142+
<artifactId>guava</artifactId>
143+
<version>33.5.0-jre</version>
144+
</dependency>
145+
</dependencies>
139146
</plugin>
140147
</plugins>
141148
</build>

0 commit comments

Comments
 (0)