Skip to content

Commit 13989b4

Browse files
authored
Merge branch 'master' into task-execution-id
2 parents 6ec2405 + a782438 commit 13989b4

File tree

1,250 files changed

+11681
-8324
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,250 files changed

+11681
-8324
lines changed

.github/scripts/update_sdk_version.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ mvn versions:set -DnewVersion=$DAPR_JAVA_SDK_ALPHA_VERSION -f sdk-workflows/pom.
2525
mvn versions:set -DnewVersion=$DAPR_JAVA_SDK_ALPHA_VERSION -f testcontainers-dapr/pom.xml
2626

2727
# dapr-spring
28-
mvn versions:set -DnewVersion=$DAPR_JAVA_SDK_ALPHA_VERSION -f dapr-spring/pom.xml
28+
mvn versions:set -DnewVersion=$DAPR_JAVA_SDK_ALPHA_VERSION -DprocessDependencies=true -f dapr-spring/pom.xml
29+
mvn versions:set-property -Dproperty=dapr.spring.version -DnewVersion=$DAPR_JAVA_SDK_ALPHA_VERSION -f dapr-spring/pom.xml
2930

3031
# spring-boot-examples
3132
mvn versions:set -DnewVersion=$DAPR_JAVA_SDK_ALPHA_VERSION -f spring-boot-examples/pom.xml

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
GOPROXY: https://proxy.golang.org
4040
JDK_VER: ${{ matrix.java }}
4141
DAPR_CLI_VER: 1.15.0
42-
DAPR_RUNTIME_VER: 1.16.0-rc.2
42+
DAPR_RUNTIME_VER: 1.16.0-rc.3
4343
DAPR_INSTALL_URL: https://raw.githubusercontent.com/dapr/cli/v1.15.0/install/install.sh
4444
DAPR_CLI_REF:
4545
DAPR_REF:

.github/workflows/validate.yml

