Skip to content

Commit 1bfb15f

Browse files
authored
Merge branch 'master' into users/svegiraju/conversation-ai
2 parents c2beec1 + 8fa4e9d commit 1bfb15f

File tree

50 files changed

+706
-443
lines changed

Some content is hidden

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

50 files changed

+706
-443
lines changed

.github/scripts/update_sdk_version.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +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
29-
mvn versions:set-property -Dproperty=dapr.spring.version -DnewVersion=$DAPR_JAVA_SDK_ALPHA_VERSION -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
3030

3131
# spring-boot-examples
32-
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
3333

3434
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: 40 additions & 34 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
34+
- name: Codecov
35+
uses: codecov/[email protected]
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
@@ -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,9 +79,9 @@ 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 }}
@@ -64,14 +93,14 @@ jobs:
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
@@ -112,33 +141,13 @@ jobs:
112141
wget -q ${{ env.TOXIPROXY_URL }} -O /home/runner/.local/bin/toxiproxy-server
113142
chmod +x /home/runner/.local/bin/toxiproxy-server
114143
/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/[email protected]
125-
- name: Install jars
126-
run: ./mvnw install -q -B -DskipTests
144+
- name: Clean up and install sdk
145+
run: ./mvnw clean install -B -q -DskipTests
127146
- name: Integration tests using spring boot version ${{ matrix.spring-boot-version }}
128147
id: integration_tests
129148
run: PRODUCT_SPRING_BOOT_VERSION=${{ matrix.spring-boot-version }} ./mvnw -B -Pintegration-tests verify
130149
env:
131150
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/
142151
- name: Upload failsafe test report for sdk-tests on failure
143152
if: ${{ failure() && steps.integration_tests.conclusion == 'failure' }}
144153
uses: actions/upload-artifact@v4
@@ -154,7 +163,7 @@ jobs:
154163

155164
publish:
156165
runs-on: ubuntu-latest
157-
needs: build
166+
needs: [ build, test ]
158167
timeout-minutes: 30
159168
env:
160169
JDK_VER: 17
@@ -163,9 +172,9 @@ jobs:
163172
GPG_KEY: ${{ secrets.GPG_KEY }}
164173
GPG_PWD: ${{ secrets.GPG_PWD }}
165174
steps:
166-
- uses: actions/checkout@v4
175+
- uses: actions/checkout@v5
167176
- name: Set up OpenJDK ${{ env.JDK_VER }}
168-
uses: actions/setup-java@v4
177+
uses: actions/setup-java@v5
169178
with:
170179
distribution: 'temurin'
171180
java-version: ${{ env.JDK_VER }}
@@ -181,14 +190,11 @@ jobs:
181190
if: startswith(github.ref, 'refs/tags/v') && !contains(env.PARENT_VERSION, '-SNAPSHOT')
182191
run: |
183192
echo "DEPLOY_OSSRH=true" >> $GITHUB_ENV
184-
- name: Install jars
185-
if: env.DEPLOY_OSSRH == 'true'
186-
run: ./mvnw install -DskipTests -B -q
187193
- name: Publish to ossrh
188194
if: env.DEPLOY_OSSRH == 'true'
189195
run: |
190196
echo ${{ secrets.GPG_PRIVATE_KEY }} | base64 -d > private-key.gpg
191197
export GPG_TTY=$(tty)
192198
gpg --batch --import private-key.gpg
193-
./mvnw -V -B -Dgpg.skip=false -s settings.xml deploy
199+
./mvnw -V -B -Dgpg.skip=false -DskipTests -s settings.xml deploy
194200
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/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: 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: 5 additions & 5 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 }}
@@ -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

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.17.0-SNAPSHOT</version>
9+
<version>1.17.0-SNAPSHOT</version>
1010
</parent>
1111

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

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.17.0-SNAPSHOT</version>
9+
<version>1.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.17.0-SNAPSHOT</version>
9+
<version>1.17.0-SNAPSHOT</version>
1010
<relativePath>../../pom.xml</relativePath>
1111
</parent>
1212

0 commit comments

Comments
 (0)