diff --git a/CedarJava/build.gradle b/CedarJava/build.gradle index 46d1b0f..045c0d7 100644 --- a/CedarJava/build.gradle +++ b/CedarJava/build.gradle @@ -187,7 +187,7 @@ tasks.register('downloadIntegrationTests', Download) { group 'Build' description 'Downloads Cedar repository with integration tests.' - src 'https://codeload.github.com/cedar-policy/cedar-integration-tests/zip/main' + src 'https://codeload.github.com/cedar-policy/cedar-integration-tests/zip/release%2F4.0.x' dest layout.buildDirectory.file('cedar-integration-tests-main.zip') overwrite false } @@ -208,8 +208,8 @@ tasks.register('extractCorpusTests', Copy) { dependsOn('extractIntegrationTests') dependsOn('processTestResources') - from tarTree(layout.buildDirectory.file('resources/test/cedar-integration-tests-main/corpus-tests.tar.gz')) - into layout.buildDirectory.dir('resources/test/cedar-integration-tests-main') + from tarTree(layout.buildDirectory.file('resources/test/cedar-integration-tests-release-4.0.x/corpus-tests.tar.gz')) + into layout.buildDirectory.dir('resources/test/cedar-integration-tests-release-4.0.x') } tasks.named('test') { diff --git a/CedarJava/src/test/java/com/cedarpolicy/SharedIntegrationTests.java b/CedarJava/src/test/java/com/cedarpolicy/SharedIntegrationTests.java index 631dbff..25e26e8 100644 --- a/CedarJava/src/test/java/com/cedarpolicy/SharedIntegrationTests.java +++ b/CedarJava/src/test/java/com/cedarpolicy/SharedIntegrationTests.java @@ -79,7 +79,7 @@ private Path resolveIntegrationTestPath(String path) { if (resolved.isAbsolute()) { return resolved; } else { - final URL integrationTestsLocation = getClass().getResource("/cedar-integration-tests-main"); + final URL integrationTestsLocation = getClass().getResource("/cedar-integration-tests-release-4.0.x"); return integrationTestsLocation == null ? resolved : Paths.get(integrationTestsLocation.getPath(), path); } } diff --git a/CedarJavaFFI/Cargo.toml b/CedarJavaFFI/Cargo.toml index ed21ccd..5dda95b 100644 --- a/CedarJavaFFI/Cargo.toml +++ b/CedarJavaFFI/Cargo.toml @@ -31,9 +31,9 @@ crate_type = ["cdylib"] [dependencies.cedar-policy] version = "4.0.0" git = "https://github.com/cedar-policy/cedar" -branch = "main" +branch = "release/4.0.x" [dependencies.cedar-policy-formatter] version = "4.0.0" git = "https://github.com/cedar-policy/cedar" -branch = "main" +branch = "release/4.0.x"