Skip to content

Commit 8cb7c04

Browse files
committed
Merge branch 'master' of https://github.com/siri-varma/java-sdk
2 parents 9d83b90 + a7d426a commit 8cb7c04

File tree

1,371 files changed

+24071
-7468
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,371 files changed

+24071
-7468
lines changed

.github/scripts/update_sdk_version.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,16 @@ mvn versions:set-property -Dproperty=dapr.sdk.alpha.version -DnewVersion=$DAPR_J
1919
###################
2020

2121
# sdk-workflows
22-
mvn versions:set -DnewVersion=$DAPR_JAVA_SDK_ALPHA_VERSION -f sdk-workflows/pom.xml
22+
mvn versions:set -DnewVersion=$DAPR_JAVA_SDK_VERSION -f sdk-workflows/pom.xml
2323

2424
# testcontainers-dapr
25-
mvn versions:set -DnewVersion=$DAPR_JAVA_SDK_ALPHA_VERSION -f testcontainers-dapr/pom.xml
25+
mvn versions:set -DnewVersion=$DAPR_JAVA_SDK_VERSION -f testcontainers-dapr/pom.xml
2626

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

3031
# spring-boot-examples
31-
mvn versions:set -DnewVersion=$DAPR_JAVA_SDK_ALPHA_VERSION -f spring-boot-examples/pom.xml
32+
mvn versions:set -DnewVersion=$DAPR_JAVA_SDK_VERSION -f spring-boot-examples/pom.xml
3233

3334
git clean -f

.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: 56 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,35 @@ on:
1515
- release-*
1616

