mirror of
https://github.com/square/okhttp.git
synced 2025-11-23 06:42:24 +03:00
Combine the marketing page (index.md) with the GitHub README.md. Fix links pointing to 3.x documentation. Use Markdown tables instead of HTML tables.
1.2 KiB
1.2 KiB
Releasing
-
Update
CHANGELOG.md. -
Set versions:
export RELEASE_VERSION=X.Y.Z export NEXT_VERSION=X.Y.Z-SNAPSHOT -
Update, build, and upload:
sed -i "" \ "s/VERSION_NAME=.*/VERSION_NAME=$RELEASE_VERSION/g" \ gradle.properties sed -i "" \ "s/\"com.squareup.okhttp3:\([^\:]*\):[^\"]*\"/\"com.squareup.okhttp3:\1:$RELEASE_VERSION\"/g" \ `find . -name "README.md"` ./gradlew clean uploadArchives -
Visit Sonatype Nexus to promote the artifact. Or drop it if there is a problem!
-
Tag the release, prepare for the next one, and push to GitHub.
git commit -am "Prepare for release $RELEASE_VERSION." git tag -a parent-$RELEASE_VERSION -m "Version $RELEASE_VERSION" sed -i "" \ "s/VERSION_NAME=.*/VERSION_NAME=$NEXT_VERSION/g" \ gradle.properties git commit -am "Prepare next development version." git push && git push --tags
Prerequisites
In ~/.gradle/gradle.properties, set the following:
SONATYPE_NEXUS_USERNAME- Sonatype username for releasing tocom.squareup.SONATYPE_NEXUS_PASSWORD- Sonatype password for releasing tocom.squareup.