Skip to content

Commit

Permalink
fix antlr4-tools version
Browse files Browse the repository at this point in the history
  • Loading branch information
namenu committed Feb 16, 2024
1 parent 002c5bd commit d820bb8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d820bb8

Please sign in to comment.