Skip to content

Commit ed91b07

Browse files
authored
Merge branch 'master' into users/svegiraju/add-cryptography
2 parents 50d77c7 + fd2606b commit ed91b07

File tree

73 files changed

+1877
-860
lines changed

Some content is hidden

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

73 files changed

+1877
-860
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ jobs:
3434
- name: Codecov
3535
uses: codecov/codecov-action@v5.5.1
3636
- name: Upload test report for sdk
37-
uses: actions/upload-artifact@v4
37+
uses: actions/upload-artifact@v5
3838
with:
3939
name: test-dapr-java-sdk-jdk${{ env.JDK_VER }}
4040
path: sdk/target/jacoco-report/
4141
- name: Upload test report for sdk-actors
42-
uses: actions/upload-artifact@v4
42+
uses: actions/upload-artifact@v5
4343
with:
4444
name: report-dapr-java-sdk-actors-jdk${{ env.JDK_VER }}
4545
path: sdk-actors/target/jacoco-report/
@@ -74,12 +74,9 @@ jobs:
7474
DAPR_REF:
7575
TOXIPROXY_URL: https://github.com/Shopify/toxiproxy/releases/download/v2.5.0/toxiproxy-server-linux-amd64
7676
steps:
77-
- name: Install Stable Docker
78-
id: setup_docker
79-
uses: docker/setup-docker-action@v4
80-
- name: Check Docker version
81-
run: docker version
8277
- uses: actions/checkout@v5
78+
- name: Check Docker version
79+
run: docker version
8380
- name: Set up OpenJDK ${{ env.JDK_VER }}
8481
uses: actions/setup-java@v5
8582
with:
@@ -153,17 +150,15 @@ jobs:
153150
- name: Integration tests using spring boot version ${{ matrix.spring-boot-version }}
154151
id: integration_tests
155152
run: PRODUCT_SPRING_BOOT_VERSION=${{ matrix.spring-boot-version }} ./mvnw -B -Pintegration-tests dependency:copy-dependencies verify
156-
env:
157-
DOCKER_HOST: ${{steps.setup_docker.outputs.sock}}
158153
- name: Upload failsafe test report for sdk-tests on failure
159154
if: ${{ failure() && steps.integration_tests.conclusion == 'failure' }}
160-
uses: actions/upload-artifact@v4
155+
uses: actions/upload-artifact@v5
161156
with:
162157
name: failsafe-report-sdk-tests-jdk${{ matrix.java }}-sb${{ matrix.spring-boot-version }}
163158
path: sdk-tests/target/failsafe-reports
164159
- name: Upload surefire test report for sdk-tests on failure
165160
if: ${{ failure() && steps.integration_tests.conclusion == 'failure' }}
166-
uses: actions/upload-artifact@v4
161+
uses: actions/upload-artifact@v5
167162
with:
168163
name: surefire-report-sdk-tests-jdk${{ matrix.java }}-sb${{ matrix.spring-boot-version }}
169164
path: sdk-tests/target/surefire-reports

