From d820bb850973c7639cac4fc05656cbc4b7e413a1 Mon Sep 17 00:00:00 2001 From: Hyunwoo Nam Date: Fri, 16 Feb 2024 14:24:51 +0900 Subject: [PATCH] fix antlr4-tools version --- codegen.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/codegen.sh b/codegen.sh index 8f783b7f..cba88a07 100755 --- a/codegen.sh +++ b/codegen.sh @@ -4,7 +4,10 @@ set -x pip install antlr4-tools -PACKAGE_NAME='com/walmartlabs/lacinia' +export ANTLR4_TOOLS_ANTLR_VERSION=4.13.1 -antlr4 resources/$PACKAGE_NAME/Graphql.g4 -o java/$PACKAGE_NAME -Xexact-output-dir -package com.walmartlabs.lacinia -antlr4 resources/$PACKAGE_NAME/GraphqlSchema.g4 -o java/$PACKAGE_NAME -Xexact-output-dir -package com.walmartlabs.lacinia +PACKAGE_NAME=com.walmartlabs.lacinia +DIR=$(echo $PACKAGE_NAME | tr . /) + +antlr4 resources/$DIR/Graphql.g4 -o java/$DIR -Xexact-output-dir -package $PACKAGE_NAME +antlr4 resources/$DIR/GraphqlSchema.g4 -o java/$DIR -Xexact-output-dir -package $PACKAGE_NAME