IMPORTANT: Make sure you are using a JDK 8 JVM by checking java -version
before any
of the steps below. If you run the steps below on a JDK 11+ JVM, that will break Java
8 support, as the released jars will only run on JDK 11. We do not target Java 8 when
building on JDK 11 since Error Prone has required Java 11 since version 2.11.0.
- Change the version in
gradle.properties
to a non-SNAPSHOT version and./gradlew build
. - Get a copy of the AOSP
framework_intermediates
for the corresponding Android version. 2a. At Uber? http://t.uber.com/aosp_framework_intermediate 2b. Elsewhere? You can still build the corresponding AOSP version and look for out/target/common/obj/JAVA_LIBRARIES/** - (first time)
cp jar-infer/scripts/android-jar.conf.template jar-infer/scripts/android-jar.conf
- Set the correct paths and versions in
android-jar.conf
rm jar-infer/android-jarinfer-models-sdk28/src/main/resources/jarinfer.astubx
(for SDK 28)python jar-infer/scripts/android-jar.py
- Continue to release instructions below
- Change the version in
gradle.properties
to a non-SNAPSHOT version. - Update the
CHANGELOG.md
for the impending release. - Update the
README.md
with the new version. git commit -am "Prepare for release X.Y.Z."
(where X.Y.Z is the new version)git tag -a vX.Y.Z -m "Version X.Y.Z"
(where X.Y.Z is the new version)./gradlew clean publish --no-daemon --no-parallel
- Update the
gradle.properties
to the next SNAPSHOT version. git commit -am "Prepare next development version."
git push && git push --tags
- Visit Sonatype Nexus and promote the artifact.