Skip to content

Commit 235a522

Browse files
committed
merge master and resolve conflicts
Signed-off-by: MregXN <[email protected]>
2 parents 6fa9937 + 87a2eb5 commit 235a522

File tree

1,296 files changed

+85660
-10475
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,296 files changed

+85660
-10475
lines changed

.github/holopin.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
organization: dapr
2+
defaultSticker: clmjkxscc122740fl0mkmb7egi
3+
stickers:
4+
-
5+
id: clmjkxscc122740fl0mkmb7egi
6+
alias: ghc2023

.github/workflows/build.yml

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ jobs:
4343
GOARCH: amd64
4444
GOPROXY: https://proxy.golang.org
4545
JDK_VER: ${{ matrix.java }}
46-
DAPR_CLI_VER: 1.11.0-rc.1
47-
DAPR_RUNTIME_VER: 1.11.0-rc.5
48-
DAPR_INSTALL_URL: https://raw.githubusercontent.com/dapr/cli/v1.11.0-rc.1/install/install.sh
46+
DAPR_CLI_VER: 1.12.0-rc.1
47+
DAPR_RUNTIME_VER: 1.12.0-rc.5
48+
DAPR_INSTALL_URL: https://raw.githubusercontent.com/dapr/cli/v1.12.0-rc.1/install/install.sh
4949
DAPR_CLI_REF:
5050
DAPR_REF:
5151
TOXIPROXY_URL: https://github.com/Shopify/toxiproxy/releases/download/v2.5.0/toxiproxy-server-linux-amd64
@@ -102,13 +102,9 @@ jobs:
102102
docker stop dapr_placement
103103
cd dapr
104104
./dist/linux_amd64/release/placement &
105-
- name: Install local Kafka using docker-compose
105+
- name: Spin local environment
106106
run: |
107-
docker-compose -f ./sdk-tests/deploy/local-test-kafka.yml up -d
108-
docker ps
109-
- name: Install local Mongo database using docker-compose
110-
run: |
111-
docker-compose -f ./sdk-tests/deploy/local-test-mongo.yml up -d
107+
docker-compose -f ./sdk-tests/deploy/local-test.yml up -d mongo kafka
112108
docker ps
113109
- name: Install local ToxiProxy to simulate connectivity issues to Dapr sidecar
114110
run: |
@@ -117,18 +113,18 @@ jobs:
117113
chmod +x /home/runner/.local/bin/toxiproxy-server
118114
/home/runner/.local/bin/toxiproxy-server --version
119115
- name: Clean up files
120-
run: mvn clean -B
116+
run: ./mvnw clean -B
121117
- name: Build sdk
122-
run: mvn compile -B -q
118+
run: ./mvnw compile -B -q
123119
- name: Unit tests
124-
run: mvn -B test -q
120+
run: ./mvnw -B test -q
125121
- name: Codecov
126122
uses: codecov/[email protected]
127123
- name: Install jars
128-
run: mvn install -q -B -DskipTests
124+
run: ./mvnw install -q -B -DskipTests
129125
- name: Integration tests using spring boot version ${{ matrix.spring-boot-version }}
130126
id: integration_tests
131-
run: PRODUCT_SPRING_BOOT_VERSION=${{ matrix.spring-boot-version }} mvn -B -f sdk-tests/pom.xml verify
127+
run: PRODUCT_SPRING_BOOT_VERSION=${{ matrix.spring-boot-version }} ./mvnw -B -f sdk-tests/pom.xml verify
132128
- name: Upload test report for sdk
133129
uses: actions/upload-artifact@master
134130
with:
@@ -170,7 +166,7 @@ jobs:
170166
java-version: ${{ env.JDK_VER }}
171167
- name: Get pom parent version
172168
run: |
173-
PARENT_VERSION=$(mvn -B -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)
169+
PARENT_VERSION=$(./mvnw -B -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)
174170
echo "PARENT_VERSION=$PARENT_VERSION" >> $GITHUB_ENV
175171
- name: Is SNAPSHOT release ?
176172
if: contains(github.ref, 'master') && contains(env.PARENT_VERSION, '-SNAPSHOT')
@@ -182,11 +178,11 @@ jobs:
182178
echo "DEPLOY_OSSRH=true" >> $GITHUB_ENV
183179
- name: Install jars
184180
if: env.DEPLOY_OSSRH == 'true'
185-
run: mvn clean install -B -q
181+
run: ./mvnw clean install -B -q
186182
- name: Publish to ossrh
187183
if: env.DEPLOY_OSSRH == 'true'
188184
run: |
189185
echo ${{ secrets.GPG_PRIVATE_KEY }} | base64 -d > private-key.gpg
190186
export GPG_TTY=$(tty)
191187
gpg --batch --import private-key.gpg
192-
mvn -V -B -Dgpg.skip=false -s settings.xml deploy -pl \!examples
188+
./mvnw -V -B -Dgpg.skip=false -s settings.xml deploy -pl \!examples