Lines changed: 21 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
GOPROXY: https://proxy.golang.org
3939
JDK_VER: ${{ matrix.java }}
4040
DAPR_CLI_VER: 1.15.0
41-
DAPR_RUNTIME_VER: 1.16.0-rc.2
41+
DAPR_RUNTIME_VER: 1.16.0-rc.3
4242
DAPR_INSTALL_URL: https://raw.githubusercontent.com/dapr/cli/v1.15.0/install/install.sh
4343
DAPR_CLI_REF:
4444
DAPR_REF:
@@ -107,12 +107,26 @@ jobs:
107107
pip3 install mechanical-markdown
108108
- name: Verify scheduler is listening on port.
109109
run: sleep 30 && docker logs dapr_scheduler && nc -vz localhost 50006
110-
- name: Clean up files
111-
run: ./mvnw clean
112-
- name: Build sdk
113-
run: ./mvnw compile -q
114110
- name: Install jars
115-
run: ./mvnw install -q
111+
run: ./mvnw clean install -DskipTests -q
112+
env:
113+
DOCKER_HOST: ${{steps.setup_docker.outputs.sock}}
114+
- name: Validate workflows example
115+
working-directory: ./examples
116+
run: |
117+
mm.py ./src/main/java/io/dapr/examples/workflows/README.md
118+
env:
119+
DOCKER_HOST: ${{steps.setup_docker.outputs.sock}}
120+
- name: Validate Spring Boot examples
121+
working-directory: ./spring-boot-examples
122+
run: |
123+
mm.py README.md
124+
env:
125+
DOCKER_HOST: ${{steps.setup_docker.outputs.sock}}
126+
- name: Validate Spring Boot Workflow examples
127+
working-directory: ./spring-boot-examples/workflows
128+
run: |
129+
mm.py README.md
116130
env:
117131
DOCKER_HOST: ${{steps.setup_docker.outputs.sock}}
118132
- name: Validate Jobs example
@@ -199,27 +213,10 @@ jobs:
199213
mm.py ./src/main/java/io/dapr/examples/querystate/README.md
200214
env:
201215
DOCKER_HOST: ${{steps.setup_docker.outputs.sock}}
202-
- name: Validate workflows example
203-
working-directory: ./examples
204-
run: |
205-
mm.py ./src/main/java/io/dapr/examples/workflows/README.md
206-
env:
207-
DOCKER_HOST: ${{steps.setup_docker.outputs.sock}}
208216
- name: Validate streaming subscription example
209217
working-directory: ./examples
210218
run: |
211219
mm.py ./src/main/java/io/dapr/examples/pubsub/stream/README.md
212220
env:
213221
DOCKER_HOST: ${{steps.setup_docker.outputs.sock}}
214-
- name: Validate Spring Boot examples
215-
working-directory: ./spring-boot-examples
216-
run: |
217-
mm.py README.md
218-
env:
219-
DOCKER_HOST: ${{steps.setup_docker.outputs.sock}}
220-
- name: Validate Spring Boot Workflow examples
221-
working-directory: ./spring-boot-examples/workflows
222-
run: |
223-
mm.py README.md
224-
env:
225-
DOCKER_HOST: ${{steps.setup_docker.outputs.sock}}
222+

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,19 @@ For a Maven project, add the following to your `pom.xml` file:
5050
<dependency>
5151
<groupId>io.dapr</groupId>
5252
<artifactId>dapr-sdk</artifactId>
53-
<version>1.14.2</version>
53+
<version>1.15.1</version>
5454
</dependency>
5555
<!-- Dapr's SDK for Actors (optional). -->
5656
<dependency>
5757
<groupId>io.dapr</groupId>
5858
<artifactId>dapr-sdk-actors</artifactId>
59-
<version>1.14.2</version>
59+
<version>1.15.1</version>
6060
</dependency>
6161
<!-- Dapr's SDK integration with SpringBoot (optional). -->
6262
<dependency>
6363
<groupId>io.dapr</groupId>
6464
<artifactId>dapr-sdk-springboot</artifactId>
65-
<version>1.14.2</version>
65+
<version>1.15.1</version>
6666
</dependency>
6767
...
6868
</dependencies>
@@ -76,11 +76,11 @@ For a Gradle project, add the following to your `build.gradle` file:
7676
dependencies {
7777
...
7878
// Dapr's core SDK with all features, except Actors.
79-
compile('io.dapr:dapr-sdk:1.14.2')
79+
compile('io.dapr:dapr-sdk:1.15.1')
8080
// Dapr's SDK for Actors (optional).
81-
compile('io.dapr:dapr-sdk-actors:1.14.2')
81+
compile('io.dapr:dapr-sdk-actors:1.15.1')
8282
// Dapr's SDK integration with SpringBoot (optional).
83-
compile('io.dapr:dapr-sdk-springboot:1.14.2')
83+
compile('io.dapr:dapr-sdk-springboot:1.15.1')
8484
}
8585
```
8686

dapr-spring/dapr-spring-boot-autoconfigure/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>io.dapr.spring</groupId>
88
<artifactId>dapr-spring-parent</artifactId>
9-
<version>0.16.0-SNAPSHOT</version>
9+
<version>0.17.0-SNAPSHOT</version>
1010
</parent>
1111

1212
<artifactId>dapr-spring-boot-autoconfigure</artifactId>

dapr-spring/dapr-spring-boot-autoconfigure/src/test/java/io/dapr/spring/boot/autoconfigure/client/DaprClientPropertiesTest.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,26 @@ public void shouldMapDaprClientProperties() {
8383
});
8484

8585
});
86+
}
8687

88+
@Test
89+
@DisplayName("Should map DaprClient properties correctly (camelCase)")
90+
public void shouldMapDaprClientPropertiesCamelCase() {
91+
runner.withSystemProperties(
92+
"dapr.client.httpEndpoint=http://localhost",
93+
"dapr.client.httpPort=3500",
94+
"dapr.client.grpcEndpoint=localhost",
95+
"dapr.client.grpcPort=50001"
96+
).run(context -> {
97+
DaprClientProperties properties = context.getBean(DaprClientProperties.class);
98+
SoftAssertions.assertSoftly(softly -> {
99+
softly.assertThat(properties.getGrpcEndpoint()).isEqualTo("localhost");
100+
softly.assertThat(properties.getHttpEndpoint()).isEqualTo("http://localhost");
101+
softly.assertThat(properties.getHttpPort()).isEqualTo(3500);
102+
softly.assertThat(properties.getGrpcPort()).isEqualTo(50001);
103+
});
104+
105+
});
87106
}
88107

89108
@EnableConfigurationProperties(DaprClientProperties.class)

dapr-spring/dapr-spring-boot-starters/dapr-spring-boot-starter-test/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>io.dapr.spring</groupId>
88
<artifactId>dapr-spring-parent</artifactId>
9-
<version>0.16.0-SNAPSHOT</version>
9+
<version>0.17.0-SNAPSHOT</version>
1010
<relativePath>../../pom.xml</relativePath>
1111
</parent>
1212

dapr-spring/dapr-spring-boot-starters/dapr-spring-boot-starter/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>io.dapr.spring</groupId>
88
<artifactId>dapr-spring-parent</artifactId>
9-
<version>0.16.0-SNAPSHOT</version>
9+
<version>0.17.0-SNAPSHOT</version>
1010
<relativePath>../../pom.xml</relativePath>
1111
</parent>
1212

dapr-spring/dapr-spring-boot-tests/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>io.dapr.spring</groupId>
88
<artifactId>dapr-spring-parent</artifactId>
9-
<version>0.16.0-SNAPSHOT</version>
9+
<version>0.17.0-SNAPSHOT</version>
1010
</parent>
1111

1212
<artifactId>dapr-spring-boot-tests</artifactId>

dapr-spring/dapr-spring-data/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>io.dapr.spring</groupId>
88
<artifactId>dapr-spring-parent</artifactId>
9-
<version>0.16.0-SNAPSHOT</version>
9+
<version>0.17.0-SNAPSHOT</version>
1010
</parent>
1111

1212
<artifactId>dapr-spring-data</artifactId>

0 commit comments

Comments
 (0)