Skip to content

![medium](https://www.gstatic.com/codereviewagent/medium-priority.svg) #87

@tylerblakex-netizen

Description

@tylerblakex-netizen

medium

To improve maintainability and ensure consistent versions for related dependencies, it's a good practice to define the version as a property and reference it. This is particularly useful for Spring Boot modules.

First, add a property for the Spring Boot version in the <properties> section:

<properties>
  ...
  <spring.boot.version>3.2.0</spring.boot.version>
</properties>

Then, use this property for your Spring Boot dependencies.

    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-web</artifactId>
      <version>${spring.boot.version}</version>
    </dependency>
    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-validation</artifactId>
      <version>${spring.boot.version}</version>
    </dependency>

Originally posted by @gemini-code-assist in #86 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions