Skip to content

Releasing

Versioning

Version Where Meaning
SDK version mibsdk.version in gradle.properties The mibsdk mibpkg package and Maven artifacts
Plugin API api in plugin.json; SdkInfo.API_VERSION The newest API level the SDK implements
Plugin version version in a plugin's plugin.json The plugin package version
Template version templates/plugin/build.gradle.kts Must equal mibsdk.version

The SDK follows semver. Bench builds may carry a +bench.N tag, but they are not releases.

Release checklist

  1. Bump mibsdk.version in gradle.properties.
  2. Bump the template to the same version in templates/plugin/build.gradle.kts. standalonePluginCheck fails if they differ.
  3. Add a CHANGELOG entry in Keep a Changelog style. Include SDK changes and plugin API changes.
  4. Update the API level table if SdkInfo.API_VERSION changed. ApiLevelsTest checks @since tags.
  5. Update the docs that name the version or a limit.
  6. Run the gates:
./gradlew check
./gradlew :build-logic:test
python3 -m unittest discover -s installer -p 'test_*.py'
python3 tools/check_docs.py
./gradlew docsSite
  1. Publish the artifacts:
./gradlew publishLocal
  1. Tag and push:
git tag v0.6.0
git push origin main --tags

What the tag publishes

The docs workflow builds the site, the Dokka API reference and the Maven repository, then deploys them to the gh-pages branch. GitHub Pages must be configured to serve that branch.

  • the documentation site at /;
  • the Dokka API reference at /api/;
  • the Maven repository at /maven/.

The Maven repository contains dev.complex256.mibsdk:api, compat, platform, runtime, adapter-fake, plugin-test, the mibsdk.plugin and mibsdk.car-library Gradle plugins, and their markers. A plugin resolves them from:

https://complex256.github.io/mib2q-plugin-sdk/maven

Released versions are immutable. Do not republish a version that already exists on Pages.

The SDK package

dist/build/dist/mibsdk-<version>.mpk needs the unit's stock jars, which are not in CI. Build it locally and attach it to the GitHub release:

./gradlew :dist:mibpkgPackage

The plugin artifacts do not need the stock jars and are published by CI.

API changes

  • Additive only, with one recorded exception: api 9 moved classes between packages and raised MIN_API_VERSION to 9 (SDK 0.9.0). A newer SDK otherwise runs every older plugin unchanged.
  • Every new public member gets @since api N.
  • ApiLevels in build-logic must know the member, or permissionScan cannot enforce the declared level.
  • SdkInfo.API_VERSION and MIN_API_VERSION move only with a documented compatibility decision.
  • A new API level needs tests for the new members and a docs update.

Hotfixes

A hotfix is a patch release: bump the patch version, add a CHANGELOG entry, run the gates, tag. If the fix changes plugin behaviour, update the relevant guide and reference page in the same commit.