Skip to content

Commit

Permalink
feat: add FC Cache Postgres modules (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
paullatzelsperger authored Jul 15, 2024
1 parent 098417f commit 5825c11
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions deployment/assets/postgres/edc_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -242,3 +242,10 @@ CREATE TABLE IF NOT EXISTS edc_edr_entry
contract_negotiation_id VARCHAR,
created_at BIGINT NOT NULL
);

CREATE TABLE IF NOT EXISTS edc_federated_catalog
(
id VARCHAR PRIMARY KEY NOT NULL,
catalog JSON,
marked BOOLEAN DEFAULT FALSE
);
5 changes: 4 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ format.version = "1.1"
[versions]
assertj = "3.24.2"
awaitility = "4.2.0"
edc = "0.8.0"
edc = "0.8.1-SNAPSHOT"
failsafe = "3.3.2"
jackson = "2.14.2"
jupiter = "5.10.1"
Expand Down Expand Up @@ -129,6 +129,7 @@ edc-oauth2-client = { module = "org.eclipse.edc:oauth2-client", version.ref = "e
edc-fc-spi-crawler = { module = "org.eclipse.edc:crawler-spi", version.ref = "edc" }
edc-fc-core = { module = "org.eclipse.edc:federated-catalog-core", version.ref = "edc" }
edc-fc-api = { module = "org.eclipse.edc:federated-catalog-api", version.ref = "edc" }
edc-fc-cache-sql = { module = "org.eclipse.edc:federated-catalog-cache-sql", version.ref = "edc" }

# specific dependencies needed by the catalog server
edc-controlplane-catalog = { module = "org.eclipse.edc:control-plane-catalog", version.ref = "edc" }
Expand Down Expand Up @@ -162,5 +163,7 @@ sql-edc = ["edc-sql-assetindex", "edc-sql-contractdef", "edc-sql-contractneg", "

sql-ih = ["edc-sql-ih-credstore-sql", "edc-sql-ih-didstore-sql", "edc-sql-ih-keypairstore-sql", "edc-sql-ih-pcstore-sql", "edc-sql-core", "edc-sql-pool", "edc-sql-transactionlocal", "postgres"]

sql-fc = ["edc-fc-cache-sql"]

[plugins]
shadow = { id = "com.github.johnrengelman.shadow", version = "8.1.1" }
1 change: 1 addition & 0 deletions launchers/controlplane/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ dependencies {
if (project.properties.getOrDefault("persistence", "false") == "true") {
runtimeOnly(libs.edc.vault.hashicorp)
runtimeOnly(libs.bundles.sql.edc)
runtimeOnly(libs.bundles.sql.fc)
println("This runtime compiles with Hashicorp Vault and PostgreSQL. You will need properly configured Postgres and HCV instances.")
}
runtimeOnly(libs.bundles.dpf)
Expand Down

0 comments on commit 5825c11

Please sign in to comment.