.github/workflows/validate.yml

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@ jobs:
4949
with:
5050
distribution: 'temurin'
5151
java-version: ${{ env.JDK_VER }}
52-
- name: Install Stable Docker
53-
id: setup_docker
54-
uses: docker/setup-docker-action@v4
5552
- name: Check Docker version
5653
run: docker version
5754
- name: Set up Dapr CLI
@@ -116,114 +113,76 @@ jobs:
116113
run: sleep 30 && docker logs dapr_scheduler && nc -vz localhost 50006
117114
- name: Install jars
118115
run: ./mvnw clean install -DskipTests -q
119-
env:
120-
DOCKER_HOST: ${{steps.setup_docker.outputs.sock}}
121116
- name: Validate workflows example
122117
working-directory: ./examples
123118
run: |
124119
mm.py ./src/main/java/io/dapr/examples/workflows/README.md
125-
env:
126-
DOCKER_HOST: ${{steps.setup_docker.outputs.sock}}
127120
- name: Validate Spring Boot examples
128121
working-directory: ./spring-boot-examples
129122
run: |
130123
mm.py README.md
131-
env:
132-
DOCKER_HOST: ${{steps.setup_docker.outputs.sock}}
133124
- name: Validate Spring Boot Workflow Patterns examples
134125
working-directory: ./spring-boot-examples/workflows/patterns
135126
run: |
136127
mm.py README.md
137-
env:
138-
DOCKER_HOST: ${{steps.setup_docker.outputs.sock}}
139128
- name: Validate Jobs example
140129
working-directory: ./examples
141130
run: |
142131
mm.py ./src/main/java/io/dapr/examples/jobs/README.md
143-
env:
144-
DOCKER_HOST: ${{steps.setup_docker.outputs.sock}}
145132
- name: Validate conversation ai example
146133
working-directory: ./examples
147134
run: |
148135
mm.py ./src/main/java/io/dapr/examples/conversation/README.md
149-
env:
150-
DOCKER_HOST: ${{steps.setup_docker.outputs.sock}}
151136
- name: Validate invoke http example
152137
working-directory: ./examples
153138
run: |
154139
mm.py ./src/main/java/io/dapr/examples/invoke/http/README.md
155-
env:
156-
DOCKER_HOST: ${{steps.setup_docker.outputs.sock}}
157140
- name: Validate invoke grpc example
158141
working-directory: ./examples
159142
run: |
160143
mm.py ./src/main/java/io/dapr/examples/invoke/grpc/README.md
161-
env:
162-
DOCKER_HOST: ${{steps.setup_docker.outputs.sock}}
163144
- name: Validate tracing example
164145
working-directory: ./examples
165146
run: |
166147
mm.py ./src/main/java/io/dapr/examples/tracing/README.md
167-
env:
168-
DOCKER_HOST: ${{steps.setup_docker.outputs.sock}}
169148
- name: Validate expection handling example
170149
working-directory: ./examples
171150
run: |
172151
mm.py ./src/main/java/io/dapr/examples/exception/README.md
173-
env:
174-
DOCKER_HOST: ${{steps.setup_docker.outputs.sock}}
175152
- name: Validate state example
176153
working-directory: ./examples
177154
run: |
178155
mm.py ./src/main/java/io/dapr/examples/state/README.md
179-
env:
180-
DOCKER_HOST: ${{steps.setup_docker.outputs.sock}}
181156
- name: Validate pubsub example
182157
working-directory: ./examples
183158
run: |
184159
mm.py ./src/main/java/io/dapr/examples/pubsub/README.md
185-
env:
186-
DOCKER_HOST: ${{steps.setup_docker.outputs.sock}}
187160
- name: Validate bindings HTTP example
188161
working-directory: ./examples
189162
run: |
190163
mm.py ./src/main/java/io/dapr/examples/bindings/http/README.md
191-
env:
192-
DOCKER_HOST: ${{steps.setup_docker.outputs.sock}}
193164
- name: Validate secrets example
194165
working-directory: ./examples
195166
run: |
196167
mm.py ./src/main/java/io/dapr/examples/secrets/README.md
197-
env:
198-
DOCKER_HOST: ${{steps.setup_docker.outputs.sock}}
199168
- name: Validate unit testing example
200169
working-directory: ./examples
201170
run: |
202171
mm.py ./src/main/java/io/dapr/examples/unittesting/README.md
203-
env:
204-
DOCKER_HOST: ${{steps.setup_docker.outputs.sock}}
205172
- name: Validate Configuration API example
206173
working-directory: ./examples
207174
run: |
208175
mm.py ./src/main/java/io/dapr/examples/configuration/README.md
209-
env:
210-
DOCKER_HOST: ${{steps.setup_docker.outputs.sock}}
211176
- name: Validate actors example
212177
working-directory: ./examples
213178
run: |
214179
mm.py ./src/main/java/io/dapr/examples/actors/README.md
215-
env:
216-
DOCKER_HOST: ${{steps.setup_docker.outputs.sock}}
217180
- name: Validate query state HTTP example
218181
working-directory: ./examples
219182
run: |
220183
mm.py ./src/main/java/io/dapr/examples/querystate/README.md
221-
env:
222-
DOCKER_HOST: ${{steps.setup_docker.outputs.sock}}
223184
- name: Validate streaming subscription example
224185
working-directory: ./examples
225186
run: |
226187
mm.py ./src/main/java/io/dapr/examples/pubsub/stream/README.md
227-
env:
228-
DOCKER_HOST: ${{steps.setup_docker.outputs.sock}}
229188

