From 0230d41773e2d26e7eb553be1179d411785d573c Mon Sep 17 00:00:00 2001 From: Ihor Prysiazhnyi Date: Tue, 29 Jul 2025 08:14:22 +0300 Subject: [PATCH 1/4] Adds CI step to test publishing --- .github/workflows/ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 43b406da..f3146aa3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,3 +65,18 @@ jobs: run: | unzip -j /home/runner/work/*.zip -d app/libs/ ./gradlew test + test_publish_to_maven: + runs-on: ubuntu-latest +# if: ${{ github.ref == 'refs/heads/master' }} + permissions: + contents: read + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 8 + uses: actions/setup-java@v4 + with: + java-version: '8' + distribution: 'zulu' + + - name: Test PublishToMaven + run: ./gradlew publishToMavenLocal From efa898b93430a0c14043136844934a19412d7f41 Mon Sep 17 00:00:00 2001 From: Ihor Prysiazhnyi Date: Tue, 29 Jul 2025 08:19:08 +0300 Subject: [PATCH 2/4] Fixes compile time configurations with runtimeClasspath --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index b5808f9a..d0698f22 100644 --- a/build.gradle +++ b/build.gradle @@ -106,7 +106,7 @@ publishing { pom.packaging = "jar" pom.withXml { - configurations.compile.resolvedConfiguration.firstLevelModuleDependencies.each { + configurations.runtimeClasspath.resolvedConfiguration.firstLevelModuleDependencies.each { dep -> asNode().dependencies[0].dependency.find { it.artifactId[0].text() == dep.moduleName && From 2501849972ce9de272d310e4fb693333b0ff0e83 Mon Sep 17 00:00:00 2001 From: Ihor Prysiazhnyi Date: Tue, 29 Jul 2025 08:34:55 +0300 Subject: [PATCH 3/4] Removes ci check step --- .github/workflows/ci.yml | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f3146aa3..43b406da 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,18 +65,3 @@ jobs: run: | unzip -j /home/runner/work/*.zip -d app/libs/ ./gradlew test - test_publish_to_maven: - runs-on: ubuntu-latest -# if: ${{ github.ref == 'refs/heads/master' }} - permissions: - contents: read - steps: - - uses: actions/checkout@v4 - - name: Set up JDK 8 - uses: actions/setup-java@v4 - with: - java-version: '8' - distribution: 'zulu' - - - name: Test PublishToMaven - run: ./gradlew publishToMavenLocal From 04ad35084832a2f3af4308b44e9664d7aab69f3c Mon Sep 17 00:00:00 2001 From: Ihor Prysiazhnyi Date: Tue, 29 Jul 2025 08:36:47 +0300 Subject: [PATCH 4/4] Sets new version --- CHANGES.MD | 2 +- README.md | 4 ++-- build.gradle | 2 +- src/main/java/com/siftscience/Constants.java | 2 +- src/test/java/com/siftscience/SiftRequestTest.java | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CHANGES.MD b/CHANGES.MD index 8a19636d..c7ab040c 100644 --- a/CHANGES.MD +++ b/CHANGES.MD @@ -1,4 +1,4 @@ -3.21.0 (2025-07-28) +3.21.1 (2025-07-29) ================= - Bumped version for `gson` from `2.10` to `2.13.1` - Bumped version for `okhttp` from `4.12.0` to `5.1.0` diff --git a/README.md b/README.md index ffbe33b9..0833626b 100644 --- a/README.md +++ b/README.md @@ -13,13 +13,13 @@ Java 1.7 or later. com.siftscience sift-java - 3.21.0 + 3.21.1 ``` ### Gradle ``` dependencies { - compile 'com.siftscience:sift-java:3.21.0' + compile 'com.siftscience:sift-java:3.21.1' } ``` ### Other diff --git a/build.gradle b/build.gradle index d0698f22..31fcef89 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ apply plugin: 'signing' apply plugin: 'java-library-distribution' group = 'com.siftscience' -version = '3.21.0' +version = '3.21.1' repositories { mavenCentral() diff --git a/src/main/java/com/siftscience/Constants.java b/src/main/java/com/siftscience/Constants.java index fc03fa43..cdd75266 100644 --- a/src/main/java/com/siftscience/Constants.java +++ b/src/main/java/com/siftscience/Constants.java @@ -3,6 +3,6 @@ public class Constants { public static final String API_VERSION = "v205"; - public static final String LIB_VERSION = "3.21.0"; + public static final String LIB_VERSION = "3.21.1"; public static final String USER_AGENT_HEADER = String.format("SiftScience/%s sift-java/%s", API_VERSION, LIB_VERSION); } diff --git a/src/test/java/com/siftscience/SiftRequestTest.java b/src/test/java/com/siftscience/SiftRequestTest.java index 376bb903..6b7667fb 100644 --- a/src/test/java/com/siftscience/SiftRequestTest.java +++ b/src/test/java/com/siftscience/SiftRequestTest.java @@ -29,7 +29,7 @@ public void testUserAgentHeader() throws Exception { // then RecordedRequest recordedRequest = server.takeRequest(); - assertEquals("SiftScience/v205 sift-java/3.21.0", + assertEquals("SiftScience/v205 sift-java/3.21.1", recordedRequest.getHeader("User-Agent")); }