.github/workflows/validate.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ jobs:
3737
GOARCH: amd64
3838
GOPROXY: https://proxy.golang.org
3939
JDK_VER: ${{ matrix.java }}
40-
DAPR_CLI_VER: 1.11.0-rc.1
41-
DAPR_RUNTIME_VER: 1.11.0-rc.5
42-
DAPR_INSTALL_URL: https://raw.githubusercontent.com/dapr/cli/v1.11.0-rc.1/install/install.sh
40+
DAPR_CLI_VER: 1.12.0-rc.1
41+
DAPR_RUNTIME_VER: 1.12.0-rc.5
42+
DAPR_INSTALL_URL: https://raw.githubusercontent.com/dapr/cli/v1.12.0-rc.1/install/install.sh
4343
DAPR_CLI_REF:
4444
DAPR_REF:
4545
steps:
@@ -102,14 +102,14 @@ jobs:
102102
pip3 install mechanical-markdown
103103
- name: Install Local mongo database using docker-compose
104104
run: |
105-
docker-compose -f ./sdk-tests/deploy/local-test-mongo.yml up -d
105+
docker-compose -f ./sdk-tests/deploy/local-test.yml up -d mongo
106106
docker ps
107107
- name: Clean up files
108-
run: mvn clean
108+
run: ./mvnw clean
109109
- name: Build sdk
110-
run: mvn compile -q
110+
run: ./mvnw compile -q
111111
- name: Install jars
112-
run: mvn install -q
112+
run: ./mvnw install -q
113113
- name: Validate invoke http example
114114
working-directory: ./examples
115115
run: |

.mvn/wrapper/maven-wrapper.properties

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.5/apache-maven-3.8.5-bin.zip
18+
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar

.sdkmanrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# Enable auto-env through the sdkman_auto_env config
22
# Add key=value pairs of SDKs to use below
3-
java=11.0.19-tem
3+
java=11.0.19-tem
4+
maven=3.8.5

