Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Spring Boot 3 and Java 17 #894

Closed
wants to merge 15 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
strategy:
fail-fast: false
matrix:
java: [ 11, 13, 15, 16 ]
spring-boot-version: [ 2.7.8 ]
java: [ 11, 13, 15, 16, 17 ]
spring-boot-version: [ 2.7.8, 3.1.2 ]
experimental: [ false ]
include:
- java: 11
Expand All @@ -37,6 +37,9 @@ jobs:
- java: 11
spring-boot-version: 2.3.6.RELEASE
experimental: false
- java: 17
spring-boot-version: 3.1.2
experimental: false
env:
GOVER: "1.20"
GOOS: linux
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
strategy:
fail-fast: false # Keep running if one leg fails.
matrix:
java: [ 11, 13, 15, 16 ]
java: [ 11, 13, 15, 16, 17 ]
env:
GOVER: "1.20"
GOOS: linux
Expand Down
3 changes: 3 additions & 0 deletions .sdkmanrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Enable auto-env through the sdkman_auto_env config
# Add key=value pairs of SDKs to use below
java=11.0.19-tem
23 changes: 12 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,8 @@ This is the Dapr SDK for Java, including the following features:
## Getting Started

### Pre-Requisites
* JDK 11 or above - the published jars are compatible with Java 8:
* [Microsoft JDK 11](https://docs.microsoft.com/en-us/java/openjdk/download#openjdk-11)
* [AdoptOpenJDK 11 - LTS](https://adoptopenjdk.net/)
* [Oracle's JDK 11 - LTS](https://www.oracle.com/java/technologies/javase-jdk11-downloads.html)
* [OpenJDK](https://openjdk.java.net/)
* SDKMAN! installed (recommended):
* [SDKMAN!](https://sdkman.io)
* Java IDE installed:
* [IntelliJ](https://www.jetbrains.com/idea/download/)
* [Eclipse](https://www.eclipse.org/downloads/)
Expand All @@ -41,6 +38,10 @@ This is the Dapr SDK for Java, including the following features:
* [New Maven project in IntelliJ](https://www.jetbrains.com/help/idea/maven-support.html#create_new_maven_project)
* [Maven in 5 minutes](https://maven.apache.org/guides/getting-started/maven-in-five-minutes.html)

### Install JDK

If using [SDKMAN!](https://sdkman.io), execute `sdk env install` to install the required JDK.

### Importing Dapr's Java SDK
For a Maven project, add the following to your `pom.xml` file:
```xml
Expand All @@ -52,19 +53,19 @@ For a Maven project, add the following to your `pom.xml` file:
<dependency>
<groupId>io.dapr</groupId>
<artifactId>dapr-sdk</artifactId>
<version>1.8.0</version>
<version>1.9.0</version>
</dependency>
<!-- Dapr's SDK for Actors (optional). -->
<dependency>
<groupId>io.dapr</groupId>
<artifactId>dapr-sdk-actors</artifactId>
<version>1.8.0</version>
<version>1.9.0</version>
</dependency>
<!-- Dapr's SDK integration with SpringBoot (optional). -->
<dependency>
<groupId>io.dapr</groupId>
<artifactId>dapr-sdk-springboot</artifactId>
<version>1.8.0</version>
<version>1.9.0</version>
</dependency>
...
</dependencies>
Expand All @@ -78,11 +79,11 @@ For a Gradle project, add the following to your `build.gradle` file:
dependencies {
...
// Dapr's core SDK with all features, except Actors.
compile('io.dapr:dapr-sdk:1.8.0')
compile('io.dapr:dapr-sdk:1.9.0')
// Dapr's SDK for Actors (optional).
compile('io.dapr:dapr-sdk-actors:1.8.0')
compile('io.dapr:dapr-sdk-actors:1.9.0')
// Dapr's SDK integration with SpringBoot (optional).
compile('io.dapr:dapr-sdk-springboot:1.8.0')
compile('io.dapr:dapr-sdk-springboot:1.9.0')
}
```

Expand Down
17 changes: 11 additions & 6 deletions daprdocs/content/en/java-sdk-docs/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ title: "Dapr Java SDK"
linkTitle: "Java"
weight: 1000
description: Java SDK packages for developing Dapr applications
cascade:
github_repo: https://github.com/dapr/java-sdk
github_subdir: daprdocs/content/en/java-sdk-docs
path_base_for_github_subdir: content/en/developing-applications/sdks/java/
github_branch: master
---

## Pre-requisites
Expand Down Expand Up @@ -31,19 +36,19 @@ For a Maven project, add the following to your `pom.xml` file:
<dependency>
<groupId>io.dapr</groupId>
<artifactId>dapr-sdk</artifactId>
<version>1.8.0</version>
<version>1.9.0</version>
</dependency>
<!-- Dapr's SDK for Actors (optional). -->
<dependency>
<groupId>io.dapr</groupId>
<artifactId>dapr-sdk-actors</artifactId>
<version>1.8.0</version>
<version>1.9.0</version>
</dependency>
<!-- Dapr's SDK integration with SpringBoot (optional). -->
<dependency>
<groupId>io.dapr</groupId>
<artifactId>dapr-sdk-springboot</artifactId>
<version>1.8.0</version>
<version>1.9.0</version>
</dependency>
...
</dependencies>
Expand All @@ -57,11 +62,11 @@ For a Gradle project, add the following to your `build.gradle` file:
dependencies {
...
// Dapr's core SDK with all features, except Actors.
compile('io.dapr:dapr-sdk:1.8.0')
compile('io.dapr:dapr-sdk:1.9.0')
// Dapr's SDK for Actors (optional).
compile('io.dapr:dapr-sdk-actors:1.8.0')
compile('io.dapr:dapr-sdk-actors:1.9.0')
// Dapr's SDK integration with SpringBoot (optional).
compile('io.dapr:dapr-sdk-springboot:1.8.0')
compile('io.dapr:dapr-sdk-springboot:1.9.0')
}
```

Expand Down
Loading