Skip to content

Commit

Permalink
Use the release branch of Cedar (#209)
Browse files Browse the repository at this point in the history
Signed-off-by: Shaobo He <shaobohe@amazon.com>
  • Loading branch information
shaobo-he-aws committed Sep 17, 2024
1 parent e2090eb commit 9f471a1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions CedarJava/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down
4 changes: 2 additions & 2 deletions CedarJavaFFI/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 9f471a1

Please sign in to comment.