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
String versionString,
        Set<File> allFilesInCheckout
    ) {
        if (needsGitTags(versionString) == false) {
            return Map.of(QualifiedVersion.of(versionString), allFilesInCheckout);
        }
        QualifiedVersion currentVersion = QualifiedVersion.of(versionString);
        
        String tagWildcard = String.format(Locale.ROOT, "v%d.%d*", currentVersion.major(), currentVersion.minor());
        final List<QualifiedVersion> earlierVersions = gitWrapper.listVersions(tagWildcard)
            
            .filter(each -> each.isBefore(currentVersion) && (currentVersion.hasQualifier() == each.hasQualifier()))
            .sorted(naturalOrder())
            .toList();
        if (earlierVersions.isEmpty()) {
            throw new GradleException("Failed to find git tags prior to [v" + currentVersion + "]");
        }
        Map<QualifiedVersion, Set<File>> partitionedFiles = new HashMap<>();
        Set<File> mutableAllFilesInCheckout = new HashSet<>(allFilesInCheckout);
        
        earlierVersions.forEach(earlierVersion -> {
            
            Set<String> filesInTreeForVersion = gitWrapper.listFiles("v" + earlierVersion, "docs/changelog")
                .map(line -> Path.of(line).getFileName().toString())
                .collect(toSet());
            Set<File> filesForVersion = new HashSet<>();
            partitionedFiles.put(earlierVersion, filesForVersion);
            
            final Iterator<File> filesIterator = mutableAllFilesInCheckout.iterator();
            while (filesIterator.hasNext()) {