* Generate updated javadocs for 1.3.1 (#643)
Signed-off-by: Will Tsai <william.wl.tsai@gmail.com>
* 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
Signed-off-by: Will Tsai <william.wl.tsai@gmail.com>
* initial commit: modified ./dapr/client/DaprClientHttpTest.java unit test
Signed-off-by: Will Tsai <william.wl.tsai@gmail.com>
* refactored hardcoded 127.0.0.1 localhost IP to use Dapr sidecar IP
Signed-off-by: Will Tsai <william.wl.tsai@gmail.com>
* refactored hardcoded 127.0.0.1 localhost IP to use Dapr sidecar IP
Signed-off-by: Will Tsai <william.wl.tsai@gmail.com>
* cleaned up unused imports
Signed-off-by: Will Tsai <william.wl.tsai@gmail.com>
* fixed tabbing and imports
Signed-off-by: Will Tsai <william.wl.tsai@gmail.com>
* added utils for getting local host and test utils for ipv6 addresses
Signed-off-by: Will Tsai <william.wl.tsai@gmail.com>
* Add auto-assign dapr_bot workflow (#654)
Signed-off-by: Will Tsai <william.wl.tsai@gmail.com>
* Bump actions/setup-java from 2.3.1 to 2.4.0 (#663)
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 2.3.1 to 2.4.0.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v2.3.1...v2.4.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>
Signed-off-by: Will Tsai <william.wl.tsai@gmail.com>
* added HTTP client tests for IPv6 addresses
Signed-off-by: Will Tsai <william.wl.tsai@gmail.com>
* fixed tests by returning SIDECAR_IP to IPv4 address
Signed-off-by: Will Tsai <william.wl.tsai@gmail.com>
* changes to address PMD code validation violations
Signed-off-by: Will Tsai <william.wl.tsai@gmail.com>
* changing back to loopback address for DEFAULT_SIDECAR_IP fallback
Signed-off-by: Will Tsai <william.wl.tsai@gmail.com>
* Fix vault example + Upgrade Dapr CLI and runtime. (#666)
* Upgrade Dapr CLI and runtime.
Signed-off-by: Artur Souza <artursouza.ms@outlook.com>
* Fix expected vault output.
Signed-off-by: Artur Souza <artursouza.ms@outlook.com>
Signed-off-by: Will Tsai <william.wl.tsai@gmail.com>
* Update LICENSE to Apache 2.0 (#657)
* Update LICENSE to Apache 2.0
Signed-off-by: Artur Souza <artursouza.ms@outlook.com>
* Update headers to Apache 2.
Signed-off-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Signed-off-by: Will Tsai <william.wl.tsai@gmail.com>
* Bump actions/github-script from 1 to 5 (#655)
Bumps [actions/github-script](https://github.com/actions/github-script) from 1 to 5.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](https://github.com/actions/github-script/compare/v1...v5)
---
updated-dependencies:
- dependency-name: actions/github-script
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>
Signed-off-by: Will Tsai <william.wl.tsai@gmail.com>
* Add DCO requirements and updated code of conduct (#669)
Issue reference: dapr/docs#2039
Signed-off-by: Will <william.wl.tsai@gmail.com>
Signed-off-by: Will Tsai <william.wl.tsai@gmail.com>
* Bump actions/setup-java from 2.4.0 to 2.5.0 (#668)
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 2.4.0 to 2.5.0.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v2.4.0...v2.5.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: Artur Souza <artursouza.ms@outlook.com>
Signed-off-by: Will Tsai <william.wl.tsai@gmail.com>
* Config api support (#670)
* inital draft for config api
Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>
* Introducing new client for preview apis and code refactoring
Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>
* Unit tests and code refactoring
Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>
* Adding integration test
Signed-off-by: pravinpushkar <ppushkar@microsoft.com>
* Copyright changes
Signed-off-by: pravinpushkar <ppushkar@microsoft.com>
* Review comments fixes
Signed-off-by: pravinpushkar <ppushkar@microsoft.com>
* Removed DaprPreviewClientProxy and updated example README
Signed-off-by: pravinpushkar <ppushkar@microsoft.com>
* Adding validate workflow for cofiguration api example
Signed-off-by: pravinpushkar <ppushkar@microsoft.com>
* fixing example autovalidation and code coverage
Signed-off-by: pravinpushkar <ppushkar@microsoft.com>
* Fixing autovalidation and removing getAllConfiguration
Signed-off-by: pravinpushkar <ppushkar@microsoft.com>
* Fixing review comments
Signed-off-by: pravinpushkar <ppushkar@microsoft.com>
* Add regex header checkstyle.
Signed-off-by: Artur Souza <artursouza.ms@outlook.com>
* Fix headers and add javadocs to some.
Signed-off-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Signed-off-by: Will Tsai <william.wl.tsai@gmail.com>
* Update for next release: 1.5.0 snapshot (#672)
* Update CLI and runtime to 1.6.0-rc.x
Signed-off-by: Artur Souza <artursouza.ms@outlook.com>
* Upgrade the version to 1.5.0-SNAPSHOT
Signed-off-by: Artur Souza <artursouza.ms@outlook.com>
Signed-off-by: Will Tsai <william.wl.tsai@gmail.com>
* Update proto RC. (#674)
Signed-off-by: Artur Souza <artursouza.ms@outlook.com>
Signed-off-by: Will Tsai <william.wl.tsai@gmail.com>
* Java SDK - Documentation for configuration API methods (#676)
* Java SDK - Documentation for configuration API methods
Signed-off-by: pravinpushkar <ppushkar@microsoft.com>
* review comment fixes
Signed-off-by: pravinpushkar <ppushkar@microsoft.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Signed-off-by: Will Tsai <william.wl.tsai@gmail.com>
* Generate updated javadocs for 1.4.0 (#677)
Signed-off-by: Will Tsai <william.wl.tsai@gmail.com>
* address package dependency issue on integration test
Signed-off-by: Will Tsai <william.wl.tsai@gmail.com>
* added comment to include spec for ipv6 represention in url
Signed-off-by: Will Tsai <william.wl.tsai@gmail.com>
* corrected comment in NetworkUtils.getHostLoopbackAddress()
Signed-off-by: Will Tsai <william.wl.tsai@gmail.com>
* added comment to include spec for ipv6 represention in url
Signed-off-by: Will Tsai <william.wl.tsai@gmail.com>
* updated dependency scope to test
Signed-off-by: Will Tsai <william.wl.tsai@gmail.com>
* fix NetworkUtils.java
Signed-off-by: Will Tsai <28876888+willtsai@users.noreply.github.com>
* checkstyle fix in NetworkUtils.java
Signed-off-by: Will Tsai <28876888+willtsai@users.noreply.github.com>
* fix imports
Signed-off-by: Will Tsai <28876888+willtsai@users.noreply.github.com>
* fix ipv6 formatting issues
Signed-off-by: Will Tsai <28876888+willtsai@users.noreply.github.com>
* fix ipv6 formatting issues
Signed-off-by: Will Tsai <28876888+willtsai@users.noreply.github.com>
* fix code style nits
Signed-off-by: Will Tsai <28876888+willtsai@users.noreply.github.com>
* refactor formatIpAddress method in actors utls
Signed-off-by: Will Tsai <28876888+willtsai@users.noreply.github.com>
---------
Signed-off-by: Will Tsai <william.wl.tsai@gmail.com>
Signed-off-by: Artur Souza <artursouza.ms@outlook.com>
Signed-off-by: Will <william.wl.tsai@gmail.com>
Signed-off-by: Will <28876888+willtsai@users.noreply.github.com>
Signed-off-by: Will Tsai <28876888+willtsai@users.noreply.github.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Maarten Mulders <mthmulders@users.noreply.github.com>
Co-authored-by: Mukundan Sundararajan <musundar@microsoft.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: greenie-msft <56556602+greenie-msft@users.noreply.github.com>
Co-authored-by: Pravin Pushkar <ppushkar@microsoft.com>
Co-authored-by: Cassie Coyle <cassie@diagrid.io>
* add support for java17
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* upgrade spotbugs-maven-plugin version to support jdk17
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* add clean before install
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* add clean in mvn command
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* rollback spotbugs-maven-plugin version to 4.1.4
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* add jdk17 in build
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* update to support jdk17
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* remove jdk versions earlier than jdk17
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* remove springboot 2.3 and 2.4 because they don't support jdk17
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* update to jdk17
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* update maven plugin versions to support jdk17
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* temporarily ignoring checking after upgrade to new spotbugs version to support jdk17
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* use the same version of maven-failsafe-plugin
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* hard code maven-failsafe-plugin version to 3.2.2
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* set sourceDirectory of checkstyle plugin to only check the sources directory, not test source and generated source
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* set release to jdk17 in examples subproject
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* update to springboot 3.0
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* add springboot 3.0.13 in springboot version matrics
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* upgrade to springboot 3.0.13 in sdk-tests
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* remove Nullable annotation
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* force opentelemetry-sdk-metrics dependencies to be version 0.14.0
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* jakarta.servlet is needed for dapr compatibility for spring boot versions before 3.0
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* update code to run with jakarta.servlet and javax.servlet
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* update jakarta.annotation to latest version
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* add javax.annotation
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* trigger ci
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* revert back to using 3.0 version of the github action
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* revert back to use jdk11 for vallidate
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* jdk17 is required for vallidate
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* trigger ci
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* use jdk17 to validate
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* remove java8 support
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* use jdk11 to test springboot2.x and jdk17 to test springboot3.0
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* rollback to jdk17 to test for springboot2.x
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* rename springboot30 to springboot3
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* skip mvn test in mvn install
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* add more exclude for spotbugs
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* add more exclude for spotbugs
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* set java source and target to 17 in sdk-tests
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* rollback root pom.xml to remove sdk-tests module
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* exclude logback to avoid conflicts
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* replace ctx.getLogger() with sysout
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* update stdout line according to source code
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* rollback validate line, replace ctx.getLogger() with system out in wofklow
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* rollback example code for subworkflow
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* print ctx.getLogger() and instanceId for debug
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* rollback to not exclude logback
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* add slf4j as compile dependency and upgrade its version to 2.0.9
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* print the logger implementation class
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
* remove debug code
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
---------
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
* Added additional CloudEvent fields (pubsubname, topic, time, traceid, traceparent, & tracestate)
Added the com.fasterxml.jackson:jackson-datatype-jsr310 dependency to handle serdes of OffsetDateTime for the CloudEvent time field via ObjectMapper settings .configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false) & .findAndRegisterModules()
Updated com.fasterxml.jackson dependencies to the latest 2.15.1
Added OffsetDateTime as timeValue to test the DefaultObjectSerializer
Added more tests for new & old CloudEvent fields in CloudEventTest & DefaultObjectSerializerTest
Signed-off-by: Luke Sieben <siebenluke@gmail.com>
* Refactored new field names to be camelCase
Removed the 2 new constructors
Signed-off-by: Luke Sieben <siebenluke@gmail.com>
* Added @JsonProperty("{lowercasename}")s to properly serdes camelCaseNames as JSON/OBJECT_MAPPER are case-sensitive
Signed-off-by: Luke Sieben <siebenluke@gmail.com>
* Removed com.fasterxml.jackson.datatype:jackson-datatype-jsr310 dependency in favor of custom field level serdes for time
Signed-off-by: Luke Sieben <siebenluke@gmail.com>
* Fixed "Line is longer than 120 characters" build issue by pushing the end of the offending lines to a new line
Signed-off-by: Luke Sieben <siebenluke@gmail.com>
* Added more CloudEvent test cases to appease Codecov
Signed-off-by: Luke Sieben <siebenluke@gmail.com>
* Added null binaryData test case for Codecov
Signed-off-by: Luke Sieben <siebenluke@gmail.com>
* Added cloudEventDifferent test cases for Codecov
Signed-off-by: Luke Sieben <siebenluke@gmail.com>
* Removed extraneous ;
Signed-off-by: Luke Sieben <siebenluke@gmail.com>
* Added comments for time test cases
Signed-off-by: Luke Sieben <siebenluke@gmail.com>
---------
Signed-off-by: Luke Sieben <siebenluke@gmail.com>
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
Co-authored-by: Cassie Coyle <cassie@diagrid.io>
* Fix release script to handle workflows sdk.
Signed-off-by: Artur Souza <asouza.pro@gmail.com>
* Upgrade the version to 1.11.0-SNAPSHOT
Signed-off-by: Artur Souza <asouza.pro@gmail.com>
---------
Signed-off-by: Artur Souza <asouza.pro@gmail.com>
* Query State Preview API implementation.
Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>
* Use latest dapr ref and fix grpc query state api
Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>
* fix service invocation automatic unesacpe
Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>
* add more unit tests
Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>
* Add query state API docs
Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>
* Fix example to be user friendly
Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>
* Fix example in docs
Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>
* make pagination immutable
Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
* Update CLI and runtime to 1.6.0-rc.x
Signed-off-by: Artur Souza <artursouza.ms@outlook.com>
* Upgrade the version to 1.5.0-SNAPSHOT
Signed-off-by: Artur Souza <artursouza.ms@outlook.com>
* 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>
* 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
* 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>
* open telemetry upgrade to 0.10.0
* open telemetry upgrade to 0.10.0
* open telemetry upgrade to 0.10.0
* open telemetry upgrade to 0.10.0
* open telemetry upgrade to 0.10.0
Co-authored-by: haidao <wlf190783@alibaba-inc.com>
* update readme with secrets example link
* Update opentelemetry to 0.7.1, change repo id for sping
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>