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
/**
     * Find all tags in the major series for the supplied version
     * @param gitWrapper used to call `git`
     * @param currentVersion the version to base the query upon
     * @return all versions in the series
     */
    @VisibleForTesting
    static Set<QualifiedVersion> getVersions(GitWrapper gitWrapper, String currentVersion) {
        QualifiedVersion v = QualifiedVersion.of(currentVersion);
        final String pattern = "v" + v.major() + ".*";
        Set<QualifiedVersion> versions = gitWrapper.listVersions(pattern).collect(toSet());
        versions.add(v);
        return versions;
    }
    /**
     * Group a set of files by the version in which they first appeared, up until the supplied version. Any files not
     * present in an earlier version are assumed to have been introduced in the specified version.
     *
     * <p>This method works by finding all git tags prior to {@param versionString} in the same minor series, and
     * examining the git tree for that tag. By doing this over each tag, it is possible to see how the contents
     * of the changelog directory changed over time.
     *
     * @param gitWrapper used to call `git`
     * @param versionString the "current" version. Does not require a tag in git.
     * @param allFilesInCheckout the files to partition
     * @return a mapping from version to the files added in that version.
     */
    @VisibleForTesting
    static Map<QualifiedVersion, Set<File>> partitionFilesByVersion(
        GitWrapper gitWrapper,