Skip to content

Commit

Permalink
Setup child modules better in POM
Browse files Browse the repository at this point in the history
  • Loading branch information
docwho2 committed Nov 22, 2023
1 parent 440c520 commit c0ca249
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,17 @@ jobs:
java-version: '17'
distribution: 'corretto'
cache: maven


- name: Install ChimeSMALibrary Parent POM
working-directory: ./ChimeSMALibrary
run: mvn -N install --no-transfer-progress

- name: Build/Install Needed Libraries
# Exclude modules that SAM builds so it can use SAM cache and speed deploys
run: >
mvn -B install -DskipTests
--no-transfer-progress
--projects '!ChimeSMA,!ChatGPT,!ChimeCDKProvision'
--projects '!cloud.cleo.chimesma:generate-poly-prompt'
--projects '!ChimeSMA,!ChatGPT,!ChimeCDKProvision,!ChimeSMALibrary/PollyPromptCreation'
- name: Setup AWS SAM
uses: aws-actions/setup-sam@v2
Expand Down
7 changes: 6 additions & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,12 @@ cdk deploy -c accountId=${ACCOUNT_ID} -c stackName=${CDK_STACK_NAME} -c regionEa
popd

echo "Building Libraries"
mvn -B install -DskipTests --no-transfer-progress

pushd "ChimeSMALibrary"
mvn -N install
popd

mvn -B install -DskipTests --no-transfer-progress --projects '!ChimeSMA,!ChatGPT,!ChimeCDKProvision,!ChimeSMALibrary/PollyPromptCreation'

# Build App Once
sam build
Expand Down
9 changes: 7 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,13 @@

<modules>
<!-- These are needed for lex events (bots) and JSON processing from the Library Project -->
<module>ChimeSMALibrary</module>
<!-- CDK Provisioning of Chime Resources -->
<module>ChimeSMALibrary/LambdaEventsV4/aws-lambda-java-serialization</module>
<module>ChimeSMALibrary/LambdaEventsV4/aws-lambda-java-events</module>
<module>ChimeSMALibrary/ChimeSMAEvent</module>
<module>ChimeSMALibrary/ChimeSMAFlow</module>
<!-- We are creating prompts as well, so pull in Prompt Creation -->
<module>ChimeSMALibrary/PollyPromptCreation</module>
<!-- Provision Chime Resources -->
<module>ChimeCDKProvision</module>
<!-- These are part of the local project -->
<module>ChatGPT</module>
Expand Down

0 comments on commit c0ca249

Please sign in to comment.