SQLiter publishes co.touchlab:sqliter-driver to Maven Central. Releases are cut by pushing a release
tag.
- Tags are the bare version, no
vprefix —1.4.0, notv1.4.0. - The tag and
VERSION_NAMEmust be identical. mainsits on a-SNAPSHOTbetween releases.
Standard semver against the published API surface:
- Patch — bug fixes, no public declarations added or changed.
- Minor — public declarations added.
- Major — public declarations removed or changed incompatibly.
Steps 1–6 are local. Nothing is published until you push the tag in step 7.
-
Confirm the working tree is clean and
mainis current. -
Set the release version in
gradle.properties:VERSION_NAME=X.Y.Z -
Commit.
git commit -am "Prepare version X.Y.Z" -
Tag that commit.
git tag -a X.Y.Z -m "Version X.Y.Z" -
Set the next development version. Bump the patch and re-add the suffix in
gradle.properties:VERSION_NAME=<next patch>-SNAPSHOTSo releasing
1.4.1leavesmainonVERSION_NAME=1.4.2-SNAPSHOT. -
Commit.
git commit -am "Prepare next development version" -
Push the branch first, then the tag. Pushing the tag triggers the release, so push it last:
git push origin main git push origin X.Y.Z
Pushing requires bypassing main branch protections, if you're not set up to do this, you probably shouldn't be publishing anyway