Skip to content

chore: move Spring Boot version into Gradle version catalog so Dependabot can track it - #6713

Merged
valfirst merged 1 commit into
masterfrom
copilot/investigate-spring-boot-dependency
Jun 24, 2026
Merged

chore: move Spring Boot version into Gradle version catalog so Dependabot can track it#6713
valfirst merged 1 commit into
masterfrom
copilot/investigate-spring-boot-dependency

Conversation

Copilot AI commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Dependabot's Gradle parser cannot resolve versions declared as ext variables inside buildscript {} blocks, so Spring Boot was never bumped automatically.

Changes

  • gradle/libs.versions.toml — adds [versions], [libraries], and [plugins] entries for Spring Boot:

    [versions]
    spring-boot = "4.0.3"
    
    [libraries]
    spring-boot-bom = { module = "org.springframework.boot:spring-boot-dependencies", version.ref = "spring-boot" }
    
    [plugins]
    spring-boot = { id = "org.springframework.boot", version.ref = "spring-boot" }
  • vividus-to-xray-exporter, vividus-to-azure-devops-exporter, vividus-to-zephyr-exporter — replace buildscript {} + apply plugin: with the plugins {} DSL; replace the hardcoded BOM string with platform(libs.spring.boot.bom):

    // Before
    buildscript {
        ext { springBootVersion = '4.0.3' }
        dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") }
    }
    apply plugin: org.springframework.boot.gradle.plugin.SpringBootPlugin
    // ...
    implementation platform("org.springframework.boot:spring-boot-dependencies:${springBootVersion}")
    
    // After
    plugins {
        alias(libs.plugins.spring.boot)
    }
    // ...
    implementation platform(libs.spring.boot.bom)
  • vividus-exporter-commons — removes the ext { springBootVersion } block; imports the BOM via platform(libs.spring.boot.bom) and drops the explicit version from each Spring Boot dependency.

@codecov

codecov Bot commented Jun 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.79%. Comparing base (fb2f164) to head (f2201af).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #6713   +/-   ##
=========================================
  Coverage     97.79%   97.79%           
  Complexity     7325     7325           
=========================================
  Files          1015     1015           
  Lines         21508    21508           
  Branches       1416     1416           
=========================================
  Hits          21033    21033           
  Misses          359      359           
  Partials        116      116           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

Copy link
Copy Markdown

Qodana for JVM

8 new problems were found

Inspection name Severity Problems
Vulnerable declared dependency ◽️ Notice 8

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at qodana-support@jetbrains.com

implementation project(':vividus-util')
implementation("org.springframework.boot:spring-boot-starter:${springBootVersion}")
implementation("org.springframework.boot:spring-boot-starter-log4j2:${springBootVersion}")
implementation platform(libs.spring.boot.bom)
implementation project(':vividus-util')
implementation("org.springframework.boot:spring-boot-starter:${springBootVersion}")
implementation("org.springframework.boot:spring-boot-starter-log4j2:${springBootVersion}")
implementation platform(libs.spring.boot.bom)
dependencies {
// https://github.com/spring-gradle-plugins/dependency-management-plugin/issues/257
implementation platform("org.springframework.boot:spring-boot-dependencies:${springBootVersion}")
implementation platform(libs.spring.boot.bom)
dependencies {
// https://github.com/spring-gradle-plugins/dependency-management-plugin/issues/257
implementation platform("org.springframework.boot:spring-boot-dependencies:${springBootVersion}")
implementation platform(libs.spring.boot.bom)
dependencies {
// https://github.com/spring-gradle-plugins/dependency-management-plugin/issues/257
implementation platform("org.springframework.boot:spring-boot-dependencies:${springBootVersion}")
implementation platform(libs.spring.boot.bom)
dependencies {
// https://github.com/spring-gradle-plugins/dependency-management-plugin/issues/257
implementation platform("org.springframework.boot:spring-boot-dependencies:${springBootVersion}")
implementation platform(libs.spring.boot.bom)
dependencies {
// https://github.com/spring-gradle-plugins/dependency-management-plugin/issues/257
implementation platform("org.springframework.boot:spring-boot-dependencies:${springBootVersion}")
implementation platform(libs.spring.boot.bom)
dependencies {
// https://github.com/spring-gradle-plugins/dependency-management-plugin/issues/257
implementation platform("org.springframework.boot:spring-boot-dependencies:${springBootVersion}")
implementation platform(libs.spring.boot.bom)
@sonarqubecloud

Copy link
Copy Markdown

@valfirst
valfirst marked this pull request as ready for review June 24, 2026 16:26
@valfirst
valfirst requested a review from a team as a code owner June 24, 2026 16:26
@valfirst
valfirst merged commit 5bfb63c into master Jun 24, 2026
24 of 33 checks passed
@valfirst
valfirst deleted the copilot/investigate-spring-boot-dependency branch June 24, 2026 16:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Moves the Spring Boot version and coordinates into the Gradle version catalog so Dependabot can detect and bump Spring Boot automatically, and updates exporter modules to use the plugins {} DSL plus the catalog-provided Spring Boot BOM.

Changes:

  • Added Spring Boot version, BOM library alias, and Spring Boot plugin alias to gradle/libs.versions.toml.
  • Switched Zephyr/Xray/Azure DevOps exporter modules from buildscript {} + apply plugin to plugins { alias(...) }.
  • Replaced hardcoded Spring Boot BOM coordinates / per-dependency versions with platform(libs.spring.boot.bom) and versionless Spring Boot starter declarations (where applicable).

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
gradle/libs.versions.toml Adds Spring Boot version, BOM library entry, and Spring Boot plugin alias to the version catalog.
vividus-to-zephyr-exporter/build.gradle Uses version-catalog plugin alias for Spring Boot and imports the Spring Boot BOM via libs.
vividus-to-xray-exporter/build.gradle Uses version-catalog plugin alias for Spring Boot and imports the Spring Boot BOM via libs.
vividus-to-azure-devops-exporter/build.gradle Uses version-catalog plugin alias for Spring Boot and imports the Spring Boot BOM via libs.
vividus-exporter-commons/build.gradle Removes local Spring Boot version and relies on the catalog-provided Spring Boot BOM and versionless starters.

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.

4 participants