README.md

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -53,19 +53,19 @@ For a Maven project, add the following to your `pom.xml` file:
5353
<dependency>
5454
<groupId>io.dapr</groupId>
5555
<artifactId>dapr-sdk</artifactId>
56-
<version>1.9.0</version>
56+
<version>1.10.0</version>
5757
</dependency>
5858
<!-- Dapr's SDK for Actors (optional). -->
5959
<dependency>
6060
<groupId>io.dapr</groupId>
6161
<artifactId>dapr-sdk-actors</artifactId>
62-
<version>1.9.0</version>
62+
<version>1.10.0</version>
6363
</dependency>
6464
<!-- Dapr's SDK integration with SpringBoot (optional). -->
6565
<dependency>
6666
<groupId>io.dapr</groupId>
6767
<artifactId>dapr-sdk-springboot</artifactId>
68-
<version>1.9.0</version>
68+
<version>1.10.0</version>
6969
</dependency>
7070
...
7171
</dependencies>
@@ -79,11 +79,11 @@ For a Gradle project, add the following to your `build.gradle` file:
7979
dependencies {
8080
...
8181
// Dapr's core SDK with all features, except Actors.
82-
compile('io.dapr:dapr-sdk:1.9.0')
82+
compile('io.dapr:dapr-sdk:1.10.0')
8383
// Dapr's SDK for Actors (optional).
84-
compile('io.dapr:dapr-sdk-actors:1.9.0')
84+
compile('io.dapr:dapr-sdk-actors:1.10.0')
8585
// Dapr's SDK integration with SpringBoot (optional).
86-
compile('io.dapr:dapr-sdk-springboot:1.9.0')
86+
compile('io.dapr:dapr-sdk-springboot:1.10.0')
8787
}
8888
```
8989

@@ -98,7 +98,7 @@ Then head over to build the [Maven](https://maven.apache.org/install.html) (Apac
9898

9999
```sh
100100
# make sure you are in the `java-sdk` directory.
101-
mvn clean install
101+
./mvnw clean install
102102
```
103103

104104
Try the following examples to learn more about Dapr's Java SDK:
@@ -195,7 +195,7 @@ Most exceptions thrown from the SDK are instances of `DaprException`. `DaprExcep
195195
### Update URL to fetch proto files
196196
197197
Change the `dapr.proto.baseurl` property below in [pom.xml](./pom.xml) to point to the URL for the desired commit hash in Git if you need to target a proto file that is not been merged into master yet.
198-
Note: You may need to run `mvn clean` after changing this setting to remove any auto-generated files so that the new proto files get downloaded and compiled.
198+
Note: You may need to run `./mvnw clean` after changing this setting to remove any auto-generated files so that the new proto files get downloaded and compiled.
199199
200200
```xml
201201
<project>
@@ -229,7 +229,7 @@ Along with the pre-requisites for [SDK](#pre-requisites) the following are neede
229229
The code for the tests are present inside the project [sdk-tests](./sdk-tests). This module alone can be imported as a separate project in IDEs.
230230
This project depends on the rest of the JARs built by the other modules in the repo like [sdk](./sdk), [sdk-springboot](./sdk-springboot) etc.
231231
232-
As a starting point for running Integration Tests, first run `mvn clean install` from the root of the repo to build the JARs for the different modules
232+
As a starting point for running Integration Tests, first run `./mvnw clean install` from the root of the repo to build the JARs for the different modules
233233
except the `sdk-tests` module.
234234
235235
#### Run all the dependent services spun up during build
@@ -241,17 +241,13 @@ Similarly, all of these need to be run for running the ITs either individually o
241241
Run the following commands from the root of the repo to start all the docker containers that the tests depend on.
242242
243243
```bash
244-
docker-compose -f ./sdk-tests/deploy/local-test-kafka.yml up -d
245-
docker-compose -f ./sdk-tests/deploy/local-test-mongo.yml up -d
246-
docker-compose -f ./sdk-tests/deploy/local-test-vault.yml up -d
244+
docker-compose -f ./sdk-tests/deploy/local-test.yml up -d
247245
```
248246
249247
To stop the containers and services, run the following commands.
250248
251249
```bash
252-
docker-compose -f ./sdk-tests/deploy/local-test-kafka.yml down
253-
docker-compose -f ./sdk-tests/deploy/local-test-mongo.yml down
254-
docker-compose -f ./sdk-tests/deploy/local-test-vault.yml down
250+
docker-compose -f ./sdk-tests/deploy/local-test.yml down
255251
```
256252
257253
@@ -261,7 +257,7 @@ From the `java-sdk` repo root, change to the `sdk-tests` directory and run the f
261257
```bash
262258
## with current directory as /java-sdk/sdk-tests/
263259
264-
mvn clean install
260+
../mvnw clean install
265261
```
266262
267263
The above command runs all the integration tests present in the `sdk-tests` project.

0 commit comments

Comments
 (0)