1717
jobs:
18+
test:
19+
name: "Unit tests"
20+
runs-on: ubuntu-latest
21+
timeout-minutes: 30
22+
continue-on-error: false
23+
env:
24+
JDK_VER: 17
25+
steps:
26+
- uses: actions/checkout@v5
27+
- name: Set up OpenJDK ${{ env.JDK_VER }}
28+
uses: actions/setup-java@v4
29+
with:
30+
distribution: 'temurin'
31+
java-version: ${{ env.JDK_VER }}
32+
- name: Run tests
33+
run: ./mvnw clean install -B -q -DskipITs=true
34+
- name: Codecov
35+
uses: codecov/codecov-action@v5.5.1
36+
- name: Upload test report for sdk
37+
uses: actions/upload-artifact@v4
38+
with:
39+
name: test-dapr-java-sdk-jdk${{ env.JDK_VER }}
40+
path: sdk/target/jacoco-report/
41+
- name: Upload test report for sdk-actors
42+
uses: actions/upload-artifact@v4
43+
with:
44+
name: report-dapr-java-sdk-actors-jdk${{ env.JDK_VER }}
45+
path: sdk-actors/target/jacoco-report/
46+
1847
build:
1948
name: "Build jdk:${{ matrix.java }} sb:${{ matrix.spring-boot-display-version }} exp:${{ matrix.experimental }}"
2049
runs-on: ubuntu-latest
@@ -24,13 +53,13 @@ jobs:
2453
fail-fast: false
2554
matrix:
2655
java: [ 17 ]
27-
spring-boot-version: [ 3.4.3 ]
28-
spring-boot-display-version: [ 3.4.x ]
56+
spring-boot-version: [ 3.5.4 ]
57+
spring-boot-display-version: [ 3.5.x ]
2958
experimental: [ false ]
3059
include:
3160
- java: 17
32-
spring-boot-version: 3.3.9
33-
spring-boot-display-version: 3.3.x
61+
spring-boot-version: 3.4.9
62+
spring-boot-display-version: 3.4.x
3463
experimental: false
3564
env:
3665
GOVER: "1.20"
@@ -39,7 +68,7 @@ jobs:
3968
GOPROXY: https://proxy.golang.org
4069
JDK_VER: ${{ matrix.java }}
4170
DAPR_CLI_VER: 1.15.0
42-
DAPR_RUNTIME_VER: 1.16.0-rc.3
71+
DAPR_RUNTIME_VER: 1.16.0-rc.5
4372
DAPR_INSTALL_URL: https://raw.githubusercontent.com/dapr/cli/v1.15.0/install/install.sh
4473
DAPR_CLI_REF:
4574
DAPR_REF:
@@ -50,28 +79,28 @@ jobs:
5079
uses: docker/setup-docker-action@v4
5180
- name: Check Docker version
5281
run: docker version
53-
- uses: actions/checkout@v4
82+
- uses: actions/checkout@v5
5483
- name: Set up OpenJDK ${{ env.JDK_VER }}
55-
uses: actions/setup-java@v4
84+
uses: actions/setup-java@v5
5685
with:
5786
distribution: 'temurin'
5887
java-version: ${{ env.JDK_VER }}
5988
- name: Set up Dapr CLI
6089
run: wget -q ${{ env.DAPR_INSTALL_URL }} -O - | /bin/bash -s ${{ env.DAPR_CLI_VER }}
6190
- name: Set up Go ${{ env.GOVER }}
6291
if: env.DAPR_REF != '' || env.DAPR_CLI_REF != ''
63-
uses: actions/setup-go@v5
92+
uses: actions/setup-go@v6
6493
with:
6594
go-version: ${{ env.GOVER }}
6695
- name: Checkout Dapr CLI repo to override dapr command.
67-
uses: actions/checkout@v4
96+
uses: actions/checkout@v5
6897
if: env.DAPR_CLI_REF != ''
6998
with:
7099
repository: dapr/cli
71100
ref: ${{ env.DAPR_CLI_REF }}
72101
path: cli
73102
- name: Checkout Dapr repo to override daprd.
74-
uses: actions/checkout@v4
103+
uses: actions/checkout@v5
75104
if: env.DAPR_REF != ''
76105
with:
77106
repository: dapr/dapr
@@ -84,10 +113,17 @@ jobs:
84113
make
85114
sudo cp dist/linux_amd64/release/dapr /usr/local/bin/dapr
86115
cd ..
87-
- name: Initialize Dapr runtime ${{ env.DAPR_RUNTIME_VER }}
116+
- name: Uninstall Dapr runtime ${{ env.DAPR_RUNTIME_VER }}
117+
run: dapr uninstall --all
118+
- name: Ensure Dapr runtime uninstalled
88119
run: |
89-
dapr uninstall --all
90-
dapr init --runtime-version ${{ env.DAPR_RUNTIME_VER }}
120+
while [ "$(docker ps -aq --filter 'name=^/dapr')" ]; do
121+
echo "Waiting for Dapr containers to be deleted..."
122+
sleep 5
123+
done
124+
echo "All dapr containers are deleted."
125+
- name: Initialize Dapr runtime ${{ env.DAPR_RUNTIME_VER }}
126+
run: dapr init --runtime-version ${{ env.DAPR_RUNTIME_VER }}
91127
- name: Build and override daprd with referenced commit.
92128
if: env.DAPR_REF != ''
93129
run: |
@@ -112,33 +148,13 @@ jobs:
112148
wget -q ${{ env.TOXIPROXY_URL }} -O /home/runner/.local/bin/toxiproxy-server
113149
chmod +x /home/runner/.local/bin/toxiproxy-server
114150
/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
119-
- name: Unit tests
120-
run: ./mvnw test # making it temporarily verbose.
121-
env:
122-
DOCKER_HOST: ${{steps.setup_docker.outputs.sock}}
123-
- name: Codecov
124-
uses: codecov/codecov-action@v5.4.3
125-
- name: Install jars
126-
run: ./mvnw install -q -B -DskipTests
151+
- name: Clean up and install sdk
152+
run: ./mvnw clean install -B -q -DskipTests
127153
- name: Integration tests using spring boot version ${{ matrix.spring-boot-version }}
128154
id: integration_tests
129-
run: PRODUCT_SPRING_BOOT_VERSION=${{ matrix.spring-boot-version }} ./mvnw -B -Pintegration-tests verify
155+
run: PRODUCT_SPRING_BOOT_VERSION=${{ matrix.spring-boot-version }} ./mvnw -B -Pintegration-tests dependency:copy-dependencies verify
130156
env:
131157
DOCKER_HOST: ${{steps.setup_docker.outputs.sock}}
132-
- name: Upload test report for sdk
133-
uses: actions/upload-artifact@v4
134-
with:
135-
name: report-dapr-java-sdk-jdk${{ matrix.java }}-sb${{ matrix.spring-boot-version }}
136-
path: sdk/target/jacoco-report/
137-
- name: Upload test report for sdk-actors
138-
uses: actions/upload-artifact@v4
139-
with:
140-
name: report-dapr-java-sdk-actors-jdk${{ matrix.java }}-sb${{ matrix.spring-boot-version }}
141-
path: sdk-actors/target/jacoco-report/
142158
- name: Upload failsafe test report for sdk-tests on failure
143159
if: ${{ failure() && steps.integration_tests.conclusion == 'failure' }}
144160
uses: actions/upload-artifact@v4
@@ -154,7 +170,7 @@ jobs:
154170

155171
publish:
156172
runs-on: ubuntu-latest
157-
needs: build
173+
needs: [ build, test ]
158174
timeout-minutes: 30
159175
env:
160176
JDK_VER: 17
@@ -163,9 +179,9 @@ jobs:
163179
GPG_KEY: ${{ secrets.GPG_KEY }}
164180
GPG_PWD: ${{ secrets.GPG_PWD }}
165181
steps:
166-
- uses: actions/checkout@v4
182+
- uses: actions/checkout@v5
167183
- name: Set up OpenJDK ${{ env.JDK_VER }}
168-
uses: actions/setup-java@v4
184+
uses: actions/setup-java@v5
169185
with:
170186
distribution: 'temurin'
171187
java-version: ${{ env.JDK_VER }}
@@ -181,14 +197,11 @@ jobs:
181197
if: startswith(github.ref, 'refs/tags/v') && !contains(env.PARENT_VERSION, '-SNAPSHOT')
182198
run: |
183199
echo "DEPLOY_OSSRH=true" >> $GITHUB_ENV
184-
- name: Install jars
185-
if: env.DEPLOY_OSSRH == 'true'
186-
run: ./mvnw install -DskipTests -B -q
187200
- name: Publish to ossrh
188201
if: env.DEPLOY_OSSRH == 'true'
189202
run: |
190203
echo ${{ secrets.GPG_PRIVATE_KEY }} | base64 -d > private-key.gpg
191204
export GPG_TTY=$(tty)
192205
gpg --batch --import private-key.gpg
193-
./mvnw -V -B -Dgpg.skip=false -s settings.xml deploy
206+
./mvnw -V -B -Dgpg.skip=false -DskipTests -s settings.xml deploy
194207
curl -X POST https://ossrh-staging-api.central.sonatype.com/manual/upload/defaultRepository/io.dapr

.github/workflows/create-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ 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 }}
3636
persist-credentials: false
3737
- name: Set up OpenJDK ${{ env.JDK_VER }}
38-
uses: actions/setup-java@v4
38+
uses: actions/setup-java@v5
3939
with:
4040
distribution: 'temurin'
4141
java-version: ${{ env.JDK_VER }}

.github/workflows/dapr_bot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Comment analyzer
12-
uses: actions/github-script@v7
12+
uses: actions/github-script@v8
1313
with:
1414
github-token: ${{secrets.DAPR_BOT_TOKEN}}
1515
script: |

.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/fossa-action@v1.7.0 # Use a specific version if locking is preferred

.github/workflows/validate-docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ 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 }}
27-
uses: actions/setup-java@v4
27+
uses: actions/setup-java@v5
2828
with:
2929
distribution: 'temurin'
3030
java-version: ${{ env.JDK_VER }}

.github/workflows/validate.yml

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ 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.3
41+
DAPR_RUNTIME_VER: 1.16.0-rc.5
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 }}
48-
uses: actions/setup-java@v4
48+
uses: actions/setup-java@v5
4949
with:
5050
distribution: 'temurin'
5151
java-version: ${{ env.JDK_VER }}
@@ -58,18 +58,18 @@ jobs:
5858
run: wget -q ${{ env.DAPR_INSTALL_URL }} -O - | /bin/bash -s ${{ env.DAPR_CLI_VER }}
5959
- name: Set up Go ${{ env.GOVER }}
6060
if: env.DAPR_REF != '' || env.DAPR_CLI_REF != ''
61-
uses: actions/setup-go@v5
61+
uses: actions/setup-go@v6
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
@@ -82,10 +82,17 @@ jobs:
8282
make
8383
sudo cp dist/linux_amd64/release/dapr /usr/local/bin/dapr
8484
cd ..
85+
- name: Uninstall Dapr runtime ${{ env.DAPR_RUNTIME_VER }}
86+
run: dapr uninstall --all
87+
- name: Ensure Dapr runtime uninstalled
88+
run: |
89+
while [ "$(docker ps -aq --filter 'name=^/dapr')" ]; do
90+
echo "Waiting for Dapr containers to be deleted..."
91+
sleep 5
92+
done
93+
echo "All dapr containers are deleted."
8594
- name: Initialize Dapr runtime ${{ env.DAPR_RUNTIME_VER }}
86-
run: |
87-
dapr uninstall --all
88-
dapr init --runtime-version ${{ env.DAPR_RUNTIME_VER }}
95+
run: dapr init --runtime-version ${{ env.DAPR_RUNTIME_VER }}
8996
- name: Build and override daprd with referenced commit.
9097
if: env.DAPR_REF != ''
9198
run: |
@@ -123,8 +130,8 @@ jobs:
123130
mm.py README.md
124131
env:
125132
DOCKER_HOST: ${{steps.setup_docker.outputs.sock}}
126-
- name: Validate Spring Boot Workflow examples
127-
working-directory: ./spring-boot-examples/workflows
133+
- name: Validate Spring Boot Workflow Patterns examples
134+
working-directory: ./spring-boot-examples/workflows/patterns
128135
run: |
129136
mm.py README.md
130137
env:

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.15.0</version>
53+
<version>1.16.0</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.15.0</version>
59+
<version>1.16.0</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.15.0</version>
65+
<version>1.16.0</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.15.0')
79+
compile('io.dapr:dapr-sdk:1.16.0')
8080
// Dapr's SDK for Actors (optional).
81-
compile('io.dapr:dapr-sdk-actors:1.15.0')
81+
compile('io.dapr:dapr-sdk-actors:1.16.0')
8282
// Dapr's SDK integration with SpringBoot (optional).
83-
compile('io.dapr:dapr-sdk-springboot:1.15.0')
83+
compile('io.dapr:dapr-sdk-springboot:1.16.0')
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>1.17.0-SNAPSHOT</version>
1010
</parent>
1111

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

0 commit comments

Comments
 (0)