Validate compiler version properties and read pluginManagement for JavaVersion by timtebeek · Pull Request #1161 · openrewrite/rewrite-maven-plugin (original) (raw)

@timtebeek

…vaVersion

When determining the JavaVersion marker, the maven-compiler-plugin branch already rejected empty values and unresolved ${...} placeholders, but the maven.compiler.* property fallback did not: an unresolved or empty property flowed straight into the marker, where it parses to a -1 major version. Apply the same validation to the property values.

Also look up the compiler plugin from when it is not declared under , mirroring getCharset(), so version configuration declared only in plugin management is no longer missed.