Skip to content

Commit 1ae5ace

Browse files
authored
Merge branch 'master' into development-openfeign
Signed-off-by: lony2003 <[email protected]>
2 parents e8a35cc + e13f934 commit 1ae5ace

File tree

1,350 files changed

+9104
-4114
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,350 files changed

+9104
-4114
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ jobs:
123123
env:
124124
DOCKER_HOST: ${{steps.setup_docker.outputs.sock}}
125125
- name: Codecov
126-
uses: codecov/[email protected].2
126+
uses: codecov/[email protected].3
127127
- name: Install jars
128128
run: ./mvnw install -q -B -DskipTests
129129
- name: Integration tests using spring boot version ${{ matrix.spring-boot-version }}

.github/workflows/fossa.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ jobs:
3535
uses: actions/checkout@v4
3636

3737
- name: "Run FOSSA Scan"
38-
uses: fossas/fossa-action@v1.6.0 # Use a specific version if locking is preferred
38+
uses: fossas/fossa-action@v1.7.0 # Use a specific version if locking is preferred
3939
with:
4040
api-key: ${{ env.FOSSA_API_KEY }}
4141

4242
- name: "Run FOSSA Test"
43-
uses: fossas/fossa-action@v1.6.0 # Use a specific version if locking is preferred
43+
uses: fossas/fossa-action@v1.7.0 # Use a specific version if locking is preferred
4444
with:
4545
api-key: ${{ env.FOSSA_API_KEY }}
4646
run-tests: true

.github/workflows/validate.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,12 @@ jobs:
121121
mm.py ./src/main/java/io/dapr/examples/jobs/README.md
122122
env:
123123
DOCKER_HOST: ${{steps.setup_docker.outputs.sock}}
124+
- name: Validate conversation ai example
125+
working-directory: ./examples
126+
run: |
127+
mm.py ./src/main/java/io/dapr/examples/conversation/README.md
128+
env:
129+
DOCKER_HOST: ${{steps.setup_docker.outputs.sock}}
124130
- name: Validate invoke http example
125131
working-directory: ./examples
126132
run: |
@@ -210,4 +216,10 @@ jobs:
210216
run: |
211217
mm.py README.md
212218
env:
213-
DOCKER_HOST: ${{steps.setup_docker.outputs.sock}}
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}}

CONTRIBUTING.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,52 @@ Before you file an issue, make sure you've checked the following:
5151

5252
This section describes the guidelines for contributing code / docs to Dapr.
5353

