initializr/initializr-metadata
Stephane Nicoll 17df3b9b5d Handle both snapshots and releases enabled flags in Maven Pom
This commit improves the handling of repositories with Maven.
Previously, the writer wrongly assumed that the default for releases
and snapshots are true and false respectively. However, both defaults
are true which means that snapshots repository are considered for
releases, and releases repositories are considered for snapshots.

MavenRepository has now separate flags for those and the writer makes
sure to only update the `enabled` flag if the chosen value is not
true. This doesn't increase the content for repository definitions
while offering better performance for dependencies resolution.

Closes gh-1226
2021-04-20 20:20:41 +02:00
..
src Handle both snapshots and releases enabled flags in Maven Pom 2021-04-20 20:20:41 +02:00
pom.xml Harmonize SCM information 2019-10-05 18:32:42 +01:00