## Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. ## SPDX-License-Identifier: Apache-2.0 version: 0.2 env: variables: BRANCH: "master" phases: install: runtime-versions: java: $JAVA_ENV_VERSION pre_build: commands: - git checkout $BRANCH - export VERSION=$(grep version pom.xml | head -n 1 | sed -n 's/[ \t]*\(.*\)<\/version>/\1/p') - git clone https://github.com/aws-samples/busy-engineers-document-bucket.git - cd busy-engineers-document-bucket/exercises/java/encryption-context-complete build: commands: - | mvn verify \ -Dcheckstyle.skip \ -Desdk.version=$VERSION \ -Dmaven.compiler.target=$JAVA_NUMERIC_VERSION \ -Dmaven.compiler.source=$JAVA_NUMERIC_VERSION \ --no-transfer-progress