Skip to content

Update dependencies, fix build, add Maven Central publishing#61

Merged
robinbraemer merged 2 commits intomasterfrom
fix/dependencies-and-maven-central
Jan 21, 2026
Merged

Update dependencies, fix build, add Maven Central publishing#61
robinbraemer merged 2 commits intomasterfrom
fix/dependencies-and-maven-central

Conversation

@robinbraemer
Copy link
Owner

Summary

  • Security fix: Update commons-lang3 to 3.18.0 (CVE-2025-48924)
  • Fix build: Project now compiles (was broken on master)
  • Add Maven Central publishing with GitHub Actions
  • Keep JitPack support for existing users

Changes

Build Fixes

  • Add jsr305:3.0.2 dependency for @Nullable annotation
  • Configure Lombok annotation processor in maven-compiler-plugin
  • Fix httpResponse.getBody()httpResponse.body() (correct Unirest API)

Dependency Updates

Package Old New
commons-lang3 3.13.0 3.18.0
gson 2.10.1 2.13.2
guava 32.0.0-jre 33.5.0-jre
lombok 1.18.26 1.18.42
maven-compiler-plugin 3.11.0 3.14.1
maven-assembly-plugin 3.5.0 3.8.0
maven-source-plugin 3.2.1 3.4.0

New Files

  • .github/workflows/ci.yml - CI for Java 8, 11, 17
  • .github/workflows/publish.yml - Maven Central release workflow

Maven Central Setup

New coordinates: io.github.robinbraemer:cloudflare-api:1.5.0

After merging, you need to add these GitHub secrets:

  • OSSRH_USERNAME - Sonatype token username
  • OSSRH_TOKEN - Sonatype token password
  • GPG_PRIVATE_KEY - GPG private key for signing
  • GPG_PASSPHRASE - GPG passphrase

Non-Breaking

  • JitPack users can continue using com.github.robinbraemer:CloudflareAPI
  • Maven Central is a new distribution channel, not a replacement

Test Plan

  • Build compiles successfully
  • CI passes on GitHub Actions
  • After secrets are added, test publish workflow

- Security: Update commons-lang3 to 3.18.0 (CVE-2025-48924)
- Update all dependencies to latest versions
- Fix build: Add jsr305 dependency, configure Lombok annotation processor
- Fix CloudflareRequest.java: getBody() -> body() for Unirest API
- Add GitHub Actions CI workflow (Java 8, 11, 17)
- Add Maven Central publishing workflow
- Update README with both Maven Central and JitPack installation options
- Change groupId to io.github.robinbraemer for Maven Central

Dependency updates:
- commons-lang3: 3.13.0 -> 3.18.0
- gson: 2.10.1 -> 2.13.2
- guava: 32.0.0-jre -> 33.5.0-jre
- lombok: 1.18.26 -> 1.18.42
- maven-compiler-plugin: 3.11.0 -> 3.14.1
- maven-assembly-plugin: 3.5.0 -> 3.8.0
- maven-source-plugin: 3.2.1 -> 3.4.0
@robinbraemer robinbraemer merged commit c4e1a34 into master Jan 21, 2026
3 checks passed
@robinbraemer robinbraemer deleted the fix/dependencies-and-maven-central branch January 21, 2026 14:15
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