From 263a551177cfedc5874339c76f00356d1c4ea77f Mon Sep 17 00:00:00 2001 From: Artur Ciocanu Date: Thu, 5 Sep 2024 17:08:28 +0300 Subject: [PATCH 1/2] Adding Maven Profiles Signed-off-by: Artur Ciocanu --- .github/workflows/build.yml | 2 +- pom.xml | 40 +++++++++++++++++++++++-------------- sdk-tests/pom.xml | 18 +++++++---------- 3 files changed, 33 insertions(+), 27 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ac3d084ee..070f163dc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -119,7 +119,7 @@ jobs: run: ./mvnw install -q -B -DskipTests - name: Integration tests using spring boot version ${{ matrix.spring-boot-version }} id: integration_tests - run: PRODUCT_SPRING_BOOT_VERSION=${{ matrix.spring-boot-version }} ./mvnw -B -f sdk-tests/pom.xml verify + run: PRODUCT_SPRING_BOOT_VERSION=${{ matrix.spring-boot-version }} ./mvnw -B -Pintegration-tests verify - name: Upload test report for sdk uses: actions/upload-artifact@v4 with: diff --git a/pom.xml b/pom.xml index 946c5f2e4..b89963125 100644 --- a/pom.xml +++ b/pom.xml @@ -318,20 +318,30 @@ HEAD - - sdk-autogen - sdk - sdk-actors - sdk-workflows - sdk-springboot - dapr-spring - examples - - testcontainers-dapr - - + + + default + + true + + + sdk-autogen + sdk + sdk-actors + sdk-workflows + sdk-springboot + dapr-spring + examples + + testcontainers-dapr + + + + integration-tests + + sdk-tests + + + diff --git a/sdk-tests/pom.xml b/sdk-tests/pom.xml index 7c4997024..ce60ce241 100644 --- a/sdk-tests/pom.xml +++ b/sdk-tests/pom.xml @@ -4,9 +4,14 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 4.0.0 - io.dapr + + io.dapr + dapr-sdk-parent + 1.13.0-SNAPSHOT + + dapr-sdk-tests - 0.0.0-SNAPSHOT + 1.13.0-SNAPSHOT dapr-sdk-tests Tests for Dapr's Java SDK - not to be published as a jar. @@ -320,15 +325,6 @@ ${env.PRODUCT_SPRING_BOOT_VERSION} - - - - com.squareup.okhttp3 - okhttp - 4.9.0 - test - - From b382505ccfc95e50ccd04cd726451c552606e78f Mon Sep 17 00:00:00 2001 From: Artur Ciocanu Date: Fri, 6 Sep 2024 10:18:01 +0300 Subject: [PATCH 2/2] Simplify profiles setup Signed-off-by: Artur Ciocanu --- pom.xml | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/pom.xml b/pom.xml index b89963125..c8cf9699c 100644 --- a/pom.xml +++ b/pom.xml @@ -318,24 +318,19 @@ HEAD + + sdk-autogen + sdk + sdk-actors + sdk-workflows + sdk-springboot + dapr-spring + examples + + testcontainers-dapr + + - - default - - true - - - sdk-autogen - sdk - sdk-actors - sdk-workflows - sdk-springboot - dapr-spring - examples - - testcontainers-dapr - - integration-tests