Skip to content

Override the Maven property java.version for projects using spring-boot-starter-parent #66

@timtebeek

Description

@timtebeek

As you're probably well aware, Maven projects using spring-boot-starter-parent can override the java.version property to set the maven.compiler.source and maven.compiler.targer versions. These are defined in the parent pom.xml through their build.gradle file.

It would make sense (to me at least) to define this property when needed, and override the value for such Spring Boot projects when moving from Java 8 to 11. That way users have one less manual step to perform when migrating in bulk from 8 to 11.

I imagine the implementation would not need much Spring specifics:

  • you'll want to find spring-boot-starter-parent, anywhere up the hierarchy,
  • detect the presence of the property value, also up the hierarchy,
  • if the nearest value is below 11, define the property with the new value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions