Skip to content

chore: pin Spring/Hibernate majors in renovate config#2948

Merged
bjagg merged 1 commit into
uPortal-Project:masterfrom
bjagg:chore/renovate-pin-spring-hibernate
Apr 27, 2026
Merged

chore: pin Spring/Hibernate majors in renovate config#2948
bjagg merged 1 commit into
uPortal-Project:masterfrom
bjagg:chore/renovate-pin-spring-hibernate

Conversation

@bjagg

@bjagg bjagg commented Apr 27, 2026

Copy link
Copy Markdown
Member

Summary

  • Add three allowedVersions constraints to renovate.json matching how the rest of the fleet is pinned, so Renovate stops opening major-bump PRs for Spring 5/6, Spring Security 5+, and Hibernate 5+.
  • This is config-only — no dependency versions change.

Why

uPortal is on Spring Framework 4.3.30, Spring Security 4.2.20, and Hibernate 4.2.21. Each of those majors requires a coordinated migration we have not scheduled. Renovate keeps surfacing these as [security] PRs, which we close every cycle by hand:

This PR encodes the constraint so they stop coming through.

Pins added

GroupIds Cap Reason
org.springframework:* / .data:* / .webflow:* < 5.0 Spring 5+ is an API migration; Spring 6+ also requires Jakarta EE + Java 17
org.springframework.security:* / .oauth:* < 5.0 Bound to the Spring Framework 4.3.x line; moves in lockstep with a Spring core migration
org.hibernate:* / org.hibernate.orm:* < 5.0 Hibernate 5+ has API + EntityManager changes; 6+ renames the groupId and needs Jakarta EE + Java 17

Not pinned (allowed to proceed normally)

Pattern consistency

Same shape as the renovate.json files added across the portlet repos in the April sweep (AnnouncementsPortlet, basiclti-portlet, FeedbackPortlet, NotificationPortlet, CalendarPortlet, etc.).

Test plan

  • python3 -c "import json; json.load(open('renovate.json'))" — JSON valid
  • Renovate parses and re-evaluates the dashboard (verifiable after merge — the four major-bump PRs above should be auto-closed or stop being re-opened)
  • CI green

🤖 Generated with Claude Code

Problem: Renovate keeps opening major-bump PRs (Spring 5/6, Spring
Security 5+, Hibernate 5+) because the Maven Central versions newer
than what we pin in gradle.properties show up as available, and
[security] flags in those PRs amplify the noise. Each major is a
coordinated migration we are not ready for, and we close them by hand
every cycle. Recent examples: uPortal-Project#2937, uPortal-Project#2940, uPortal-Project#2941, uPortal-Project#2942.

Goal: encode the migration constraints in renovate.json so Renovate
stops offering majors that won't be merged. Stays consistent with the
same pinning pattern applied across the portlet repos in the recent
sweep (AnnouncementsPortlet, basiclti-portlet, FeedbackPortlet,
NotificationPortlet, etc.).

Changes:
- renovate.json: add three packageRules entries with allowedVersions
  - org.springframework:* / .data:* / .webflow:* → < 5.0
    (Spring 5+ requires a coordinated API migration; Spring 6+ adds
     Jakarta EE + Java 17 on top.)
  - org.springframework.security:* / .oauth:* → < 5.0
    (Bound to the Spring Framework 4.3.x line; moves in lockstep.)
  - org.hibernate:* / org.hibernate.orm:* → < 5.0
    (Hibernate 5+ has API + EntityManager changes; 6+ renames the
     groupId and needs Jakarta EE + Java 17.)

Notes: did not pin Spring LDAP (2.x is current line, 2.4.4 bump in
uPortal-Project#2938 is a minor), Springfox (2.10.0 bump in uPortal-Project#2935 is also a minor),
or Guava (uPortal-Project#2939 to v32 is plausible — resource-server already runs
guava 32). These can flow through normally.

Closes uPortal-Project#2937, uPortal-Project#2940 (duplicates).
Closes uPortal-Project#2941, uPortal-Project#2942 (won't migrate this release).

Refs uPortal-Project#2938, uPortal-Project#2935, uPortal-Project#2939 (allowed to proceed normally).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant