Skip to content

Commit c911423

Browse files
authored
Merge branch 'master' into 1478-trace-prop
Signed-off-by: salaboy <[email protected]>
2 parents 8cf94d6 + 6b0b79d commit c911423

File tree

1,277 files changed

+12920
-8410
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,277 files changed

+12920
-8410
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/automerge-bot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- name: Checkout repo
25-
uses: actions/checkout@v4
25+
uses: actions/checkout@v5
2626
- name: Install dependencies
2727
run: pip install PyGithub
2828
- name: Automerge and update

.github/workflows/build.yml

Lines changed: 8 additions & 12 deletions
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.15.7
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:
@@ -50,7 +50,7 @@ jobs:
5050
uses: docker/setup-docker-action@v4
5151
- name: Check Docker version
5252
run: docker version
53-
- uses: actions/checkout@v4
53+
- uses: actions/checkout@v5
5454
- name: Set up OpenJDK ${{ env.JDK_VER }}
5555
uses: actions/setup-java@v4
5656
with:
@@ -64,14 +64,14 @@ jobs:
6464
with:
6565
go-version: ${{ env.GOVER }}
6666
- name: Checkout Dapr CLI repo to override dapr command.
67-
uses: actions/checkout@v4
67+
uses: actions/checkout@v5
6868
if: env.DAPR_CLI_REF != ''
6969
with:
7070
repository: dapr/cli
7171
ref: ${{ env.DAPR_CLI_REF }}
7272
path: cli
7373
- name: Checkout Dapr repo to override daprd.
74-
uses: actions/checkout@v4
74+
uses: actions/checkout@v5
7575
if: env.DAPR_REF != ''
7676
with:
7777
repository: dapr/dapr
@@ -112,18 +112,14 @@ jobs:
112112
wget -q ${{ env.TOXIPROXY_URL }} -O /home/runner/.local/bin/toxiproxy-server
113113
chmod +x /home/runner/.local/bin/toxiproxy-server
114114
/home/runner/.local/bin/toxiproxy-server --version
115-
- name: Clean up files
116-
run: ./mvnw clean -B
117-
- name: Build sdk
118-
run: ./mvnw compile -B -q
115+
- name: Clean up and install sdk
116+
run: ./mvnw clean install -B -q -DskipTests
119117
- name: Unit tests
120118
run: ./mvnw test # making it temporarily verbose.
121119
env:
122120
DOCKER_HOST: ${{steps.setup_docker.outputs.sock}}
123121
- name: Codecov
124-
uses: codecov/[email protected]
125-
- name: Install jars
126-
run: ./mvnw install -q -B -DskipTests
122+
uses: codecov/[email protected]
127123
- name: Integration tests using spring boot version ${{ matrix.spring-boot-version }}
128124
id: integration_tests
129125
run: PRODUCT_SPRING_BOOT_VERSION=${{ matrix.spring-boot-version }} ./mvnw -B -Pintegration-tests verify
@@ -163,7 +159,7 @@ jobs:
163159
GPG_KEY: ${{ secrets.GPG_KEY }}
164160
GPG_PWD: ${{ secrets.GPG_PWD }}
165161
steps:
166-
- uses: actions/checkout@v4
162+
- uses: actions/checkout@v5
167163
- name: Set up OpenJDK ${{ env.JDK_VER }}
168164
uses: actions/setup-java@v4
169165
with:

.github/workflows/create-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
JDK_VER: '17'
3030
steps:
3131
- name: Check out code
32-
uses: actions/checkout@v4
32+
uses: actions/checkout@v5
3333
with:
3434
fetch-depth: 0
3535
token: ${{ secrets.DAPR_BOT_TOKEN }}

.github/workflows/fossa.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
FOSSA_API_KEY: b88e1f4287c3108c8751bf106fb46db6 # This is a push-only token that is safe to be exposed.
3333
steps:
3434
- name: "Checkout code"
35-
uses: actions/checkout@v4
35+
uses: actions/checkout@v5
3636

3737
- name: "Run FOSSA Scan"
3838
uses: fossas/[email protected] # Use a specific version if locking is preferred

.github/workflows/validate-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
env:
2323
JDK_VER: 17
2424
steps:
25-
- uses: actions/checkout@v4
25+
- uses: actions/checkout@v5
2626
- name: Set up OpenJDK ${{ env.JDK_VER }}
2727
uses: actions/setup-java@v4
2828
with:

.github/workflows/validate.yml

Lines changed: 24 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ jobs:
3838
GOPROXY: https://proxy.golang.org
3939
JDK_VER: ${{ matrix.java }}
4040
DAPR_CLI_VER: 1.15.0
41-
DAPR_RUNTIME_VER: 1.15.7
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:
4545
steps:
46-
- uses: actions/checkout@v4
46+
- uses: actions/checkout@v5
4747
- name: Set up OpenJDK ${{ env.JDK_VER }}
4848
uses: actions/setup-java@v4
4949
with:
@@ -62,14 +62,14 @@ jobs:
6262
with:
6363
go-version: ${{ env.GOVER }}
6464
- name: Checkout Dapr CLI repo to override dapr command.
65-
uses: actions/checkout@v4
65+
uses: actions/checkout@v5
6666
if: env.DAPR_CLI_REF != ''
6767
with:
6868
repository: dapr/cli
6969
ref: ${{ env.DAPR_CLI_REF }}
7070
path: cli
7171
- name: Checkout Dapr repo to override daprd.
72-
uses: actions/checkout@v4
72+
uses: actions/checkout@v5
7373
if: env.DAPR_REF != ''
7474
with:
7575
repository: dapr/dapr
@@ -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.1</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.1</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.1</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.1')
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.1')
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.1')
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)

0 commit comments

Comments
 (0)