1version: 0.2 2 3phases: 4 5 build: 6 commands: 7 - mvn clean install -pl :archetype-app-quickstart -P quick --am -T1C 8 - mvn clean install -pl :bom,:bom-internal -P quick 9 - CURRENT_VERSION=$(cat pom.xml | grep "<version>" | head -1 | cut -d\> -f 2 | cut -d\< -f 1) 10 - echo "Current version is $CURRENT_VERSION" 11 - cd .. && mkdir tmp 12 - cd tmp 13 - | 14 mvn archetype:generate \ 15 -DarchetypeGroupId=software.amazon.awssdk \ 16 -DarchetypeArtifactId=archetype-app-quickstart \ 17 -DarchetypeVersion=$CURRENT_VERSION \ 18 -DgroupId=com.test \ 19 -DnativeImage=true \ 20 -DartifactId=apache-project \ 21 -DhttpClient=apache-client \ 22 -Dservice=s3 \ 23 -DinteractiveMode=false \ 24 -DcredentialProvider=default 25 - | 26 - cd apache-project 27 - mvn clean package -P native-image 28 - target/apache-project 29 - cd .. 30 - 31 - 32 - | 33 mvn archetype:generate \ 34 -DarchetypeGroupId=software.amazon.awssdk \ 35 -DarchetypeArtifactId=archetype-app-quickstart \ 36 -DarchetypeVersion=$CURRENT_VERSION \ 37 -DgroupId=com.test \ 38 -DnativeImage=true \ 39 -DhttpClient=url-connection-client \ 40 -DartifactId=url-connection-project \ 41 -Dservice=s3 \ 42 -DinteractiveMode=false \ 43 -DcredentialProvider=default 44 - | 45 - cd url-connection-project 46 - mvn clean package -P native-image 47 - target/url-connection-project 48 - cd .. 49 - 50 - 51 - | 52 mvn archetype:generate \ 53 -DarchetypeGroupId=software.amazon.awssdk \ 54 -DarchetypeArtifactId=archetype-app-quickstart \ 55 -DarchetypeVersion=$CURRENT_VERSION \ 56 -DgroupId=com.test \ 57 -DhttpClient=netty-nio-client \ 58 -DnativeImage=true \ 59 -DartifactId=netty-project \ 60 -Dservice=dynamodb \ 61 -DinteractiveMode=false \ 62 -DcredentialProvider=default 63 - | 64 - cd netty-project 65 - mvn clean package -P native-image 66 - target/netty-project