Skip to content

feat: Update Project#28

Open
jlewis23 wants to merge 1 commit into
blacklocus:masterfrom
RiversideCode:feature/update_classes
Open

feat: Update Project#28
jlewis23 wants to merge 1 commit into
blacklocus:masterfrom
RiversideCode:feature/update_classes

Conversation

@jlewis23
Copy link
Copy Markdown

@jlewis23 jlewis23 commented May 5, 2026

🔧 Key Changes

✅ AWS SDK v2 Migration

  • Replaced AWS SDK v1 (com.amazonaws.) with AWS SDK v2 (software.amazon.awssdk.)
  • Updated:
    • MetricDatum, Dimension, StatisticSet
    • Removed .withX(...) mutators → replaced with immutable builders
  • Switched to CloudWatchClient (sync) instead of async v1 client

✅ Dropwizard Metrics 5 Upgrade

  • Migrated from com.codahale.metrics → io.dropwizard.metrics5
  • Updated:
    • MetricRegistry
    • ScheduledReporter signatures
    • MetricName usage instead of String
  • Fixed Gauge registration (registerGauge(...))

✅ CloudWatch Reporter Refactor

  • Rewrote CloudWatchReporter:
    • Updated report(...) method signature for Metrics 5
    • Removed deprecated async CloudWatch calls
    • Implemented batching with PutMetricDataRequest
    • Ensured immutability via .toBuilder()

✅ Test Suite Fixes

  • Updated tests for:
    • AWS SDK v2 builders
    • Metrics 5 APIs
    • JUnit Jupiter migration
  • Fixed mocking issues with AWS SDK v2 final classes

✅ Gradle / Build Updates

  • Java 21 toolchain enabled
  • Publishing configured for GitHub Packages (in-progress)
  • Spotless formatting applied
  • Dependency cleanup (removed legacy libs)

⚠️ Breaking Changes

  • Requires:
    • Java 11+ (Gradle runtime)
    • AWS SDK v2 consumers
  • API changes due to:
    • Metrics 5 upgrade

🧪 Testing

  • All unit and integration tests updated and passing
  • Verified CloudWatch metric publishing flow

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