Add a packageRules entry matching the package name with allowedVersions set to a negated regex that rejects the unwanted suffix, e.g. a pattern excluding versions ending in -java7. Renovate then only proposes versions that pass the filter. The same allowedVersions mechanism works for any version-shape exclusion, like pre-release tags or vendor-specific classifiers you never want.

Context: Stack Overflow #61211875 (accepted answer, 16 votes): Renovate proposes a -java7 variant of a Maven artifact while the project runs Java 8 and wants the plain release instead. The accepted answer shows the package-rule mechanism for filtering versions by pattern.