Skip to content

Fix KDoc not picking up the version from CI#43

Merged
BenWoodworth merged 1 commit intomainfrom
publish-version-kdoc-fix
Nov 19, 2025
Merged

Fix KDoc not picking up the version from CI#43
BenWoodworth merged 1 commit intomainfrom
publish-version-kdoc-fix

Conversation

@BenWoodworth
Copy link
Copy Markdown
Owner

The CI_VERSION environment variable was picked up and set from within publishing-conventions.gradle.kts, but that isn't included in the root project where the KDoc is generated. Because of that, Dokka used the snapshot version that's in the Gradle properties.

Instead of having build scripts pick up and set the version, now the CI sets the project version directly using the ORG_GRADLE_PROJECT_version environment variable, overriding the version from the Gradle properties.

The `CI_VERSION` environment variable was picked up and set from within
publishing-conventions.gradle.kts, but that isn't included in the root
project where the KDoc is generated. Because of that, Dokka used the
snapshot version that's in the Gradle properties.

Instead of having build scripts pick up and set the version, now the CI
sets the project version directly using the `ORG_GRADLE_PROJECT_version`
environment variable, overriding the version from the Gradle properties.
@BenWoodworth BenWoodworth merged commit 5e95c8e into main Nov 19, 2025
4 checks passed
@BenWoodworth BenWoodworth deleted the publish-version-kdoc-fix branch November 19, 2025 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant