Regenerated the release notes [ci skip]
Improved the build logic related to releases.

Avoided the hack with applying the release-notes plugin late. Added task for updating release notes locally for dry-running purposes [ci skip]