From c64727409589348244cc27db207e033491e0ffd9 Mon Sep 17 00:00:00 2001 From: Mihir Pradhan Date: Mon, 21 Sep 2026 10:13:07 -0500 Subject: [PATCH 1/3] Fix SDK build and unit tests on JDK 27 --- duo-universal-sdk/pom.xml | 43 +++++++++++-------- .../test/java/com/duosecurity/ClientTest.java | 4 +- 2 files changed, 28 insertions(+), 19 deletions(-) diff --git a/duo-universal-sdk/pom.xml b/duo-universal-sdk/pom.xml index fad2833..7699194 100644 --- a/duo-universal-sdk/pom.xml +++ b/duo-universal-sdk/pom.xml @@ -31,6 +31,16 @@ + + + jdk8 + + 1.8 + + + 4.11.0 + + release @@ -124,13 +134,21 @@ org.mockito mockito-core - 3.11.2 + ${mockito.version} test + net.bytebuddy byte-buddy - 1.15.4 + 1.17.7 + + + net.bytebuddy + byte-buddy-agent + 1.17.7 + test @@ -144,7 +162,7 @@ org.apache.maven.plugins maven-assembly-plugin - 2.5.4 + 3.8.0 jar-with-dependencies @@ -155,7 +173,7 @@ make-assembly package - attached + single @@ -184,19 +202,7 @@ org.apache.maven.plugins maven-surefire-plugin - 2.22.1 - - - org.junit.platform - junit-platform-surefire-provider - 1.2.0-M1 - - - org.junit.jupiter - junit-jupiter-engine - 5.2.0-M1 - - + 3.6.0 org.cyclonedx @@ -220,5 +226,8 @@ 1.8 1.8 + + 5.23.0 diff --git a/duo-universal-sdk/src/test/java/com/duosecurity/ClientTest.java b/duo-universal-sdk/src/test/java/com/duosecurity/ClientTest.java index 5f167b6..3b3510a 100644 --- a/duo-universal-sdk/src/test/java/com/duosecurity/ClientTest.java +++ b/duo-universal-sdk/src/test/java/com/duosecurity/ClientTest.java @@ -19,8 +19,8 @@ import java.net.URL; import static org.junit.jupiter.api.Assertions.*; -import static org.mockito.Matchers.any; -import static org.mockito.Matchers.anyString; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.ArgumentMatchers.anyString; import static org.mockito.Mockito.verify; class ClientTest { From b97036a479692f79c1c4572498d8ab093d1ecab2 Mon Sep 17 00:00:00 2001 From: Mihir Pradhan Date: Mon, 21 Sep 2026 10:29:03 -0500 Subject: [PATCH 2/3] Add JDK 27 to the CI matrix --- .github/workflows/java-ci.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/java-ci.yml b/.github/workflows/java-ci.yml index b3a4c22..95e677c 100644 --- a/.github/workflows/java-ci.yml +++ b/.github/workflows/java-ci.yml @@ -14,7 +14,13 @@ jobs: strategy: matrix: - java-version: [8, 11, 17, 21] + include: + - { java-version: 8, distribution: temurin } + - { java-version: 11, distribution: temurin } + - { java-version: 17, distribution: temurin } + - { java-version: 21, distribution: temurin } + # Adoptium has not published Temurin 27 yet, so the 27 legs use Zulu + - { java-version: 27, distribution: zulu } steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 @@ -22,7 +28,7 @@ jobs: - name: Set up Java uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.0 with: - distribution: 'temurin' + distribution: ${{ matrix.distribution }} java-version: ${{ matrix.java-version }} - name: Build and test SDK @@ -41,7 +47,10 @@ jobs: strategy: matrix: - java-version: [17, 21] + include: + - { java-version: 17, distribution: temurin } + - { java-version: 21, distribution: temurin } + - { java-version: 27, distribution: zulu } steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 @@ -49,7 +58,7 @@ jobs: - name: Set up Java uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.0 with: - distribution: 'temurin' + distribution: ${{ matrix.distribution }} java-version: ${{ matrix.java-version }} - name: Inject dummy example config From 5190cd8dfacebb080a14cac761edc3f7741a6a1e Mon Sep 17 00:00:00 2001 From: Mihir Pradhan Date: Mon, 21 Sep 2026 15:20:48 -0500 Subject: [PATCH 3/3] Scope byte-buddy to tests and exclude it from production --- duo-universal-sdk/pom.xml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/duo-universal-sdk/pom.xml b/duo-universal-sdk/pom.xml index 7699194..80e2b04 100644 --- a/duo-universal-sdk/pom.xml +++ b/duo-universal-sdk/pom.xml @@ -119,6 +119,13 @@ com.squareup.retrofit2 converter-jackson 2.11.0 + + + + net.bytebuddy + byte-buddy + + com.auth0 @@ -137,12 +144,13 @@ ${mockito.version} test - + net.bytebuddy byte-buddy 1.17.7 + test net.bytebuddy