Skip to content

Commit 8e508e4

Browse files
committed
Merge branch 'master' of https://github.com/siri-varma/java-sdk into users/svegiraju/conversation-ai
2 parents d4650ad + 04b19e1 commit 8e508e4

File tree

1,199 files changed

+11375
-8156
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,199 files changed

+11375
-8156
lines changed

.github/scripts/update_sdk_version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ 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
2929

3030
# spring-boot-examples
3131
mvn versions:set -DnewVersion=$DAPR_JAVA_SDK_ALPHA_VERSION -f spring-boot-examples/pom.xml

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.2</version>
53+
<version>1.15.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.14.2</version>
59+
<version>1.15.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.14.2</version>
65+
<version>1.15.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.14.2')
79+
compile('io.dapr:dapr-sdk:1.15.0')
8080
// Dapr's SDK for Actors (optional).
81-
compile('io.dapr:dapr-sdk-actors:1.14.2')
81+
compile('io.dapr:dapr-sdk-actors:1.15.0')
8282
// Dapr's SDK integration with SpringBoot (optional).
83-
compile('io.dapr:dapr-sdk-springboot:1.14.2')
83+
compile('io.dapr:dapr-sdk-springboot:1.15.0')
8484
}
8585
```
8686

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)

daprdocs/content/en/java-sdk-docs/_index.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,19 @@ For a Maven project, add the following to your `pom.xml` file:
4646
<dependency>
4747
<groupId>io.dapr</groupId>
4848
<artifactId>dapr-sdk</artifactId>
49-
<version>1.14.2</version>
49+
<version>1.15.0</version>
5050
</dependency>
5151
<!-- Dapr's SDK for Actors (optional). -->
5252
<dependency>
5353
<groupId>io.dapr</groupId>
5454
<artifactId>dapr-sdk-actors</artifactId>
55-
<version>1.14.2</version>
55+
<version>1.15.0</version>
5656
</dependency>
5757
<!-- Dapr's SDK integration with SpringBoot (optional). -->
5858
<dependency>
5959
<groupId>io.dapr</groupId>
6060
<artifactId>dapr-sdk-springboot</artifactId>
61-
<version>1.14.2</version>
61+
<version>1.15.0</version>
6262
</dependency>
6363
...
6464
</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.2')
79+
compile('io.dapr:dapr-sdk:1.15.0')
8080
// Dapr's SDK for Actors (optional).
81-
compile('io.dapr:dapr-sdk-actors:1.14.2')
81+
compile('io.dapr:dapr-sdk-actors:1.15.0')
8282
// Dapr's SDK integration with SpringBoot (optional).
83-
compile('io.dapr:dapr-sdk-springboot:1.14.2')
83+
compile('io.dapr:dapr-sdk-springboot:1.15.0')
8484
}
8585
```
8686

@@ -96,7 +96,7 @@ You can fix this by specifying a compatible `OkHttp` version in your project to
9696
<dependency>
9797
<groupId>com.squareup.okhttp3</groupId>
9898
<artifactId>okhttp</artifactId>
99-
<version>1.14.2</version>
99+
<version>1.15.0</version>
100100
</dependency>
101101
```
102102

daprdocs/content/en/java-sdk-docs/spring-boot/_index.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ If you already have a Spring Boot application, you can directly add the followin
2626
<dependency>
2727
<groupId>io.dapr.spring</groupId>
2828
<artifactId>dapr-spring-boot-starter</artifactId>
29-
<version>0.14.2</version>
29+
<version>0.15.0</version>
3030
</dependency>
3131
<dependency>
3232
<groupId>io.dapr.spring</groupId>
3333
<artifactId>dapr-spring-boot-starter-test</artifactId>
34-
<version>0.14.2</version>
34+
<version>0.15.0</version>
3535
<scope>test</scope>
3636
</dependency>
3737
```
@@ -56,13 +56,13 @@ This will connect to the default Dapr gRPC endpoint `localhost:50001`, requiring
5656
{{% alert title="Note" color="primary" %}}
5757
By default, the following properties are preconfigured for `DaprClient` and `DaprWorkflowClient`:
5858
```properties
59-
dapr.client.http-endpoint=http://localhost
60-
dapr.client.http-port=3500
61-
dapr.client.grpc-endpoint=localhost
62-
dapr.client.grpc-port=50001
63-
dapr.client.api-token=<Your Remote App API Token>
59+
dapr.client.httpEndpoint=http://localhost
60+
dapr.client.httpPort=3500
61+
dapr.client.grpcEndpoint=localhost
62+
dapr.client.grpcPort=50001
63+
dapr.client.apiToken=<your remote api token>
6464
```
65-
These values are used by default, but you can override them in your `application.properties` file to suit your environment.
65+
These values are used by default, but you can override them in your `application.properties` file to suit your environment. Please note that both kebab case and camel case are supported.
6666
{{% /alert %}}
6767

6868
You can use the `DaprClient` to interact with the Dapr APIs anywhere in your application, for example from inside a REST endpoint:

0 commit comments

Comments
 (0)