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