When trying to generate release notes we're seeing the following error:

```
Execution failed for task ':generateReleaseNotes'.
> Failed to find git tags prior to [v8.1.1-SNAPSHOT]
```

I believe the root cause is our handling of version qualifiers [here](https://github.com/elastic/elasticsearch/blob/bafdcbd2f179c54e3a1479ef53da7bc959f57cd5/build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/release/GenerateReleaseNotesTask.java#L182). Since the current version is _always_ a snapshot we seem to not correctly identified older release versions.
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/release/GenerateReleaseNotesTask.java
private final RegularFileProperty releaseHighlightsFile;
    private final RegularFileProperty breakingChangesMigrationFile;
    private final GitWrapper gitWrapper;
    @Inject
    public GenerateReleaseNotesTask(ObjectFactory objectFactory, ExecOperations execOperations) {
        changelogs = objectFactory.fileCollection();
        releaseNotesIndexTemplate = objectFactory.fileProperty();
        releaseNotesTemplate = objectFactory.fileProperty();
        releaseHighlightsTemplate = objectFactory.fileProperty();
        breakingChangesTemplate = objectFactory.fileProperty();
        releaseNotesIndexFile = objectFactory.fileProperty();
        releaseNotesFile = objectFactory.fileProperty();
        releaseHighlightsFile = objectFactory.fileProperty();
        breakingChangesMigrationFile = objectFactory.fileProperty();
        gitWrapper = new GitWrapper(execOperations);
    }
    @TaskAction
    public void executeTask() throws IOException {
        if (needsGitTags(VersionProperties.getElasticsearch())) {
            findAndUpdateUpstreamRemote(gitWrapper);
        }
        LOGGER.info("Finding changelog files...");
        final Map<QualifiedVersion, Set<File>> filesByVersion = partitionFilesByVersion(
            gitWrapper,
            VersionProperties.getElasticsearch(),
            this.changelogs.getFiles()
        );
        final List<ChangelogEntry> entries = new ArrayList<>();
        final Map<QualifiedVersion, Set<ChangelogEntry>> changelogsByVersion = new HashMap<>();
        filesByVersion.forEach((version, files) -> {