Skip to content

Commit 08b090c

Browse files
committed
chore: restore downloading and compiling gapic_metadata proto
1 parent 92a271f commit 08b090c

2 files changed

Lines changed: 33 additions & 98 deletions

File tree

sdk-platform-java/gapic-generator-java/pom.xml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,29 @@
121121
</configuration>
122122
</plugin>
123123

124+
<plugin>
125+
<groupId>com.googlecode.maven-download-plugin</groupId>
126+
<artifactId>download-maven-plugin</artifactId>
127+
<version>1.6.8</version>
128+
<executions>
129+
<execution>
130+
<id>download-metadata-proto</id>
131+
<phase>generate-sources</phase>
132+
<goals>
133+
<goal>wget</goal>
134+
</goals>
135+
<configuration>
136+
<url>
137+
https://raw.githubusercontent.com/googleapis/googleapis/${googleapis.commit}/gapic/metadata/gapic_metadata.proto
138+
</url>
139+
<outputDirectory>target/generated-sources/proto</outputDirectory>
140+
<skipCache>true</skipCache>
141+
<overwrite>true</overwrite>
142+
</configuration>
143+
</execution>
144+
</executions>
145+
</plugin>
146+
124147
<plugin>
125148
<groupId>org.xolstice.maven.plugins</groupId>
126149
<artifactId>protobuf-maven-plugin</artifactId>
@@ -140,6 +163,16 @@
140163
<protoSourceRoot>src/main/proto</protoSourceRoot>
141164
</configuration>
142165
</execution>
166+
<execution>
167+
<id>compile-downloaded-protos</id>
168+
<goals>
169+
<goal>compile</goal>
170+
</goals>
171+
<configuration>
172+
<protoSourceRoot>target/generated-sources/proto</protoSourceRoot>
173+
<clearOutputDirectory>false</clearOutputDirectory>
174+
</configuration>
175+
</execution>
143176
<execution>
144177
<id>compile-test-protos</id>
145178
<goals>

sdk-platform-java/gapic-generator-java/src/main/proto/gapic/metadata/gapic_metadata.proto

Lines changed: 0 additions & 98 deletions
This file was deleted.

0 commit comments

Comments
 (0)