version: 0.2 #this buildspec assumes the aws-common-runtime/ubuntu-16.04 image # This job is responsible for artifacting the JAR which will have all of the other shared libs stuffed # into it once all platforms are built and artifacted phases: install: commands: - sudo add-apt-repository ppa:openjdk-r/ppa - sudo apt-get update -y - sudo apt-get install openjdk-8-jdk-headless maven -y -f pre_build: commands: - cd aws-crt-java - export CRT_VERSION=$(git describe --tags | sed -e s/^v//) build: commands: # Verify that the package can be found in the snapshot repo # note that this uses an ancient version of maven and the maven dependency plugin because we're on trusty # http://maven.apache.org/plugins-archives/maven-dependency-plugin-2.1/get-mojo.html - bash ./codebuild/cd/test-platform-specific-jar-snapshot.sh post_build: commands: - echo Build completed on `date` cache: paths: - '/root/.m2/**/*'