Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump versions to 3.0 #55

Merged
merged 1 commit into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CedarJava/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if [ "$#" -ne 0 ] && [ "$1" == "run_int_tests" ]; then

export MUST_RUN_CEDAR_INTEGRATION_TESTS=1

cargo_str='cedar-policy = { version = "2.3", path = "../cedar/cedar-policy" }'
cargo_str='cedar-policy = { version = "3.0", path = "../cedar/cedar-policy" }'
sed "12s;.*;$cargo_str;" "../CedarJavaFFI/Cargo.toml" > new_Cargo.toml
mv new_Cargo.toml ../CedarJavaFFI/Cargo.toml
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@ public interface AuthorizationEngine {
* @return The Cedar language major version supported
*/
static String getCedarLangVersion() {
return "2.3";
return "3.0";
}
}
4 changes: 2 additions & 2 deletions CedarJavaFFI/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ name = "cedar-java-ffi"
edition = "2021"


version = "2.0.0"
version = "3.0.0"

[dependencies]
serde = { version = "1.0", features = ["derive", "rc"] }
serde_json = "1.0"
cedar-policy = { version = "2.3", path = "../cedar/cedar-policy" } # Need latest version from github
cedar-policy = { version = "3.0", path = "../cedar/cedar-policy" } # Need latest version from github

# JNI Support
jni = "0.20.0"
Expand Down
2 changes: 1 addition & 1 deletion CedarJavaFFI/src/interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ pub fn callCedarJNI(
/// The main JNI entry point
#[jni_fn("com.cedarpolicy.BasicAuthorizationEngine")]
pub fn getCedarJNIVersion(env: JNIEnv<'_>) -> jstring {
env.new_string("2.3")
env.new_string("3.0")
.expect("error creating Java string")
.into_raw()
}
Expand Down