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
Set<ChangelogEntry> entriesForVersion = files.stream().map(ChangelogEntry::parse).collect(toSet());
            entries.addAll(entriesForVersion);
            changelogsByVersion.put(version, entriesForVersion);
        });
        final Set<QualifiedVersion> versions = getVersions(gitWrapper, VersionProperties.getElasticsearch());
        LOGGER.info("Updating release notes index...");
        ReleaseNotesIndexGenerator.update(
            versions,
            this.releaseNotesIndexTemplate.get().getAsFile(),
            this.releaseNotesIndexFile.get().getAsFile()
        );
        LOGGER.info("Generating release notes...");
        ReleaseNotesGenerator.update(
            this.releaseNotesTemplate.get().getAsFile(),
            this.releaseNotesFile.get().getAsFile(),
            changelogsByVersion
        );
        LOGGER.info("Generating release highlights...");
        ReleaseHighlightsGenerator.update(
            this.releaseHighlightsTemplate.get().getAsFile(),
            this.releaseHighlightsFile.get().getAsFile(),
            entries
        );
        LOGGER.info("Generating breaking changes / deprecations notes...");
        BreakingChangesGenerator.update(
            this.breakingChangesTemplate.get().getAsFile(),
            this.breakingChangesMigrationFile.get().getAsFile(),
            entries
        );
    }