.mise.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[tools]
2+
java = "temurin-17"
3+
4+
[env]
5+
JAVA_HOME = "{{exec(command='mise where java')}}"

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,25 @@ This is the Dapr SDK for Java, including the following features:
1313

1414
## Getting Started
1515

16+
### Architecture Overview
17+
18+
The diagram below shows how a Java application interacts with the Dapr runtime through the Java SDK:
19+
20+
```mermaid
21+
flowchart LR
22+
A[End User Application] -->|HTTP or gRPC| B[Dapr Java SDK]
23+
B -->|Dapr API calls| C[Dapr Sidecar]
24+
C -->|Components| D[State Stores, Pub/Sub, Services, etc.]
25+
26+
%% Optional grouping for clarity
27+
subgraph R[Dapr Runtime]
28+
C
29+
D
30+
end
31+
```
32+
33+
For the full list of available APIs, see the [Dapr API reference](https://docs.dapr.io/reference/api/)
34+
1635
### Pre-Requisites
1736
* SDKMAN! installed (recommended):
1837
* [SDKMAN!](https://sdkman.io)
@@ -278,4 +297,4 @@ Once the project has been imported, the individual tests can be run normally as
278297
279298
> Sometimes when the `sdk-tests` project does not build correctly, try `File > Invalidate Caches...` and try restarting IntelliJ.
280299
281-
You should be able to set breakpoints and Debug the test directly from IntelliJ itself as seen from the above image.
300+
You should be able to set breakpoints and Debug the test directly from IntelliJ itself as seen from the above image.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<groupId>io.dapr.spring</groupId>
88
<artifactId>dapr-spring-parent</artifactId>
99
<version>1.17.0-SNAPSHOT</version>
10+
<relativePath>../pom.xml</relativePath>
1011
</parent>
1112

1213
<artifactId>dapr-spring-boot-autoconfigure</artifactId>
@@ -85,6 +86,7 @@
8586
<dependency>
8687
<groupId>org.springframework.boot</groupId>
8788
<artifactId>spring-boot-starter-test</artifactId>
89+
<scope>test</scope>
8890
</dependency>
8991
</dependencies>
9092
<build>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<groupId>io.dapr.spring</groupId>
88
<artifactId>dapr-spring-parent</artifactId>
99
<version>1.17.0-SNAPSHOT</version>
10+
<relativePath>../pom.xml</relativePath>
1011
</parent>
1112

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<groupId>io.dapr.spring</groupId>
88
<artifactId>dapr-spring-parent</artifactId>
99
<version>1.17.0-SNAPSHOT</version>
10+
<relativePath>../pom.xml</relativePath>
1011
</parent>
1112

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<groupId>io.dapr.spring</groupId>
88
<artifactId>dapr-spring-parent</artifactId>
99
<version>1.17.0-SNAPSHOT</version>
10+
<relativePath>../pom.xml</relativePath>
1011
</parent>
1112

1213
<artifactId>dapr-spring-messaging</artifactId>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<groupId>io.dapr.spring</groupId>
88
<artifactId>dapr-spring-parent</artifactId>
99
<version>1.17.0-SNAPSHOT</version>
10+
<relativePath>../pom.xml</relativePath>
1011
</parent>
1112

1213
<artifactId>dapr-spring-workflows</artifactId>

0 commit comments

Comments
 (0)