From abbcf6df6f1fc7dd0ed263ebcc256a36124dd829 Mon Sep 17 00:00:00 2001 From: ndr_brt Date: Wed, 4 Dec 2024 12:08:35 +0100 Subject: [PATCH 1/2] build: fix compilation --- core/presentation-api/build.gradle.kts | 4 +-- e2e-tests/api-tests/build.gradle.kts | 4 +-- .../IdentityHubEndToEndExtension.java | 5 +-- .../api-configuration/build.gradle.kts | 2 +- .../api/identity-api/did-api/build.gradle.kts | 2 +- .../participant-context-api/build.gradle.kts | 2 +- .../build.gradle.kts | 2 +- .../build.gradle.kts | 2 +- .../build.gradle.kts | 6 ++-- .../build.gradle.kts | 4 +-- .../build.gradle.kts | 4 +-- .../build.gradle.kts | 4 +-- gradle/libs.versions.toml | 31 +++++++------------ 13 files changed, 31 insertions(+), 41 deletions(-) diff --git a/core/presentation-api/build.gradle.kts b/core/presentation-api/build.gradle.kts index 5de650fb6..0c4423757 100644 --- a/core/presentation-api/build.gradle.kts +++ b/core/presentation-api/build.gradle.kts @@ -27,7 +27,7 @@ dependencies { implementation(libs.edc.spi.validator) implementation(libs.edc.spi.web) implementation(libs.edc.spi.dcp) - implementation(libs.edc.core.jerseyproviders) + implementation(libs.edc.lib.jerseyproviders) implementation(libs.edc.lib.transform) implementation(libs.edc.dcp.transform) implementation(libs.jakarta.rsApi) @@ -42,4 +42,4 @@ edcBuild { swagger { apiGroup.set("presentation-api") } -} \ No newline at end of file +} diff --git a/e2e-tests/api-tests/build.gradle.kts b/e2e-tests/api-tests/build.gradle.kts index f49a13837..40375dcba 100644 --- a/e2e-tests/api-tests/build.gradle.kts +++ b/e2e-tests/api-tests/build.gradle.kts @@ -17,7 +17,7 @@ dependencies { testImplementation(project(":core:lib:credential-query-lib")) testImplementation(testFixtures(project(":spi:verifiable-credential-spi"))) testImplementation(testFixtures(libs.edc.testfixtures.managementapi)) - testImplementation(testFixtures(libs.edc.core.sql)) + testImplementation(testFixtures(libs.edc.sql.test.fixtures)) testImplementation(libs.edc.transaction.local) testImplementation(libs.edc.sql.pool) testImplementation(libs.nimbus.jwt) @@ -27,4 +27,4 @@ dependencies { edcBuild { publish.set(false) -} \ No newline at end of file +} diff --git a/e2e-tests/api-tests/src/test/java/org/eclipse/edc/identityhub/tests/fixtures/IdentityHubEndToEndExtension.java b/e2e-tests/api-tests/src/test/java/org/eclipse/edc/identityhub/tests/fixtures/IdentityHubEndToEndExtension.java index 63dbdda6c..23152a4ca 100644 --- a/e2e-tests/api-tests/src/test/java/org/eclipse/edc/identityhub/tests/fixtures/IdentityHubEndToEndExtension.java +++ b/e2e-tests/api-tests/src/test/java/org/eclipse/edc/identityhub/tests/fixtures/IdentityHubEndToEndExtension.java @@ -113,10 +113,7 @@ public static IdentityHubEndToEndTestContext context(String dbName, Integer port "control-plane", cfg, ":launcher:identityhub", - ":extensions:store:sql:identity-hub-credentials-store-sql", - ":extensions:store:sql:identity-hub-did-store-sql", - ":extensions:store:sql:identity-hub-keypair-store-sql", - ":extensions:store:sql:identity-hub-participantcontext-store-sql" + ":dist:bom:identityhub-feature-sql-bom" ); diff --git a/extensions/api/identity-api/api-configuration/build.gradle.kts b/extensions/api/identity-api/api-configuration/build.gradle.kts index b73c1fc7a..d502d3408 100644 --- a/extensions/api/identity-api/api-configuration/build.gradle.kts +++ b/extensions/api/identity-api/api-configuration/build.gradle.kts @@ -23,7 +23,7 @@ dependencies { api(project(":spi:did-spi")) // api(project(":extensions:api:identityhub-api-auth")) implementation(libs.edc.spi.web) - implementation(libs.edc.core.jerseyproviders) + implementation(libs.edc.lib.jerseyproviders) implementation(libs.jakarta.rsApi) testImplementation(libs.edc.junit) diff --git a/extensions/api/identity-api/did-api/build.gradle.kts b/extensions/api/identity-api/did-api/build.gradle.kts index 07bda1ac8..a08f751cb 100644 --- a/extensions/api/identity-api/did-api/build.gradle.kts +++ b/extensions/api/identity-api/did-api/build.gradle.kts @@ -26,7 +26,7 @@ dependencies { implementation(project(":extensions:api:identity-api:validators")) implementation(libs.edc.spi.validator) implementation(libs.edc.spi.web) - implementation(libs.edc.core.jerseyproviders) + implementation(libs.edc.lib.jerseyproviders) implementation(libs.jakarta.rsApi) implementation(libs.jakarta.annotation) diff --git a/extensions/api/identity-api/participant-context-api/build.gradle.kts b/extensions/api/identity-api/participant-context-api/build.gradle.kts index ab799f296..0acf98019 100644 --- a/extensions/api/identity-api/participant-context-api/build.gradle.kts +++ b/extensions/api/identity-api/participant-context-api/build.gradle.kts @@ -27,7 +27,7 @@ dependencies { implementation(libs.edc.spi.validator) implementation(libs.edc.spi.web) implementation(libs.edc.lib.util) - implementation(libs.edc.core.jerseyproviders) + implementation(libs.edc.lib.jerseyproviders) implementation(libs.jakarta.rsApi) implementation(libs.jakarta.annotation) diff --git a/extensions/api/identityhub-api-authentication/build.gradle.kts b/extensions/api/identityhub-api-authentication/build.gradle.kts index f6ebf6c89..ce7d89bb3 100644 --- a/extensions/api/identityhub-api-authentication/build.gradle.kts +++ b/extensions/api/identityhub-api-authentication/build.gradle.kts @@ -23,7 +23,7 @@ dependencies { api(project(":spi:did-spi")) implementation(libs.edc.spi.web) - implementation(libs.edc.core.jerseyproviders) + implementation(libs.edc.lib.jerseyproviders) implementation(libs.jakarta.rsApi) implementation(libs.jakarta.annotation) diff --git a/extensions/api/identityhub-api-authorization/build.gradle.kts b/extensions/api/identityhub-api-authorization/build.gradle.kts index f5d60568d..e7317a659 100644 --- a/extensions/api/identityhub-api-authorization/build.gradle.kts +++ b/extensions/api/identityhub-api-authorization/build.gradle.kts @@ -23,7 +23,7 @@ dependencies { api(project(":spi:did-spi")) implementation(libs.edc.spi.web) - implementation(libs.edc.core.jerseyproviders) + implementation(libs.edc.lib.jerseyproviders) implementation(libs.jakarta.rsApi) testImplementation(libs.edc.junit) diff --git a/extensions/store/sql/identity-hub-credentials-store-sql/build.gradle.kts b/extensions/store/sql/identity-hub-credentials-store-sql/build.gradle.kts index 2925663b3..3aa200b3a 100644 --- a/extensions/store/sql/identity-hub-credentials-store-sql/build.gradle.kts +++ b/extensions/store/sql/identity-hub-credentials-store-sql/build.gradle.kts @@ -18,12 +18,12 @@ plugins { dependencies { api(project(":spi:identity-hub-store-spi")) - implementation(libs.edc.core.sql) // for the SqlStatements + implementation(libs.edc.lib.sql) + implementation(libs.edc.lib.util) implementation(libs.edc.sql.bootstrapper) // for the schema bootstrapper implementation(libs.edc.spi.transaction.datasource) - implementation(libs.edc.lib.util) testImplementation(testFixtures(project(":spi:identity-hub-store-spi"))) - testImplementation(testFixtures(libs.edc.core.sql)) + testImplementation(testFixtures(libs.edc.sql.test.fixtures)) testImplementation(libs.edc.junit) } diff --git a/extensions/store/sql/identity-hub-did-store-sql/build.gradle.kts b/extensions/store/sql/identity-hub-did-store-sql/build.gradle.kts index 6fa6944f8..1a32f7317 100644 --- a/extensions/store/sql/identity-hub-did-store-sql/build.gradle.kts +++ b/extensions/store/sql/identity-hub-did-store-sql/build.gradle.kts @@ -18,11 +18,11 @@ plugins { dependencies { api(project(":spi:did-spi")) - implementation(libs.edc.core.sql) // for the SqlStatements + implementation(libs.edc.lib.sql) implementation(libs.edc.sql.bootstrapper) implementation(libs.edc.spi.transaction.datasource) testImplementation(testFixtures(project(":spi:did-spi"))) - testImplementation(testFixtures(libs.edc.core.sql)) + testImplementation(testFixtures(libs.edc.sql.test.fixtures)) testImplementation(libs.edc.junit) } diff --git a/extensions/store/sql/identity-hub-keypair-store-sql/build.gradle.kts b/extensions/store/sql/identity-hub-keypair-store-sql/build.gradle.kts index 533397373..a3ecac430 100644 --- a/extensions/store/sql/identity-hub-keypair-store-sql/build.gradle.kts +++ b/extensions/store/sql/identity-hub-keypair-store-sql/build.gradle.kts @@ -18,11 +18,11 @@ plugins { dependencies { api(project(":spi:identity-hub-store-spi")) - implementation(libs.edc.core.sql) // for the SqlStatements + implementation(libs.edc.lib.sql) implementation(libs.edc.sql.bootstrapper) implementation(libs.edc.spi.transaction.datasource) testImplementation(testFixtures(project(":spi:identity-hub-store-spi"))) - testImplementation(testFixtures(libs.edc.core.sql)) + testImplementation(testFixtures(libs.edc.sql.test.fixtures)) testImplementation(libs.edc.junit) } diff --git a/extensions/store/sql/identity-hub-participantcontext-store-sql/build.gradle.kts b/extensions/store/sql/identity-hub-participantcontext-store-sql/build.gradle.kts index 533397373..a3ecac430 100644 --- a/extensions/store/sql/identity-hub-participantcontext-store-sql/build.gradle.kts +++ b/extensions/store/sql/identity-hub-participantcontext-store-sql/build.gradle.kts @@ -18,11 +18,11 @@ plugins { dependencies { api(project(":spi:identity-hub-store-spi")) - implementation(libs.edc.core.sql) // for the SqlStatements + implementation(libs.edc.lib.sql) implementation(libs.edc.sql.bootstrapper) implementation(libs.edc.spi.transaction.datasource) testImplementation(testFixtures(project(":spi:identity-hub-store-spi"))) - testImplementation(testFixtures(libs.edc.core.sql)) + testImplementation(testFixtures(libs.edc.sql.test.fixtures)) testImplementation(libs.edc.junit) } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index e7a9b228f..4003584fd 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -5,7 +5,6 @@ format.version = "1.1" assertj = "3.26.3" awaitility = "4.2.2" edc = "0.11.0-SNAPSHOT" -failsafe = "3.3.2" jackson = "2.18.1" jakarta-annotation = "2.1.1" jersey = "3.1.9" @@ -28,7 +27,6 @@ edc-spi-core = { module = "org.eclipse.edc:core-spi", version.ref = "edc" } edc-spi-jwt = { module = "org.eclipse.edc:jwt-spi", version.ref = "edc" } edc-spi-jwt-signer = { module = "org.eclipse.edc:jwt-signer-spi", version.ref = "edc" } edc-spi-http = { module = "org.eclipse.edc:http-spi", version.ref = "edc" } -edc-spi-policy-engine = { module = "org.eclipse.edc:policy-engine-spi", version.ref = "edc" } edc-spi-transaction = { module = "org.eclipse.edc:transaction-spi", version.ref = "edc" } edc-spi-transform = { module = "org.eclipse.edc:transform-spi", version.ref = "edc" } edc-spi-transaction-datasource = { module = "org.eclipse.edc:transaction-datasource-spi", version.ref = "edc" } @@ -40,14 +38,10 @@ edc-spi-token = { module = "org.eclipse.edc:token-spi", version.ref = "edc" } edc-spi-dcp = { module = "org.eclipse.edc:identity-trust-spi", version.ref = "edc" } edc-spi-vc = { module = "org.eclipse.edc:verifiable-credentials-spi", version.ref = "edc" } edc-core-connector = { module = "org.eclipse.edc:connector-core", version.ref = "edc" } -edc-core-sql = { module = "org.eclipse.edc:sql-core", version.ref = "edc" } edc-core-token = { module = "org.eclipse.edc:token-core", version.ref = "edc" } edc-core-jersey = { module = "org.eclipse.edc:jersey-core", version.ref = "edc" } -edc-core-junit = { module = "org.eclipse.edc:junit", version.ref = "edc" } edc-identity-did-core = { module = "org.eclipse.edc:identity-did-core", version.ref = "edc" } edc-identity-did-web = { module = "org.eclipse.edc:identity-did-web", version.ref = "edc" } -edc-dcp-service = { module = "org.eclipse.edc:identity-trust-service", version.ref = "edc" } -edc-dcp-core = { module = "org.eclipse.edc:identity-trust-core", version.ref = "edc" } edc-dcp-transform = { module = "org.eclipse.edc:identity-trust-transform", version.ref = "edc" } edc-verifiablecredentials = { module = "org.eclipse.edc:verifiable-credentials", version.ref = "edc" } edc-vc-jwt = { module = "org.eclipse.edc:jwt-verifiable-credentials", version.ref = "edc" } @@ -61,27 +55,28 @@ edc-api-version = { module = "org.eclipse.edc:version-api", version.ref = "edc" # EDC libs -edc-lib-keys = { "module" = "org.eclipse.edc:keys-lib", version.ref = "edc" } -edc-lib-query = { "module" = "org.eclipse.edc:query-lib", version.ref = "edc" } +edc-lib-common-crypto = { module = "org.eclipse.edc:crypto-common-lib", version.ref = "edc" } +edc-lib-http = { "module" = "org.eclipse.edc:http-lib", version.ref = "edc" } +edc-lib-jerseyproviders = { module = "org.eclipse.edc:jersey-providers-lib", version.ref = "edc" } +edc-lib-json = { module = "org.eclipse.edc:json-lib", version.ref = "edc" } edc-lib-jsonld = { "module" = "org.eclipse.edc:json-ld-lib", version.ref = "edc" } edc-lib-jws2020 = { module = "org.eclipse.edc:jws2020-lib", version.ref = "edc" } +edc-lib-keys = { "module" = "org.eclipse.edc:keys-lib", version.ref = "edc" } +edc-lib-query = { "module" = "org.eclipse.edc:query-lib", version.ref = "edc" } +edc-lib-sql = { "module" = "org.eclipse.edc:sql-lib", version.ref = "edc" } edc-lib-store = { "module" = "org.eclipse.edc:store-lib", version.ref = "edc" } -edc-lib-http = { "module" = "org.eclipse.edc:http-lib", version.ref = "edc" } +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-json = { module = "org.eclipse.edc:json-lib", version.ref = "edc" } -edc-lib-common-crypto = { module = "org.eclipse.edc:crypto-common-lib", version.ref = "edc" } -edc-lib-token = { module = "org.eclipse.edc:token-lib", version.ref = "edc" } -edc-core-jerseyproviders = { module = "org.eclipse.edc:jersey-providers-lib", version.ref = "edc" } # SQL dependencies -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-bootstrapper = { module = "org.eclipse.edc:sql-bootstrapper", version.ref = "edc" } -edc-sql-transactionlocal = { module = "org.eclipse.edc:transaction-local", version.ref = "edc" } +edc-sql-core = { module = "org.eclipse.edc:sql-core", version.ref = "edc" } edc-sql-ih-stsstore-sql = { module = "org.eclipse.edc:sts-client-store-sql", version.ref = "edc" } edc-sql-jtivdalidation = { module = "org.eclipse.edc:jti-validation-store-sql", version.ref = "edc" } - +edc-sql-pool = { module = "org.eclipse.edc:sql-pool-apache-commons", version.ref = "edc" } +edc-sql-test-fixtures = { module = "org.eclipse.edc:sql-test-fixtures", version.ref = "edc" } +edc-sql-transactionlocal = { module = "org.eclipse.edc:transaction-local", version.ref = "edc" } # EDC STS dependencies edc-sts-spi = { module = "org.eclipse.edc:identity-trust-sts-spi", version.ref = "edc" } @@ -93,11 +88,9 @@ edc-sts-api-accounts = { module = "org.eclipse.edc:identity-trust-sts-accounts-a # Third party libs assertj = { module = "org.assertj:assertj-core", version.ref = "assertj" } awaitility = { module = "org.awaitility:awaitility", version.ref = "awaitility" } -failsafe-core = { module = "dev.failsafe:failsafe", version.ref = "failsafe" } jackson-databind = { module = "com.fasterxml.jackson.core:jackson-databind", version.ref = "jackson" } jakarta-rsApi = { module = "jakarta.ws.rs:jakarta.ws.rs-api", version.ref = "rsApi" } junit-jupiter-api = { module = "org.junit.jupiter:junit-jupiter-api", version.ref = "jupiter" } -mockserver-client = { module = "org.mock-server:mockserver-client-java", version.ref = "mockserver" } mockserver-netty = { module = "org.mock-server:mockserver-netty", version.ref = "mockserver" } nimbus-jwt = { module = "com.nimbusds:nimbus-jose-jwt", version.ref = "nimbus" } postgres = { module = "org.postgresql:postgresql", version.ref = "postgres" } From d28102d92a36cd02f17a0720a321c2ef7e7a45a7 Mon Sep 17 00:00:00 2001 From: ndr_brt Date: Wed, 4 Dec 2024 12:26:58 +0100 Subject: [PATCH 2/2] avoid tests to depend on launcher --- e2e-tests/api-tests/build.gradle.kts | 1 - .../tests/fixtures/IdentityHubEndToEndExtension.java | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/e2e-tests/api-tests/build.gradle.kts b/e2e-tests/api-tests/build.gradle.kts index 40375dcba..53afa76fd 100644 --- a/e2e-tests/api-tests/build.gradle.kts +++ b/e2e-tests/api-tests/build.gradle.kts @@ -19,7 +19,6 @@ dependencies { testImplementation(testFixtures(libs.edc.testfixtures.managementapi)) testImplementation(testFixtures(libs.edc.sql.test.fixtures)) testImplementation(libs.edc.transaction.local) - testImplementation(libs.edc.sql.pool) testImplementation(libs.nimbus.jwt) testImplementation(libs.jakarta.rsApi) testImplementation(libs.edc.sts.spi) diff --git a/e2e-tests/api-tests/src/test/java/org/eclipse/edc/identityhub/tests/fixtures/IdentityHubEndToEndExtension.java b/e2e-tests/api-tests/src/test/java/org/eclipse/edc/identityhub/tests/fixtures/IdentityHubEndToEndExtension.java index 23152a4ca..dba42c332 100644 --- a/e2e-tests/api-tests/src/test/java/org/eclipse/edc/identityhub/tests/fixtures/IdentityHubEndToEndExtension.java +++ b/e2e-tests/api-tests/src/test/java/org/eclipse/edc/identityhub/tests/fixtures/IdentityHubEndToEndExtension.java @@ -76,7 +76,7 @@ public static IdentityHubEndToEndTestContext context() { var runtime = new EmbeddedRuntime( "identity-hub", configuration.config(), - ":launcher:identityhub" + ":dist:bom:identityhub-with-sts-bom" ); return new IdentityHubEndToEndTestContext(runtime, configuration); @@ -112,7 +112,7 @@ public static IdentityHubEndToEndTestContext context(String dbName, Integer port var runtime = new EmbeddedRuntime( "control-plane", cfg, - ":launcher:identityhub", + ":dist:bom:identityhub-with-sts-bom", ":dist:bom:identityhub-feature-sql-bom" );