From 9a6547248a481777c1381482918f341490f41e9f Mon Sep 17 00:00:00 2001 From: Mudit Chaudhary Date: Tue, 12 May 2026 09:51:15 -0400 Subject: [PATCH] Create CedarJava 4.10 release Signed-off-by: Mudit Chaudhary --- .github/workflows/ci.yml | 2 +- CedarJava/CHANGELOG.md | 14 +++++++++++++- CedarJava/build.gradle | 6 +++--- CedarJavaFFI/Cargo.toml | 10 +++++----- 4 files changed, 22 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 34a6a7af..80036cd8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,5 +24,5 @@ jobs: needs: get-branch-name uses: ./.github/workflows/run_cedar_java_reusable.yml with: - cedar_policy_ref: "refs/heads/main" # use the latest commit on main + cedar_policy_ref: ${{ needs.get-branch-name.outputs.branch_name }} # use the same branch of cedar-policy cedar_java_ref: "${{ github.href }}" # use the current PR's commit diff --git a/CedarJava/CHANGELOG.md b/CedarJava/CHANGELOG.md index 283fbd26..060a6743 100644 --- a/CedarJava/CHANGELOG.md +++ b/CedarJava/CHANGELOG.md @@ -1,6 +1,18 @@ # Changelog -## Unreleased +## 4.10.0 +* Pinned to `cedar-policy 4.10.0` + +## 4.9.0 +* Pinned to `cedar-policy 4.9.1` +* Improve toCedarExpr() correctness and add CedarStrings utility [#351](https://github.com/cedar-policy/cedar-java/pull/351) +* Add PolicySet and Schema caching [#350](https://github.com/cedar-policy/cedar-java/pull/350) +* Optimize JNI performance and fix Decimal validation [#349](https://github.com/cedar-policy/cedar-java/pull/349) +* * Updated Java source and target compatibility from 1.8 to 17 aligning with the pre-requisites in README [#350](https://github.com/cedar-policy/cedar-java/pull/350) +* Bugfix: EntityIdentifier equals implementation [#352](https://github.com/cedar-policy/cedar-java/pull/352) + +## 4.8.0 +* Pinned to `cedar-policy 4.8.2` * Added Schema conversion APIs [#325](https://github.com/cedar-policy/cedar-java/pull/325) * Added Level Validation [#327](https://github.com/cedar-policy/cedar-java/pull/327) * Added DateTime extension support [#328](https://github.com/cedar-policy/cedar-java/pull/328) diff --git a/CedarJava/build.gradle b/CedarJava/build.gradle index ef800df1..9d703ba9 100644 --- a/CedarJava/build.gradle +++ b/CedarJava/build.gradle @@ -152,7 +152,7 @@ def ZigVersion = '0.11' tasks.register('validateZigVersion') { group = 'Build' description = 'Validates that the correct zig version is installed' - + doLast { def output = new ByteArrayOutputStream() exec { @@ -162,7 +162,7 @@ tasks.register('validateZigVersion') { def version = output.toString().trim() println "Detected Zig version: ${version}" if (!version.startsWith(ZigVersion)) { - throw new GradleException("Zig version must be ${ZigVersion} but found: ${version}") + throw new GradleException("Zig version must be ${ZigVersion} but found: ${version}") } println "Zig version validation successful" } @@ -324,7 +324,7 @@ publishing { from components.java groupId = 'com.cedarpolicy' artifactId = 'cedar-java' - version = '3.1.2' + version = '4.10.0' artifacts { jar diff --git a/CedarJavaFFI/Cargo.toml b/CedarJavaFFI/Cargo.toml index 570c070c..db2b0efa 100644 --- a/CedarJavaFFI/Cargo.toml +++ b/CedarJavaFFI/Cargo.toml @@ -6,7 +6,7 @@ description = "Java FFI for Cedar (from the cedar-policy crate)." edition = "2021" -version = "4.0.0" +version = "4.10.0" [dependencies] serde = { version = "1.0", features = ["derive", "rc"] } @@ -32,11 +32,11 @@ jni = { version = "0.21.1", features = ["invocation"] } crate_type = ["cdylib"] [dependencies.cedar-policy] -version = "4.0.0" +version = "4.10.0" git = "https://github.com/cedar-policy/cedar" -branch = "main" +branch = "release/4.10.x" [dependencies.cedar-policy-formatter] -version = "4.0.0" +version = "4.10.0" git = "https://github.com/cedar-policy/cedar" -branch = "main" +branch = "release/4.10.x"