Skip to content

Commit 937a91d

Browse files
committed
fix antlr4-tools version
1 parent 1b2703f commit 937a91d

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

codegen.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ set -x
44

55
pip install antlr4-tools
66

7-
PACKAGE_NAME='com/walmartlabs/lacinia'
7+
export ANTLR4_TOOLS_ANTLR_VERSION=4.13.1
88

9-
antlr4 resources/$PACKAGE_NAME/Graphql.g4 -o java/$PACKAGE_NAME -Xexact-output-dir -package com.walmartlabs.lacinia
10-
antlr4 resources/$PACKAGE_NAME/GraphqlSchema.g4 -o java/$PACKAGE_NAME -Xexact-output-dir -package com.walmartlabs.lacinia
9+
PACKAGE_NAME=com.walmartlabs.lacinia
10+
DIR=$(echo $PACKAGE_NAME | tr . /)
11+
12+
antlr4 resources/$DIR/Graphql.g4 -o java/$DIR -Xexact-output-dir -package $PACKAGE_NAME
13+
antlr4 resources/$DIR/GraphqlSchema.g4 -o java/$DIR -Xexact-output-dir -package $PACKAGE_NAME

0 commit comments

Comments
 (0)