54+
### Things to consider when adding new API to SDK
55+
56+
1. All the new API's go under [dapr-sdk maven package](https://github.com/dapr/java-sdk/tree/master/sdk)
57+
2. Make sure there is an example talking about how to use the API along with a README with mechanical markdown. [Example](https://github.com/dapr/java-sdk/pull/1235/files#diff-69ed756c4c01fd5fa884aac030dccb8f3f4d4fefa0dc330862d55a6f87b34a14)
58+
59+
#### Mechanical Markdown
60+
61+
Mechanical markdown is used to validate example outputs in our CI pipeline. It ensures that the expected output in README files matches the actual output when running the examples. This helps maintain example output, catches any unintended changes in example behavior, and regressions.
62+
63+
To test mechanical markdown locally:
64+
65+
1. Install the package:
66+
```bash
67+
pip3 install mechanical-markdown
68+
```
69+
70+
2. Run the test from the respective examples README directory, for example:
71+
```bash
72+
cd examples
73+
mm.py ./src/main/java/io/dapr/examples/workflows/README.md
74+
```
75+
76+
The test will:
77+
- Parse the STEP markers in the README
78+
- Execute the commands specified in the markers
79+
- Compare the actual output with the expected output
80+
- Report any mismatches
81+
82+
When writing STEP markers:
83+
- Use `output_match_mode: substring` for flexible matching
84+
- Quote strings containing special YAML characters (like `:`, `*`, `'`)
85+
- Set appropriate timeouts for long-running examples
86+
87+
Example STEP marker:
88+
```yaml
89+
<!-- STEP
90+
name: Run example
91+
output_match_mode: substring
92+
expected_stdout_lines:
93+
- "Starting workflow: io.dapr.examples.workflows.compensation.BookTripWorkflow"
94+
...
95+
background: true
96+
timeout_seconds: 60
97+
-->
98+
```
99+
54100
### Pull Requests
55101

56102
All contributions come through pull requests. To submit a proposed change, we recommend following this workflow:
@@ -64,6 +110,7 @@ All contributions come through pull requests. To submit a proposed change, we re
64110
6. Commit and open a PR
65111
7. Wait for the CI process to finish and make sure all checks are green
66112
8. A maintainer of the project will be assigned, and you can expect a review within a few days
113+
9. All the files have the Copyright header.
67114

68115
### Configure the code style with checkstyle
69116

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.0</version>
53+
<version>1.14.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.0</version>
59+
<version>1.14.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.0</version>
65+
<version>1.14.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.0')
79+
compile('io.dapr:dapr-sdk:1.14.1')
8080
// Dapr's SDK for Actors (optional).
81-
compile('io.dapr:dapr-sdk-actors:1.14.0')
81+
compile('io.dapr:dapr-sdk-actors:1.14.1')
8282
// Dapr's SDK integration with SpringBoot (optional).
83-
compile('io.dapr:dapr-sdk-springboot:1.14.0')
83+
compile('io.dapr:dapr-sdk-springboot:1.14.1')
8484
}
8585
```
8686

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

Lines changed: 17 additions & 5 deletions
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.15.0-SNAPSHOT</version>
9+
<version>0.16.0-SNAPSHOT</version>
1010
</parent>
1111

1212
<artifactId>dapr-spring-boot-autoconfigure</artifactId>
@@ -18,19 +18,20 @@
1818
<dependency>
1919
<groupId>io.dapr.spring</groupId>
2020
<artifactId>dapr-spring-data</artifactId>
21-
<version>${project.parent.version}</version>
2221
<optional>true</optional>
2322
</dependency>
23+
<dependency>
24+
<groupId>io.dapr</groupId>
25+
<artifactId>dapr-sdk-actors</artifactId>
26+
</dependency>
2427
<dependency>
2528
<groupId>io.dapr.spring</groupId>
2629
<artifactId>dapr-spring-messaging</artifactId>
27-
<version>${project.parent.version}</version>
2830
<optional>true</optional>
2931
</dependency>
3032
<dependency>
3133
<groupId>io.dapr.spring</groupId>
3234
<artifactId>dapr-spring-workflows</artifactId>
33-
<version>${project.parent.version}</version>
3435
<optional>true</optional>
3536
</dependency>
3637
<dependency>
@@ -71,9 +72,20 @@
7172
<dependency>
7273
<groupId>io.dapr</groupId>
7374
<artifactId>testcontainers-dapr</artifactId>
74-
<version>${dapr.sdk.alpha.version}</version>
7575
<scope>test</scope>
7676
</dependency>
77+
<dependency>
78+
<groupId>org.springframework</groupId>
79+
<artifactId>spring-beans</artifactId>
80+
</dependency>
81+
<dependency>
82+
<groupId>org.springframework</groupId>
83+
<artifactId>spring-context</artifactId>
84+
</dependency>
85+
<dependency>
86+
<groupId>org.springframework.boot</groupId>
87+
<artifactId>spring-boot-starter-test</artifactId>
88+
</dependency>
7789
</dependencies>
7890
<build>
7991
<plugins>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313

1414
package io.dapr.spring.boot.autoconfigure.client;
1515

16-
class PropertiesDaprConnectionDetails implements DaprConnectionDetails {
16+
public class ClientPropertiesDaprConnectionDetails implements DaprConnectionDetails {
1717

1818
private final DaprClientProperties daprClientProperties;
1919

20-
public PropertiesDaprConnectionDetails(DaprClientProperties daprClientProperties) {
20+
public ClientPropertiesDaprConnectionDetails(DaprClientProperties daprClientProperties) {
2121
this.daprClientProperties = daprClientProperties;
2222
}
2323

dapr-spring/dapr-spring-boot-autoconfigure/src/main/java/io/dapr/spring/boot/autoconfigure/client/DaprClientAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public class DaprClientAutoConfiguration {
3737
@Bean
3838
@ConditionalOnMissingBean(DaprConnectionDetails.class)
3939
DaprConnectionDetails daprConnectionDetails(DaprClientProperties properties) {
40-
return new PropertiesDaprConnectionDetails(properties);
40+
return new ClientPropertiesDaprConnectionDetails(properties);
4141
}
4242

4343
@Bean

dapr-spring/dapr-spring-boot-autoconfigure/src/main/java/io/dapr/spring/boot/autoconfigure/client/DaprConnectionDetails.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@
1616
import org.springframework.boot.autoconfigure.service.connection.ConnectionDetails;
1717

1818
public interface DaprConnectionDetails extends ConnectionDetails {
19+
1920
String getHttpEndpoint();
2021

2122
String getGrpcEndpoint();
2223

2324
Integer getHttpPort();
2425

2526
Integer getGrpcPort();
27+
2628
}

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

Lines changed: 1 addition & 3 deletions
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.15.0-SNAPSHOT</version>
9+
<version>0.16.0-SNAPSHOT</version>
1010
<relativePath>../../pom.xml</relativePath>
1111
</parent>
1212

@@ -23,12 +23,10 @@
2323
<dependency>
2424
<groupId>io.dapr.spring</groupId>
2525
<artifactId>dapr-spring-boot-tests</artifactId>
26-
<version>${project.parent.version}</version>
2726
</dependency>
2827
<dependency>
2928
<groupId>io.dapr</groupId>
3029
<artifactId>testcontainers-dapr</artifactId>
31-
<version>${project.parent.version}</version>
3230
</dependency>
3331
<dependency>
3432
<groupId>org.springframework.boot</groupId>

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

Lines changed: 1 addition & 6 deletions
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.15.0-SNAPSHOT</version>
9+
<version>0.16.0-SNAPSHOT</version>
1010
<relativePath>../../pom.xml</relativePath>
1111
</parent>
1212

@@ -23,27 +23,22 @@
2323
<dependency>
2424
<groupId>io.dapr</groupId>
2525
<artifactId>dapr-sdk-springboot</artifactId>
26-
<version>${dapr.sdk.version}</version>
2726
</dependency>
2827
<dependency>
2928
<groupId>io.dapr.spring</groupId>
3029
<artifactId>dapr-spring-boot-autoconfigure</artifactId>
31-
<version>${project.parent.version}</version>
3230
</dependency>
3331
<dependency>
3432
<groupId>io.dapr.spring</groupId>
3533
<artifactId>dapr-spring-data</artifactId>
36-
<version>${project.parent.version}</version>
3734
</dependency>
3835
<dependency>
3936
<groupId>io.dapr.spring</groupId>
4037
<artifactId>dapr-spring-messaging</artifactId>
41-
<version>${project.parent.version}</version>
4238
</dependency>
4339
<dependency>
4440
<groupId>io.dapr.spring</groupId>
4541
<artifactId>dapr-spring-workflows</artifactId>
46-
<version>${project.parent.version}</version>
4742
</dependency>
4843
<dependency>
4944
<groupId>io.dapr.spring</groupId>

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

Lines changed: 1 addition & 3 deletions
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.15.0-SNAPSHOT</version>
9+
<version>0.16.0-SNAPSHOT</version>
1010
</parent>
1111

1212
<artifactId>dapr-spring-boot-tests</artifactId>
@@ -22,7 +22,6 @@
2222
<dependency>
2323
<groupId>io.dapr.spring</groupId>
2424
<artifactId>dapr-spring-boot-autoconfigure</artifactId>
25-
<version>${project.parent.version}</version>
2625
</dependency>
2726
<dependency>
2827
<groupId>org.testcontainers</groupId>
@@ -38,7 +37,6 @@
3837
<dependency>
3938
<groupId>io.dapr</groupId>
4039
<artifactId>testcontainers-dapr</artifactId>
41-
<version>${dapr.sdk.alpha.version}</version>
4240
</dependency>
4341
</dependencies>
4442
<build>

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

Lines changed: 5 additions & 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.15.0-SNAPSHOT</version>
9+
<version>0.16.0-SNAPSHOT</version>
1010
</parent>
1111

1212
<artifactId>dapr-spring-data</artifactId>
@@ -19,6 +19,10 @@
1919
<groupId>org.springframework.data</groupId>
2020
<artifactId>spring-data-keyvalue</artifactId>
2121
</dependency>
22+
<dependency>
23+
<groupId>io.dapr</groupId>
24+
<artifactId>dapr-sdk</artifactId>
25+
</dependency>
2226
</dependencies>
2327

2428
<build>

dapr-spring/dapr-spring-messaging/pom.xml

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

1212
<artifactId>dapr-spring-messaging</artifactId>
1313
<name>dapr-spring-messaging</name>
1414
<description>Dapr Spring Messaging</description>
1515
<packaging>jar</packaging>
1616

17+
<dependencies>
18+
<dependency>
19+
<groupId>org.springframework</groupId>
20+
<artifactId>spring-context</artifactId>
21+
</dependency>
22+
<dependency>
23+
<groupId>io.dapr</groupId>
24+
<artifactId>dapr-sdk</artifactId>
25+
</dependency>
26+
</dependencies>
27+
1728
<build>
1829
<plugins>
1930
<plugin>

dapr-spring/dapr-spring-workflows/pom.xml

Lines changed: 9 additions & 2 deletions
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.15.0-SNAPSHOT</version>
9+
<version>0.16.0-SNAPSHOT</version>
1010
</parent>
1111

1212
<artifactId>dapr-spring-workflows</artifactId>
@@ -15,10 +15,17 @@
1515
<packaging>jar</packaging>
1616

1717
<dependencies>
18+
<dependency>
19+
<groupId>org.springframework</groupId>
20+
<artifactId>spring-beans</artifactId>
21+
</dependency>
22+
<dependency>
23+
<groupId>org.springframework</groupId>
24+
<artifactId>spring-context</artifactId>
25+
</dependency>
1826
<dependency>
1927
<groupId>io.dapr</groupId>
2028
<artifactId>dapr-sdk-workflows</artifactId>
21-
<version>${project.version}</version>
2229
</dependency>
2330
</dependencies>
2431
<build>

0 commit comments

Comments
 (0)