Skip to content

chore: tighten renovate pins (servlet-api, plexus-archiver, mockito)#264

Merged
bjagg merged 1 commit intouPortal-Project:masterfrom
bjagg:chore/renovate-tighten-pins
Apr 24, 2026
Merged

chore: tighten renovate pins (servlet-api, plexus-archiver, mockito)#264
bjagg merged 1 commit intouPortal-Project:masterfrom
bjagg:chore/renovate-tighten-pins

Conversation

@bjagg
Copy link
Copy Markdown
Member

@bjagg bjagg commented Apr 24, 2026

Summary

Add three packageRules and broaden the Spring rule so Renovate stops proposing bumps this portlet can't absorb without broader coordination.

New rules

Rule Reason
javax.servlet:servlet-api < 3.0 Portlet compiles against the legacy artifactId at 2.5. Servlet 3.x moved to javax.servlet:javax.servlet-api (different artifactId). Runtime provides 3.1 via tomcat-servlet-api from parent.
org.codehaus.plexus:plexus-archiver < 4.11.0 4.11 calls commons-io BoundedInputStream.builder(), which only exists in a newer commons-io than the one maven-war-plugin:3.4.0 bundles. Same pin we added to basiclti-portlet#56. Closes #256.
org.mockito:mockito-core/inline/junit-jupiter < 5.0 Mockito 5 uses the inline MockMaker by default; its bundled byte-buddy references ClassFileVersion.JAVA_V21, missing on the byte-buddy 1.12.x pulled transitively via Javassist. Would fail tests with "Could not initialize inline Byte Buddy mock maker". Closes #235.

Change

Broadened the Spring rule to matchPackagePrefixes: ["org.springframework:", "org.springframework.data:"] so new Spring artifacts are covered automatically (e.g. the Dependabot Spring 6 proposals #227 + #229 that hand-maintained names weren't catching).

🤖 Generated with Claude Code

Add three packageRules to stop Renovate from proposing bumps this
portlet can't absorb without broader coordination. Also broaden
the Spring rule to use matchPackagePrefixes so new Spring artifacts
are covered automatically.

- javax.servlet:servlet-api < 3.0 — this portlet compiles against
  the legacy artifactId at 2.5. Servlet 3.x lives at
  javax.servlet:javax.servlet-api (different artifactId), and the
  runtime container provides 3.1 via tomcat-servlet-api in the
  parent. Pinning prevents Renovate from chasing a never-coming
  3.x bump on the 2.5 coordinate.

- org.codehaus.plexus:plexus-archiver < 4.11.0 — 4.11 calls
  commons-io BoundedInputStream.builder(), which only exists in a
  newer commons-io than the one maven-war-plugin 3.4.0 bundles.
  (This is the same pin we added to basiclti-portlet.) Closes uPortal-Project#256.

- org.mockito:mockito-core / mockito-inline / mockito-junit-jupiter
  < 5.0 — Mockito 5 uses the inline MockMaker by default and its
  bundled byte-buddy references ClassFileVersion.JAVA_V21, which
  the byte-buddy 1.12.x pulled transitively via Javassist doesn't
  have. Would break tests with
  "Could not initialize inline Byte Buddy mock maker". Will revisit
  once byte-buddy can be reconciled at the parent level.
  Closes uPortal-Project#235.

- Spring rule broadened to matchPackagePrefixes
  (org.springframework:, org.springframework.data:). Catches the
  Dependabot Spring 6 proposals (uPortal-Project#227, uPortal-Project#229) and any future
  spring-* artifacts without hand-maintaining the list.
@bjagg bjagg merged commit 8e7ebae into uPortal-Project:master Apr 24, 2026
5 checks passed
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