Skip to content

Conversation

yuriyostapenko
Copy link
Contributor

This PR adds the following changes:

  • Upgrade to JDK 17 and all latest versions of dependencies
  • Fix breaking changes and deprecated usages
  • Remove some dependencies in favor of JDK features, such as expiringmap is now replaced with ConcurrentMap
  • Replaced HttpURLConnection with JDK 11+ HttpClient
  • Move from old OSSRH to Maven Central for publishing
  • Migrate CI/CD to GitHub Actions

Co-authored with Claude and Copilot 😄

@Copilot Copilot AI review requested due to automatic review settings July 22, 2025 21:20
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR modernizes the OAuth2 Token Endpoint Client library by upgrading to JDK 17 and updating all dependencies to their latest versions. The changes include replacing deprecated APIs, removing external dependencies in favor of JDK features, and migrating the build system to GitHub Actions with Maven Central publishing.

  • Upgrade to JDK 17 and update all dependencies to latest versions
  • Replace HttpURLConnection with JDK 11+ HttpClient for better performance and maintainability
  • Replace ExpiringMap dependency with built-in ConcurrentHashMap implementation

Reviewed Changes

Copilot reviewed 24 out of 24 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
pom.xml Updated dependencies, JDK version, and publishing configuration
TokenEndpointHttpClient.java Replaced HttpURLConnection with modern HttpClient
InMemoryTokenCache.java Replaced ExpiringMap with ConcurrentHashMap-based implementation
ClientAssertionJwtFactory.java Updated to newer JJWT API methods
CertificateUtil.java Replaced deprecated Base64 encoder with JDK standard
DigestUtil.java Simplified using StandardCharsets and HexFormat
Multiple test files Updated MockServer API usage and removed deprecated annotations

@yuriyostapenko yuriyostapenko merged commit b9a4797 into main Jul 22, 2025
@yuriyostapenko yuriyostapenko deleted the upgrade-2.0 branch July 22, 2025 21:29
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