Repository navigation
Add Kotlin publishing and shared NuGet/Swift package versions - #319
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
Required downstream Swift CI remains in progress, and version-calculation failures still need to propagate correctly.
1 open issue
What changed in this PR
Adds Kotlin/JVM packaging and coordinates NuGet, Maven, and downstream Swift releases using one shared version.
Changes:
- Adds Kotlin generation, publishing, protocol tests, and a separate consumer smoke test.
- Centralizes package version calculation and release coordination.
- Documents package consumption and publishing workflows.
| File | Description |
|---|---|
| version.txt | Defines the shared major/minor version. |
| scripts/test_package_version.py | Tests shared version rules. |
| scripts/package-version.py | Calculates release and prerelease versions. |
| README.md | Documents packages and release coordination. |
| protobuf.version | Pins the Kotlin Protobuf toolchain version. |
| protobuf_definitions/telemetry.proto | Enables separate Java message classes. |
| protobuf_definitions/req_rep.proto | Enables separate Java message classes. |
| protobuf_definitions/mission_planning.proto | Enables separate Java message classes. |
| protobuf_definitions/message_formats.proto | Enables separate Java message classes. |
| protobuf_definitions/control.proto | Enables separate Java message classes. |
| protobuf_definitions/aquatroll.proto | Enables separate Java message classes. |
| kotlin/src/test/kotlin/blueye/protocol/ProtocolTest.kt | Tests serialization and full-runtime capabilities. |
| kotlin/smoke-test/src/main/kotlin/Consumer.kt | Exercises the published package. |
| kotlin/smoke-test/settings.gradle.kts | Names the consumer project. |
| kotlin/smoke-test/build.gradle.kts | Configures publication consumption. |
| kotlin/settings.gradle.kts | Names the library project. |
| kotlin/README.md | Documents Kotlin usage and publishing. |
| kotlin/gradlew.bat | Adds the Windows Gradle launcher. |
| kotlin/gradlew | Adds the POSIX Gradle launcher. |
| kotlin/gradle/wrapper/gradle-wrapper.properties | Pins the Gradle distribution and checksum. |
| kotlin/gradle.properties | Configures Gradle and Kotlin defaults. |
| kotlin/build.gradle.kts | Configures generation, testing, and Maven publishing. |
| Directory.Build.props | Derives the local .NET version. |
| Blueye.Protocol.Protobuf.csproj | Uses shared versioning and narrows schema inclusion. |
| .gitignore | Ignores Gradle and Kotlin state. |
| .github/workflows/ci-swift.yaml | Dispatches the protocol revision and version. |
| .github/workflows/ci-kotlin.yaml | Builds, verifies, and publishes Maven packages. |
| .github/workflows/ci-dotnet.yaml | Coordinates versioning and package releases. |
Review effort: Balanced
sindrehan
approved these changes
Oct 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Adds a Kotlin/JVM Maven package with the full Protobuf Java and Kotlin runtimes, generated message classes and Kotlin DSLs. Generated Swift sources live in blueye.protocol.swift; this repository dispatches the exact protocol commit and package version to its update/release workflow.
NuGet, Maven, and Swift share one version calculated by the existing
ci-dotnet.yamlworkflow.version.txtholds the Blueye App major/minor version (6.5); master publishes stable6.5.<run-number>versions automatically, while other branches use a prerelease suffix. The Python package and its existing release process are unchanged.Validation:
6.5.815in a local test build.The downstream Swift receiver is committed, its dispatch variable is configured, and macOS/Linux CI passes. GitHub Actions also successfully published the same feature-branch version,
6.5.815-branch-codex-protocol-client-packages, to NuGet and Maven. Stable releases and the matching Swift tag are triggered after merging to master.