Commit Graph

536 Commits

Author SHA1 Message Date
Mukundan Sundararajan 05bf66e0d4
Add auto-assign dapr_bot workflow (#654) 2021-11-12 14:22:23 -08:00
Maarten Mulders be7edb17f6
Migrated out of JCenter as a Maven repository manager (#648)
* Upgrade okhttp-mock dependency

Version 1.3.2 was never deployed to Maven Central

* No longer refer to JCenter, as it has been shut down
2021-10-29 14:51:10 -07:00
Artur Souza b7c3bea202
Generate updated javadocs for 1.3.1 (#643) 2021-10-18 14:00:44 -07:00
Artur Souza 6ee25196fd
Split build and publish steps in pipeline. (#644)
* Split build and publish steps in pipeline.

* Update build.yml
2021-10-14 10:57:32 -07:00
Artur Souza 8404b77d8c
Filter out headers not required for W3C in service invocation. (#642) 2021-10-11 17:22:38 -07:00
dependabot[bot] ed43ba20c0
Bump codecov/codecov-action from 2.0.3 to 2.1.0 (#635)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 2.0.3 to 2.1.0.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v2.0.3...v2.1.0)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-11 16:26:22 -07:00
Ian Luo 5f4ee05d64
Add a new integration test to validate that the built jars are compatible with Java 8. #602 (#636)
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-10-06 13:00:48 -07:00
dependabot[bot] 8d9a171be8
Bump actions/setup-java from 2.3.0 to 2.3.1 (#637)
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 2.3.0 to 2.3.1.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v2.3.0...v2.3.1)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-06 11:52:36 -07:00
Artur Souza 680915e832
Fix PubSubIT due to race in map. (#634) 2021-09-17 16:26:42 -07:00
Artur Souza addf6029c0
Generate updated javadocs for 1.3.0 (#633) 2021-09-17 15:54:13 -07:00
Artur Souza ed1fac1f89
Upgrade the version to 1.4.0-SNAPSHOT (#632) 2021-09-15 22:03:12 -07:00
Artur Souza 3561d68e6b
Update dapr and proto version to 1.4 RCs. (#628)
* Update dapr and proto version to 1.4 RCs.

* Fix publish to only run with JDK 11.
2021-09-10 15:55:03 -07:00
dependabot[bot] e22de39f43
Bump actions/setup-java from 2.2.0 to 2.3.0 (#610)
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 2.2.0 to 2.3.0.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v2.2.0...v2.3.0)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mukundan Sundararajan <musundar@microsoft.com>
2021-08-30 22:30:38 -07:00
Robert LU 9c85a0f78e
Update pom.xml example (#611)
* Update version of sdk
* Use xml format comment

Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2021-08-30 17:01:09 -07:00
dependabot[bot] bab9d85620
Bump codecov/codecov-action from 2.0.2 to 2.0.3 (#609)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 2.0.2 to 2.0.3.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v2.0.2...v2.0.3)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-30 16:00:52 -07:00
Maarten Mulders 70e18d8b5a
Prepare build for Java16 (#598)
* Upgrade Mockito to latest version

* Run GitHub Actions on Java 11 and 16

* Run JUnit tests with `--add-opens java.base/java.util=ALL-UNNAMED`

* Move Surefire JVM arguments to Maven property

* Update build.yml

* Update validate.yml

* simplily build singleton dapr http (#590)

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>

* Add Automerge workflow (#605)

* Add Automerge workflow

The automerge workflow will check for complete and approved pull requests and will merge them automatically.

Sources:
- For the python script to execute the merge: https://raw.githubusercontent.com/dapr/dapr/master/.github/scripts/automerge.py (only changed the label from "automerge" to "auto-merge")
- https://raw.githubusercontent.com/dapr/dapr/master/.github/workflows/dapr-bot-schedule.yml (only copied the automerge part, not the prune_stale part as that was not part of the issue.

Resolves https://github.com/dapr/java-sdk/issues/603

* Update automerge-bot.yml

* Update automerge-bot.yml

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>

* Cleanup Maven POM files (#604)

Added fixed versions for maven-deploy-plugin & spring-boot-maven-plugin as this would otherwise break in a future maven version.

Also fixed some indenting and removed duplicate declarations.

Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>

* Add support for @PostMapping("/path") to pub/sub topic subscriptions (#583)

* Remove duplicate dependency

* Transform into managed dependencies

* Remove old JUnit version from dependencies

* Add tests for DaprBeanPostProcessor

* Also register PostMappings that use value

* Modify existing pub/sub test to no use @PostMapping(path="...")

* Remove added dependencies on AssertJ, Spring Test and Servlet API

* Remove test in favour of the sdk-tests one

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>

* Run JUnit tests in all modules with java.base/java.util and java.base/java.lang opened to all modules

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: 浩 <inf2inf2@outlook.com>
Co-authored-by: Tom Cools <tom.cools@live.be>
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2021-08-30 15:32:32 -07:00
Maarten Mulders 93dbbbb3ab
Advise how to resolve OkHttp version conflict with Spring Boot (#589)
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2021-08-24 15:12:17 -07:00
Maarten Mulders 3c3a5277d6
Add support for @PostMapping("/path") to pub/sub topic subscriptions (#583)
* Remove duplicate dependency

* Transform into managed dependencies

* Remove old JUnit version from dependencies

* Add tests for DaprBeanPostProcessor

* Also register PostMappings that use value

* Modify existing pub/sub test to no use @PostMapping(path="...")

* Remove added dependencies on AssertJ, Spring Test and Servlet API

* Remove test in favour of the sdk-tests one

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-08-20 19:37:18 -07:00
Tom Cools ac93218c5a
Cleanup Maven POM files (#604)
Added fixed versions for maven-deploy-plugin & spring-boot-maven-plugin as this would otherwise break in a future maven version.

Also fixed some indenting and removed duplicate declarations.

Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2021-08-20 19:07:31 -07:00
Tom Cools a9397abce0
Add Automerge workflow (#605)
* Add Automerge workflow

The automerge workflow will check for complete and approved pull requests and will merge them automatically.

Sources:
- For the python script to execute the merge: https://raw.githubusercontent.com/dapr/dapr/master/.github/scripts/automerge.py (only changed the label from "automerge" to "auto-merge")
- https://raw.githubusercontent.com/dapr/dapr/master/.github/workflows/dapr-bot-schedule.yml (only copied the automerge part, not the prune_stale part as that was not part of the issue.

Resolves https://github.com/dapr/java-sdk/issues/603

* Update automerge-bot.yml

* Update automerge-bot.yml

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-08-20 18:27:33 -07:00
34bf149a1a
simplily build singleton dapr http (#590)
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-08-20 16:21:40 -07:00
Mukundan Sundararajan f199afba95
deprecate builders and add setters for domain classes (#596)
* deprecate builders and add setters for domain classes
exclude builders from coverage checks
properly set parallelism for getbulkstaterequest
Initialize default metadata to empty HashMap PublishEventRequest
Decrease code coeverage ratio for dapr-sdk

* Fix casing
2021-08-20 14:54:01 -07:00
dependabot[bot] d423e326f3
Bump actions/setup-java from 2.1.0 to 2.2.0 (#595)
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 2.1.0 to 2.2.0.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v2.1.0...v2.2.0)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-17 15:23:14 -07:00
Maarten Mulders ae5c2a1314
Declare CloudEvent generic to allow automatic payload deserialization using Jackson (#591)
* Declare CloudEvent generic

* Fix timestamp in logging

* Declare Spring Boot version once

* Simplify administration of received events

* Update docs

* Always return a list, even if it's empty

Rather than returning `null` when no
messages are present for a topic.
2021-08-13 13:52:37 -07:00
dependabot[bot] df54a5dc2c
Bump codecov/codecov-action from 1 to 2.0.2 (#584)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 1 to 2.0.2.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v1...v2.0.2)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Mukundan Sundararajan <musundar@microsoft.com>
2021-07-30 11:52:22 -07:00
Artur Souza f717cd6173
Generate updated javadocs for 1.2.0 (#586) 2021-07-29 09:17:05 -07:00
greenie-msft d3df194bad
Add dapr docs (#581)
* Add Dapr Docs

* Added Java code examples for all building blocks

* Fixed version numbers and comments

* Fixed version numbers

* Update java-contributing.md

* PR review updates.

- Reduce Dapr version to 1.1.0
- Correct code syntax
- Describe Virtual Actors Pattern

* Change version back to 1.1.0

* Add Dapr Docs

* Added Java code examples for all building blocks

* Fixed version numbers and comments

* Fixed version numbers

* Update java-contributing.md

* PR review updates.

- Reduce Dapr version to 1.1.0
- Correct code syntax
- Describe Virtual Actors Pattern

* Change version back to 1.1.0

* Reference shortcode for java sdk version

* Update docs version script

* Rever version of SDK to 1.1.0

Co-authored-by: Paul Yuknewicz <paulyuk@microsoft.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-07-26 13:23:04 -07:00
Kevin_T 50f80d8af5
chore: format some places to make the code more standardized (#578)
* chore: format some places to make the code more standardized

* test: add unit test for {@code DaprClient#getState} to cover {@code StateOptions#getStateOptionsAsMap}
2021-07-21 14:09:38 -07:00
Artur Souza 94448a9f09
Update to use runtime and CLI 1.3 RC1. (#580) 2021-07-19 09:19:28 -07:00
Bernd Verst c3e60bb2ef
Update GRPC libraries for security updates (#573)
* Update pom.xml

* Update pom.xml

* Update pom.xml

* Define GRPC version as build property

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-07-14 16:39:24 -07:00
Bernd Verst 48b2d44aa7
Add support for configuring actor reminder storage partitions (#574)
* Update GRPC libraries for security updates

* AdConfigurable actor reminder storage patitions

* autoformat code

* Fix test and linter error

* more autoformatting

* competing style checker :(

Co-authored-by: Ubuntu <beverst@beverst-ubuntu.4gvshbv0hrpejbsei5kugsxnoc.xx.internal.cloudapp.net>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-07-12 16:02:25 -07:00
dependabot[bot] fdbd084fd4
Bump actions/setup-java from 1 to 2.1.0 (#572)
* Bump actions/setup-java from 1 to 2.1.0

Bumps [actions/setup-java](https://github.com/actions/setup-java) from 1 to 2.1.0.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v1...v2.1.0)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update build.yml

* Update validate.yml

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-07-12 15:37:49 -07:00
Aaron Crawfis 6ff64d0445
Update CODEOWNERS (#571)
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-07-02 18:38:35 -07:00
Bernd Verst 527d6c6aa9
Enable dependabot for all packages. (#570)
* Enable dependabot for all packages.

* Make dependabot PRs against special branch
2021-07-02 18:30:04 -07:00
Justin Rovang 0e5e3112de
Added SPEL evaluation against spring boot @Topic attributes (#556)
* [WIP] Added SPEL evaluation against spring boot @Topic name and pubsubname attributes

* [WIP] Updated SubscriberController to use SPEL in @Topic

* 554 - SPEL for @Topic attributes: Updated documentation and examples

* Updated documentation as discussed

* Update README.md

* Update SubscriberController.java

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-06-17 22:48:45 -07:00
Artur Souza 5c05f3d9c7
Change Actor gRPC client to async. (#564) 2021-06-14 13:37:31 -07:00
delvh d056d9a780
Remove no Longer Needed External Maven Repositories From README (#557)
* Remove no longer needed external maven repositories

* Update README.md

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-06-06 23:43:53 -07:00
Xiong, Pin 9ce75d977e
fix: Fatal error compiling: invalid flag: --release (#560)
* fix: Fatal error compiling: invalid flag: --release

* Update README.md

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-06-02 23:38:53 -07:00
halspang b1e54384c1
Generate updated javadocs for 1.1.0 (#553)
GitHub actions is stuck and this PR is for auto-generated docs only.
2021-05-26 20:34:59 -07:00
halspang 2eb6e1d9e3
Upgrade the version to 1.2.0-SNAPSHOT (#549) 2021-05-19 22:01:28 -07:00
Artur Souza 27ce598369
Bring back stop examples, use 1.2 RCs (#548)
* Revert "Update refs to release-1.2-rc1 (#547)"

This reverts commit 30c008939a.

* Update CLI and daprd to 1.2.0 RCs.
2021-05-19 13:08:05 -07:00
halspang 30c008939a
Update refs to release-1.2-rc1 (#547) 2021-05-18 20:28:37 -07:00
Artur Souza 33f793c186
Return empty metadata for key not found + add IT test. (#528) 2021-05-14 11:37:09 -07:00
Artur Souza dfd0d5c7af
Modify the pubsub example to have custom span. (#538) 2021-05-03 11:26:21 -07:00
Artur Souza 7467575a97
Revert "Adjusted the configuration of Maven. (#532)" (#536)
This reverts commit 5cc79811cb.
2021-04-29 18:48:29 -07:00
LLLLimbo 5cc79811cb
Adjusted the configuration of Maven. (#532)
* Adjusted the configuration of Maven.

* Update pom.xml

* Remove os-maven-plugin and spring-boot-maven-plugin in parent pom

* Add version of spring-boot-maven-plugin in the example pom.
Add spring-boot-dependencies dependency management in sdk-springboot.
Add maven-compiler-plugin to the parent pom's pluginManagement
Remove protoc-jar-maven-plugin in  example's dependencies.

* Update pom.xml

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Mukundan Sundararajan <musundar@microsoft.com>
2021-04-26 23:26:11 -07:00
halspang a654861def
Add shutdown API support (#530)
* Add shutdown API support

https://github.com/dapr/java-sdk/issues/529

* Utilize POST instead of GET for shutdown API
2021-04-07 11:42:00 -07:00
halspang bdf8e86b87
Add pause between stopping/starting runtime (#526)
ActorReminderRecoveryIT and ActorTimerRecoveryIT both rely
on reminders/timers being persisted when dapr restarts. On some
restarts, it appears that the placement service shares its placement
table during on ongoing update. This causes the dapr runtime to use
the wrong address for the actor.

https://github.com/dapr/java-sdk/issues/425
2021-04-05 09:29:09 -07:00
Artur Souza 621d4f846f
Update to runtime and cli v1.1.0-rc.1 (#527)
* Update to runtime and cli v1.1.0-rc.1

* Update sample validation too.
2021-03-25 15:02:42 -07:00
Artur Souza c9ab3a6390
Revert "Merge pull request #504 from abogdanov37/feature_fix-statestore-serialization" (#519)
This reverts commit 1eff655d82, reversing
changes made to a5051e07a8.
2021-03-23 17:09:52 -07:00