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
LOGGER.info("Updating remote [{}]", upstream);
        
        gitWrapper.updateRemote(upstream);
        LOGGER.info("Updating tags from [{}]", upstream);
        gitWrapper.updateTags(upstream);
    }
    /**
     * This methods checks the supplied version and answers {@code false} if the fetching of git
     * tags can be skipped, or {@code true} otherwise.
     * <p>
     * The first version in a minor series will never have any preceding versions, so there's no
     * need to fetch tags and examine the repository state in the past. This applies when the
     * version is a release version, a snapshot, or the first alpha version. Subsequent alphas,
     * betas and release candidates need to check the previous prelease tags.
     *
     * @param versionString the version string to check
     * @return whether fetching git tags is required
     */
    @VisibleForTesting
    static boolean needsGitTags(String versionString) {
        if (versionString.endsWith(".0") || versionString.endsWith(".0-SNAPSHOT") || versionString.endsWith(".0-alpha1")) {
            return false;
        }
        return true;
    }
    @InputFiles
    public FileCollection getChangelogs() {
        return changelogs;
    }
    public void setChangelogs(FileCollection files) {