mirror of https://github.com/dapr/java-sdk.git
Adding Maven Profiles (#1120)
* Adding Maven Profiles Signed-off-by: Artur Ciocanu <ciocanu@adobe.com> * Simplify profiles setup Signed-off-by: Artur Ciocanu <ciocanu@adobe.com> --------- Signed-off-by: Artur Ciocanu <ciocanu@adobe.com> Co-authored-by: Artur Ciocanu <ciocanu@adobe.com>
This commit is contained in:
parent
4b83da6327
commit
cc537a4c20
|
@ -119,7 +119,7 @@ jobs:
|
||||||
run: ./mvnw install -q -B -DskipTests
|
run: ./mvnw install -q -B -DskipTests
|
||||||
- name: Integration tests using spring boot version ${{ matrix.spring-boot-version }}
|
- name: Integration tests using spring boot version ${{ matrix.spring-boot-version }}
|
||||||
id: integration_tests
|
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
|
- name: Upload test report for sdk
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
|
13
pom.xml
13
pom.xml
|
@ -328,10 +328,15 @@
|
||||||
<module>examples</module>
|
<module>examples</module>
|
||||||
<!-- We are following test containers artifact convention on purpose, don't rename -->
|
<!-- We are following test containers artifact convention on purpose, don't rename -->
|
||||||
<module>testcontainers-dapr</module>
|
<module>testcontainers-dapr</module>
|
||||||
<!-- don't add sdk-tests to the build,
|
|
||||||
it's only used for CI testing by github action
|
|
||||||
<module>sdk-tests</module>
|
|
||||||
-->
|
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>integration-tests</id>
|
||||||
|
<modules>
|
||||||
|
<module>sdk-tests</module>
|
||||||
|
</modules>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -4,9 +4,14 @@
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<groupId>io.dapr</groupId>
|
<parent>
|
||||||
|
<groupId>io.dapr</groupId>
|
||||||
|
<artifactId>dapr-sdk-parent</artifactId>
|
||||||
|
<version>1.13.0-SNAPSHOT</version>
|
||||||
|
</parent>
|
||||||
|
|
||||||
<artifactId>dapr-sdk-tests</artifactId>
|
<artifactId>dapr-sdk-tests</artifactId>
|
||||||
<version>0.0.0-SNAPSHOT</version>
|
<version>1.13.0-SNAPSHOT</version>
|
||||||
<name>dapr-sdk-tests</name>
|
<name>dapr-sdk-tests</name>
|
||||||
<description>Tests for Dapr's Java SDK - not to be published as a jar.</description>
|
<description>Tests for Dapr's Java SDK - not to be published as a jar.</description>
|
||||||
|
|
||||||
|
@ -320,15 +325,6 @@
|
||||||
<properties>
|
<properties>
|
||||||
<springboot.version>${env.PRODUCT_SPRING_BOOT_VERSION}</springboot.version>
|
<springboot.version>${env.PRODUCT_SPRING_BOOT_VERSION}</springboot.version>
|
||||||
</properties>
|
</properties>
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<!-- Needed for dapr compatibility for spring boot versions before 2.7 -->
|
|
||||||
<groupId>com.squareup.okhttp3</groupId>
|
|
||||||
<artifactId>okhttp</artifactId>
|
|
||||||
<version>4.9.0</version>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
</profile>
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
</project>
|
</project>
|
||||||
|
|
Loading…
Reference in New Issue