Skip to content

Commit d475d5a

Browse files
authored
Fix client build script (#6945)
1 parent 4a6ad8e commit d475d5a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/gen_java_client.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ BASE_PACKAGE="cromwell.client"
44

55
ORIGINAL_API_YAML=engine/src/main/resources/swagger/cromwell.yaml
66
API_YAML=codegen_java/cromwell.nofile.yaml
7+
OPENAPI_DOCKER="openapitools/openapi-generator-cli@sha256:ddd1b01cbe8f494c6612c548e91f983938164ab713a4d18d099a1fc4a77c651d"
78

89
# Cromwell doesn't specify the OAuth configuration in its swagger, and
910
# without it the client doesn't support authentication.
@@ -37,7 +38,7 @@ cat $ORIGINAL_API_YAML | sed s/type:\ file/type:\ string/g >> $API_YAML
3738
# generator's build.sbt with ours.
3839
# 1. Hide our build.sbt
3940
mv codegen_java/build.sbt codegen_java/build.sbt.bak
40-
docker run --rm -v ${PWD}:/local openapitools/openapi-generator-cli generate \
41+
docker run --rm -v ${PWD}:/local ${OPENAPI_DOCKER} generate \
4142
-i /local/$API_YAML \
4243
-g java \
4344
-o /local/codegen_java \

0 commit comments

Comments
 (0)