xref: /aosp_15_r20/external/aws-sdk-java-v2/buildspecs/release-javadoc.yml (revision 8a52c7834d808308836a99fc2a6e0ed8db339086)
1*8a52c783SCole Faustversion: 0.2
2*8a52c783SCole Faustenv:
3*8a52c783SCole Faust  variables:
4*8a52c783SCole Faust    JAVA_HOME: "/usr/lib/jvm/java-21-amazon-corretto/"
5*8a52c783SCole Faustphases:
6*8a52c783SCole Faust  install:
7*8a52c783SCole Faust    commands:
8*8a52c783SCole Faust    - apt-get update; apt-get install -y java-21-amazon-corretto-jdk
9*8a52c783SCole Faust    - update-alternatives --auto javac
10*8a52c783SCole Faust    - update-alternatives --auto java
11*8a52c783SCole Faust    - pip install awscli==1.19.34 --upgrade --user
12*8a52c783SCole Faust
13*8a52c783SCole Faust  pre_build:
14*8a52c783SCole Faust    commands:
15*8a52c783SCole Faust    - DOC_PATH='s3://aws-java-sdk-javadoc/java/api'
16*8a52c783SCole Faust
17*8a52c783SCole Faust  build:
18*8a52c783SCole Faust    commands:
19*8a52c783SCole Faust    - python ./scripts/doc_crosslinks/generate_cross_link_data.py --apiDefinitionsBasePath ./services/ --apiDefinitionsRelativeFilePath src/main/resources/codegen-resources/service-2.json  --templateFilePath ./scripts/doc_crosslinks/crosslink_redirect.html --outputFilePath ./scripts/crosslink_redirect.html
20*8a52c783SCole Faust    - mvn install -P quick -T1C
21*8a52c783SCole Faust    - mvn clean install javadoc:aggregate -B -Ppublic-javadoc -Dcheckstyle.skip -Dspotbugs.skip -DskipTests -Ddoclint=none -pl '!:protocol-tests,!:protocol-tests-core,!:codegen-generated-classes-test,!:sdk-benchmarks,!:s3-benchmarks,!:module-path-tests,!:test-utils,!:http-client-tests,!:tests-coverage-reporting,!:sdk-native-image-test,!:ruleset-testing-core,!:old-client-version-compatibility-test'
22*8a52c783SCole Faust    - RELEASE_VERSION=`mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec`
23*8a52c783SCole Faust    -
24*8a52c783SCole Faust    - aws s3 sync target/site/apidocs/ $DOC_PATH/$RELEASE_VERSION/ --acl="public-read"
25*8a52c783SCole Faust    - aws s3 cp ./scripts/crosslink_redirect.html $DOC_PATH/$RELEASE_VERSION/ --acl="public-read"
26*8a52c783SCole Faust    - aws s3 sync $DOC_PATH/$RELEASE_VERSION/ $DOC_PATH/latest/ --acl=public-read --delete
27*8a52c783SCole Faust    - jar cf aws-java-sdk-v2-docs.jar -C target/site/apidocs .
28*8a52c783SCole Faust    - aws s3 cp aws-java-sdk-v2-docs.jar $DOC_PATH/ --acl="public-read"