Skip to content

Local properties are not prioritized in BOM #26

@joke

Description

@joke

Hi,

I'm using plugin version 3.6.2. It seems the current behavior of maven bom provider does not prioritize local properties when they are defined in the pom alwell. I'm not sure if it is a bug or intended behavior but it is contradictory to a common use case like spring boot.

ext['hibernate.version'] = '5.2.4.Final'
dependencyRecommendations {
	mavenBom module: "org.springframework.boot:spring-boot-dependencies:1.4.2.RELEASE"
}

The maven pom sets the property hibernate.version to 5.0.11.Final in its properties block. The recommendation plugin does consider the local version 5.2.4.Final as the higher priority. The documentation Maven-BOM-Provider on the over hand states properties can be at least supplied via the ext mechanism. And most likely the later ones should take priority.

Regards
Joke

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions