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

chore(deps): bump edc from 0.11.0-20241127-SNAPSHOT to 0.11.0-20241213-SNAPSHOT #1713

Merged
Merged
Show file tree
Hide file tree
Changes from 5 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
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ dependencies {
runtimeOnly(libs.edc.transaction.local)
runtimeOnly(libs.edc.sql.pool)
runtimeOnly(libs.edc.core.controlplane)
runtimeOnly(libs.edc.core.sql)
runtimeOnly(libs.postgres)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ dependencies {
runtimeOnly(libs.edc.sql.edrindex)
runtimeOnly(libs.edc.sql.dataplane)
runtimeOnly(libs.postgres)
runtimeOnly(libs.edc.core.sql)
}

tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ dependencies {
implementation(libs.edc.spi.core)
implementation(libs.edc.spi.transaction.datasource)
implementation(libs.edc.spi.transactionspi)
implementation(libs.edc.core.sql)
implementation(libs.edc.lib.sql)
implementation(libs.edc.sql.contract.negotiation)
implementation(libs.edc.spi.controlplane)


testImplementation(libs.edc.transaction.local)
testImplementation(testFixtures(libs.edc.core.sql))
testImplementation(testFixtures(libs.edc.sql.test.fixtures))
testImplementation(testFixtures(libs.edc.junit))
testImplementation(testFixtures(project(":edc-extensions:agreements:retirement-evaluation-core")))
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ dependencies {
implementation(libs.edc.spi.core)
implementation(libs.edc.spi.transaction.datasource)
implementation(libs.edc.spi.transactionspi)
implementation(libs.edc.core.sql)
implementation(libs.edc.lib.sql)


testImplementation(libs.edc.transaction.local)
testImplementation(testFixtures(libs.edc.core.sql))
testImplementation(testFixtures(libs.edc.sql.test.fixtures))
testImplementation(testFixtures(libs.edc.junit))
testImplementation(testFixtures(project(":edc-extensions:bpn-validation:bpn-validation-core")))
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import org.eclipse.edc.spi.system.ServiceExtensionContext;
import org.eclipse.edc.spi.types.TypeManager;
import org.eclipse.edc.sql.QueryExecutor;
import org.eclipse.edc.sql.configuration.DataSourceName;
import org.eclipse.edc.transaction.datasource.spi.DataSourceRegistry;
import org.eclipse.edc.transaction.spi.TransactionContext;
import org.eclipse.tractusx.edc.validation.businesspartner.spi.BusinessPartnerStore;
Expand Down Expand Up @@ -59,7 +58,7 @@ public class SqlBusinessPartnerGroupStoreExtension implements ServiceExtension {

@Provider
public BusinessPartnerStore sqlStore(ServiceExtensionContext context) {
var dataSourceName = DataSourceName.getDataSourceName(DATASOURCE_NAME, DATASOURCE_SETTING_NAME, context.getConfig(), context.getMonitor());
var dataSourceName = context.getConfig().getString(DATASOURCE_NAME, DataSourceRegistry.DEFAULT_DATASOURCE);
return new SqlBusinessPartnerStore(dataSourceRegistry, dataSourceName, transactionContext, typeManager.getMapper(), queryExecutor, getStatements());
}

Expand Down
4 changes: 2 additions & 2 deletions edc-extensions/edr/edr-index-lock-sql/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ plugins {
dependencies {

implementation(libs.edc.lib.util)
implementation(libs.edc.sql.core)
implementation(libs.edc.lib.sql)
implementation(libs.edc.sql.edrindex)
implementation(libs.edc.spi.transactionspi)
implementation(libs.edc.spi.transaction.datasource)
Expand All @@ -37,6 +37,6 @@ dependencies {
implementation(project(":spi:edr-spi"))

testImplementation(testFixtures(project(":spi:edr-spi")))
testImplementation(testFixtures(libs.edc.core.sql))
testImplementation(testFixtures(libs.edc.sql.test.fixtures))
testImplementation(testFixtures(libs.edc.junit))
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
import org.eclipse.edc.spi.system.ServiceExtensionContext;
import org.eclipse.edc.spi.types.TypeManager;
import org.eclipse.edc.sql.QueryExecutor;
import org.eclipse.edc.sql.configuration.DataSourceName;
import org.eclipse.edc.transaction.datasource.spi.DataSourceRegistry;
import org.eclipse.edc.transaction.spi.TransactionContext;
import org.eclipse.tractusx.edc.edr.spi.index.lock.EndpointDataReferenceLock;
Expand Down Expand Up @@ -61,7 +60,7 @@ public class SqlEdrLockExtension implements ServiceExtension {

@Override
public void initialize(ServiceExtensionContext context) {
var dataSourceName = DataSourceName.getDataSourceName(DATASOURCE_NAME, DATASOURCE_SETTING_NAME, context.getConfig(), context.getMonitor());
var dataSourceName = context.getConfig().getString(DATASOURCE_NAME, DataSourceRegistry.DEFAULT_DATASOURCE);

var statements = new PostgresEdrLockStatements();
var sqlStore = new SqlEdrLock(dataSourceRegistry, dataSourceName, transactionContext, typeManager.getMapper(), queryExecutor, statements);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dependencies {
implementation(libs.edc.spi.core)
implementation(libs.edc.spi.transaction.datasource)
implementation(libs.edc.sql.assetindex)
implementation(libs.edc.sql.core)
implementation(libs.edc.lib.sql)
runtimeOnly(libs.postgres)

implementation(libs.flyway.core)
Expand All @@ -37,5 +37,5 @@ dependencies {
runtimeOnly(libs.flyway.database.postgres)

testImplementation(libs.edc.junit)
testImplementation(testFixtures(libs.edc.sql.core))
testImplementation(testFixtures(libs.edc.sql.test.fixtures))
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dependencies {
implementation(libs.edc.spi.core)
implementation(libs.edc.spi.transaction.datasource)
implementation(libs.edc.sql.assetindex)
implementation(libs.edc.sql.core)
implementation(libs.edc.lib.sql)
runtimeOnly(libs.postgres)

implementation(libs.flyway.core)
Expand All @@ -37,5 +37,5 @@ dependencies {
runtimeOnly(libs.flyway.database.postgres)

testImplementation(libs.edc.junit)
testImplementation(testFixtures(libs.edc.sql.core))
testImplementation(testFixtures(libs.edc.sql.test.fixtures))
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
--
-- Copyright (c) 2024 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
--
-- This program and the accompanying materials are made available under the
-- terms of the Apache License, Version 2.0 which is available at
-- https://www.apache.org/licenses/LICENSE-2.0
--
-- SPDX-License-Identifier: Apache-2.0
--
-- Contributors:
-- Bayerische Motoren Werke Aktiengesellschaft (BMW AG) - initial API and implementation
--


ALTER TABLE edc_data_plane
ADD COLUMN runtime_id VARCHAR;
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dependencies {
implementation(libs.edc.spi.core)
implementation(libs.edc.spi.transaction.datasource)
implementation(libs.edc.sql.assetindex)
implementation(libs.edc.sql.core)
implementation(libs.edc.lib.sql)
runtimeOnly(libs.postgres)

implementation(libs.flyway.core)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ private static class MinioContainer extends GenericContainer<MinioContainer> {
private final String accessKeyId = "test-access-key";
private final String secretAccessKey = UUID.randomUUID().toString();

public MinioContainer() {
MinioContainer() {
super("bitnami/minio");
addEnv("MINIO_ROOT_USER", accessKeyId);
addEnv("MINIO_ROOT_PASSWORD", secretAccessKey);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ private static class AzuriteContainer extends GenericContainer<AzuriteContainer>
private static final String IMAGE_NAME = "mcr.microsoft.com/azure-storage/azurite";
private final int containerPort = 10_000;

public AzuriteContainer(int azuriteHostPort, Account... accounts) {
AzuriteContainer(int azuriteHostPort, Account... accounts) {
super(IMAGE_NAME);
addEnv("AZURITE_ACCOUNTS", stream(accounts).map(it -> "%s:%s".formatted(it.name(), it.key())).collect(joining(";")));
setPortBindings(List.of("%d:%d".formatted(azuriteHostPort, containerPort)));
Expand Down
1 change: 1 addition & 0 deletions edc-tests/runtime/mock-connector/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ dependencies {
runtimeOnly(libs.edc.boot)
runtimeOnly(libs.edc.api.management) {
exclude("org.eclipse.edc", "edr-cache-api")
exclude("org.eclipse.edc", "protocol-version-api")
rafaelmag110 marked this conversation as resolved.
Show resolved Hide resolved
}
runtimeOnly(libs.edc.api.management.config)

Expand Down
5 changes: 3 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
format.version = "1.1"

[versions]
edc = "0.11.0-20241127-SNAPSHOT"
edc = "0.11.0-20241213-SNAPSHOT"
assertj = "3.27.2"
awaitility = "4.2.2"
aws = "2.29.43"
Expand Down Expand Up @@ -92,19 +92,20 @@ edc-lib-token = { module = "org.eclipse.edc:token-lib", version.ref = "edc" }
edc-lib-transform = { module = "org.eclipse.edc:transform-lib", version.ref = "edc" }
edc-lib-util = { module = "org.eclipse.edc:util-lib", version.ref = "edc" }
edc-lib-validator = { module = "org.eclipse.edc:validator-lib", version.ref = "edc" }
edc-lib-sql = { module = "org.eclipse.edc:sql-lib", version.ref = "edc" }

# implementations
edc-sql-assetindex = { module = "org.eclipse.edc:asset-index-sql", version.ref = "edc" }
edc-sql-contract-definition = { module = "org.eclipse.edc:contract-definition-store-sql", version.ref = "edc" }
edc-sql-contract-negotiation = { module = "org.eclipse.edc:contract-negotiation-store-sql", version.ref = "edc" }
edc-sql-transferprocess = { module = "org.eclipse.edc:transfer-process-store-sql", version.ref = "edc" }
edc-sql-policydef = { module = "org.eclipse.edc:policy-definition-store-sql", version.ref = "edc" }
edc-sql-core = { module = "org.eclipse.edc:sql-core", version.ref = "edc" }
edc-sql-pool = { module = "org.eclipse.edc:sql-pool-apache-commons", version.ref = "edc" }
edc-sql-policy-monitor = { module = "org.eclipse.edc:policy-monitor-store-sql", version.ref = "edc" }
edc-sql-edrindex = { module = "org.eclipse.edc:edr-index-sql", version.ref = "edc" }
edc-sql-accesstokendata = { module = "org.eclipse.edc:accesstokendata-store-sql", version.ref = "edc" }
edc-sql-dataplane = { module = "org.eclipse.edc:data-plane-store-sql", version.ref = "edc" }
edc-sql-test-fixtures = { module = "org.eclipse.edc:sql-test-fixtures", version.ref = "edc" }

# azure stuff
azure-storage-blob = { module = "com.azure:azure-storage-blob", version.ref = "azure-storage-blob" }
Expand Down
Loading