We're pleased to announce the release of the Java SDK 1.2.0
New features
- We now have a new Spring Boot to easily use the Restate SDK within your Spring Boot application. For more details, check out the example: https://github.com/restatedev/examples/tree/main/templates/java-maven-spring-boot
- The
sdk-testing
package has been revamped to a more friendly and easier to use API, you can check it out here https://github.com/restatedev/examples/blob/9a9c7cf85c830f33a5f257db3ec986a09a1878b0/templates/java-gradle/src/test/java/my/example/GreeterTest.java. The old API is still available but it's now deprecated, and will be removed in subsequent releases.
Notable changes
- The
ctx.run
withRetryPolicy
has been promoted to stable feature, check the Javadocs for more details. - You can now use checked exceptions within your
@Handler
annotated methods.
Breaking changes
- Bumped minimum JDK version to 17
- This release is not bytecode compatible with previous releases, meaning you can't mix the annotation processor generated code from SDK <= 1.2.0 with this release.
- This release is compatible with Restate >= 1.1
Changelog
- [Release] Bump to 1.2.0-SNAPSHOT by @github-actions in #383
- Enable RawHandler test by @slinkydeveloper in #385
- New test tool with new action by @slinkydeveloper in #387
- Improve testing tools Javadocs by @slinkydeveloper in #388
- Fix builds by @slinkydeveloper in #389
- Introduce Spring Boot starter by @slinkydeveloper in #393
- Spring boot improvements by @slinkydeveloper in #394
- Add Json Schema for Req/Res types by @slinkydeveloper in #395
- Add documentation and metadata fields to EndpointManifest by @slinkydeveloper in #397
- Add title for classes by @slinkydeveloper in #398
- Bump minimum JDK to 17 by @slinkydeveloper in #400
- Bump minimum protocol version to 2 by @slinkydeveloper in #401
- Fix case where we pass ServiceDefinition to the builder already by @slinkydeveloper in #402
- Simple Json Schemas for Kotlin by @slinkydeveloper in #403
- Allow checked exceptions in annotated services by @slinkydeveloper in #407
- Fix code generation warning by @slinkydeveloper in #408
- More dependency bumping by @slinkydeveloper in #409
- Fix bad source version in ServiceProcessor by @slinkydeveloper in #410
- Be lenient with ServiceLoader not able to load classes by @slinkydeveloper in #411
- Few little improvements to testing by @slinkydeveloper in #413
- [Release] Bump to 1.2.0 by @github-actions in #412
Full Changelog: v1.1.1...v1.2.0