Skip to content

Commit 12ccc61

Browse files
Update .cloudbuild/library_generation/library_generation.Dockerfile
Co-authored-by: Tomo Suzuki <suztomo@gmail.com>
1 parent 232b7d7 commit 12ccc61

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.cloudbuild/library_generation/library_generation.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ ENV DOCKER_GAPIC_GENERATOR_VERSION="2.55.2-SNAPSHOT"
2626
# Download the java formatter
2727
RUN mvn -pl gapic-generator-java-pom-parent help:evaluate -Dexpression='google-java-format.version' -q -DforceStdout > /java-formatter-version
2828
RUN cat /java-formatter-version
29-
RUN curl -o "/google-java-format.jar" "https://maven-central.storage-download.googleapis.com/maven2/com/google/googlejavaformat/google-java-format/$(cat /java-formatter-version)/google-java-format-$(cat /java-formatter-version)-all-deps.jar"
29+
RUN V=$(cat /java-formatter-version) curl -o "/google-java-format.jar" "https://maven-central.storage-download.googleapis.com/maven2/com/google/googlejavaformat/google-java-format/${V}/google-java-format-${V}-all-deps.jar"
3030

3131
# Compile and install packages
3232
RUN mvn install -B -ntp -DskipTests -Dclirr.skip -Dcheckstyle.skip

0 commit comments

Comments
 (0)