From 24251f6ff35ee0aeed10f7f7c3aa6d2389bebaec Mon Sep 17 00:00:00 2001 From: Mudit Chaudhary Date: Fri, 5 Dec 2025 09:49:25 -0500 Subject: [PATCH] updates publishing URL and README Signed-off-by: Mudit Chaudhary --- CedarJava/DIFFERENCES_FROM_RUST.md | 5 ----- CedarJava/README.md | 22 ++++++++++++++++++++-- CedarJava/build.gradle | 2 +- 3 files changed, 21 insertions(+), 8 deletions(-) delete mode 100644 CedarJava/DIFFERENCES_FROM_RUST.md diff --git a/CedarJava/DIFFERENCES_FROM_RUST.md b/CedarJava/DIFFERENCES_FROM_RUST.md deleted file mode 100644 index b9fc3d5a..00000000 --- a/CedarJava/DIFFERENCES_FROM_RUST.md +++ /dev/null @@ -1,5 +0,0 @@ -# Differences from Rust -CedarJava typically lags behind the latest Rust features. Notably, it is currently missing: - -- Partial Evaluation -- Annotations \ No newline at end of file diff --git a/CedarJava/README.md b/CedarJava/README.md index 578ef20f..9a649287 100644 --- a/CedarJava/README.md +++ b/CedarJava/README.md @@ -31,8 +31,26 @@ syntax: Debugging calls across the JNI boundary is a bit tricky (as ever a bit more so on a Mac), but can be done by attaching both a Java and native debugger (such as GDB/LLDB) to the program. -## Unsupported Features -You can see a list of features not yet supported in CedarJava at [Differences from Rust](DIFFERENCES_FROM_RUST.md). +## Windows Support + +Windows is not officially supported, but you can build CedarJava manually for Windows targets using the following workaround: + +1. Clone the repository: + ```bash + git clone https://github.com/cedar-policy/cedar-java + cd cedar-java/CedarJavaFFI + ``` + +2. Build the native library for your target ABI: + ```bash + # For GNU ABI (MinGW) + cargo build --features partial-eval --release --target x86_64-pc-windows-gnu + + # For MSVC ABI (Visual Studio) + cargo build --features partial-eval --release --target x86_64-pc-windows-msvc + ``` + +3. Set the `CEDAR_JAVA_FFI_LIB` environment variable to point to the generated DLL. ## Security diff --git a/CedarJava/build.gradle b/CedarJava/build.gradle index 3b99251e..7d6e41a3 100644 --- a/CedarJava/build.gradle +++ b/CedarJava/build.gradle @@ -322,7 +322,7 @@ publishing { } repositories { maven { - url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/" + url = "https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/" // To publish, uncomment these lines and ensure you have them set in `gradle.properties` // credentials { // username ossrhUsername