Skip to content

Fix Gradle plugin release build: pass springdoc version via system pr… - #93

Merged
vpelikh merged 1 commit into
mainfrom
Fix-Gradle-plugin-release-build
Aug 28, 2026
Merged

Fix Gradle plugin release build: pass springdoc version via system pr…#93
vpelikh merged 1 commit into
mainfrom
Fix-Gradle-plugin-release-build

Conversation

@vpelikh

@vpelikh vpelikh commented Aug 28, 2026

Copy link
Copy Markdown
Owner

…operty

The functional tests hardcoded a 5.1.0-SNAPSHOT dependency on the springdoc starter artifacts. During a release, prepare-release-commit.sh rewrites gradle.properties to the release version (e.g. 5.1.0) and Maven installs that release version into the local repo, so the sample apps could not resolve the -SNAPSHOT coordinate and the Gradle :test task failed the release build.

Pass the plugin project's resolved version to the tests via the springdocVersion system property (set in build.gradle from project.version) and interpolate it into the sample build.gradle dependency coordinates, falling back to 5.1.0-SNAPSHOT for local development. This keeps the tests in sync for both snapshots and releases.

…operty

The functional tests hardcoded a 5.1.0-SNAPSHOT dependency on the springdoc
starter artifacts. During a release, prepare-release-commit.sh rewrites
gradle.properties to the release version (e.g. 5.1.0) and Maven installs that
release version into the local repo, so the sample apps could not resolve the
-SNAPSHOT coordinate and the Gradle :test task failed the release build.

Pass the plugin project's resolved version to the tests via the springdocVersion
system property (set in build.gradle from project.version) and interpolate it into
the sample build.gradle dependency coordinates, falling back to 5.1.0-SNAPSHOT for
local development. This keeps the tests in sync for both snapshots and releases.
@vpelikh
vpelikh merged commit 9d96091 into main Aug 28, 2026
6 checks passed
@vpelikh
vpelikh deleted the Fix-Gradle-plugin-release-build branch August 28, 2026 09:23
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