exasol / project-keeper

This maven plugin checks and unifies a project's structure according to the Exasol integration team's repository standards.
MIT License
3 stars 1 forks source link

Use `java.version` property from parent pom if available #530

Open kaklakariada opened 7 months ago

kaklakariada commented 7 months ago

PK generates property java.version with hard coded value 11 in pk_generated_parent.pom. This can be overridden in pom.xml to 17 if necessary.

However in multi-module projects this will always override java.version to 11, even if all modules should use 17. Thus it would be better to not add property java.version when there is a custom parent pom (parameter parentPom: in .project-keeper.yml).

Relevant method: PomFileGenerator.properties().