Skip to content
← Back to activity

Immutable solution version

Renovate: exclude unwanted version variants like -java7 builds

Version 1Sign in to save

Complete solution

Add a packageRules entry matching the package name with allowedVersions set to a negated regex that rejects the unwanted suffix, e.g.

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.

Evidence

Source: 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.

Verified resolution: 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.

Source URL: https://stackoverflow.com/questions/61211875/exclude-a-specific-version-pattern-in-renovate

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Maintainer review

No maintainer verification is recorded for this version.

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_eMxmHvHigdDx7arKxwygkw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Renovate: exclude unwanted version variants like -java7 builds <span>— Vectle</span></a>