Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 27, 2025

Bumps ru.vyarus:dropwizard-guicey from 7.1.4 to 8.0.0.

Release notes

Sourced from ru.vyarus:dropwizard-guicey's releases.

8.0.0

  • Update to dropwizard 5 (requires java 17)
  • Use guice version without bundled asm ('classes' classifier)
  • Support field injections in application (to use injected services in run method)
  • Customizable DefaultTestClientFactory: it is now possible to use default implementation with customizations (override configure method)
    • Add ApacheTestClientFactory: useful to support PATCH methods on jdk > 16
    • Add apacheClient (shortcut) configuration into @TestGuiceyApp and @TestDropwizardApp to simplify usage of ApacheTestClientFactory with annotations
    • Add apacheClient() (shortcut) method into extension and generic builders
  • Shared state:
    • State objects, implementing AutoClosable, now would be closed on application shutdown
    • Add SharedConfigurationState.lookupOrCreate method to simplify static state usage
  • Add a utility to simplify building application urls: AppUrlBuilder
    • Automatically resolve context server port and mapped paths (previously only available in tests with ClientSupport class)
    • Could build rest url directly from rest classes and methods
    • Special api for building from direct rest method calls (method arguments automatically mapped into url path and query params in this case)
    • General utility for resource methods analysis: ResourceAnalyzer (could be used in various api, based on resource (stub) call)
  • Unify ClientSupport and StubRest client APIs
    • New api is a wrapper above jersey client api to simplify test-specific configuration and validation (jersey api is still available). The request builder unifies all possible configurations in one place.
    • New common base client class TestClient
    • ClientSupport is a TestClient, but also could provide 3 special clients: appClient(), adminClient(), restClient() (restClient() is the same as rest stubs RestClient)
    • New sub clients could be created by applying additional path segments: client.subClient("/sub/path/)
    • External api client could be created with support.externalClient("http://external.com/")
    • New client rest api based on real method calls: restClient(RestClass.class).method(mock -> mock.restMethod(args)).invoke() (target path and method type resolved from annotations, arguments used for request configuration)
    • Helper api for testing multipart requests: restClient(..).multipartMethod(..) (simplifies multipart method arguments creation)
    • Defaults mechanism: it is possible to declare default headers, cookies, etc. on the client to be applied for all requests (evolution of StubRest client ideas)
    • Add PATCH method shortcuts
    • Add builder-style response assertions like: client.do_request.assertHeader("Name", val) This allows checking response headers, cookies, status code, etc. in a chained calls style without additional variables
    • Add connector switching api to ClientSupport: apacheClient(), urlconnectorClient() This allows using different connectors within one test (note that apache connector is required for PATCH calls and urlconnector better handles multipart requests)
    • Client logging now logs multipart requests (now PAYLOAD_ANY, before it was PAYLOAD_TEXT)
    • (BREAKING) previous target(String... path) methods replaced with string format: target(String, Object...args)
    • (BREAKING) deprecated targetMain(): replaced with targetApp()
    • (BREAKING) StubRest default status declaration removed as not useful (required status could be declared now with the new request builder)
  • Add test web client field injection:

... (truncated)

Changelog

Sourced from ru.vyarus:dropwizard-guicey's changelog.

8.0.0 (2025-10-24)

  • Update to dropwizard 5 (requires java 17)
  • Use guice version without bundled asm ('classes' classifier)
  • Support field injections in application (to use injected services in run method)
  • Customizable DefaultTestClientFactory: it is now possible to use default implementation with customizations (override configure method)
    • Add ApacheTestClientFactory: useful to support PATCH methods on jdk > 16
    • Add apacheClient (shortcut) configuration into @TestGuiceyApp and @TestDropwizardApp to simplify usage of ApacheTestClientFactory with annotations
    • Add apacheClient() (shortcut) method into extension and generic builders
  • Shared state:
    • State objects, implementing AutoClosable, now would be closed on application shutdown
    • Add SharedConfigurationState.lookupOrCreate method to simplify static state usage
  • Add a utility to simplify building application urls: AppUrlBuilder
    • Automatically resolve context server port and mapped paths (previously only available in tests with ClientSupport class)
    • Could build rest url directly from rest classes and methods
    • Special api for building from direct rest method calls (method arguments automatically mapped into url path and query params in this case)
    • General utility for resource methods analysis: ResourceAnalyzer (could be used in various api, based on resource (stub) call)
  • Unify ClientSupport and StubRest client APIs
    • New api is a wrapper above jersey client api to simplify test-specific configuration and validation (jersey api is still available). The request builder unifies all possible configurations in one place.
    • New common base client class TestClient
    • ClientSupport is a TestClient, but also could provide 3 special clients: appClient(), adminClient(), restClient() (restClient() is the same as rest stubs RestClient)
    • New sub clients could be created by applying additional path segments: client.subClient("/sub/path/)
    • External api client could be created with support.externalClient("http://external.com/")
    • New client rest api based on real method calls: restClient(RestClass.class).method(mock -> mock.restMethod(args)).invoke() (target path and method type resolved from annotations, arguments used for request configuration)
    • Helper api for testing multipart requests: restClient(..).multipartMethod(..) (simplifies multipart method arguments creation)
    • Defaults mechanism: it is possible to declare default headers, cookies, etc. on the client to be applied for all requests (evolution of StubRest client ideas)
    • Add PATCH method shortcuts
    • Add builder-style response assertions like: client.do_request.assertHeader("Name", val) This allows checking response headers, cookies, status code, etc. in a chained calls style without additional variables
    • Add connector switching api to ClientSupport: apacheClient(), urlconnectorClient() This allows using different connectors within one test (note that apache connector is required for PATCH calls and urlconnector better handles multipart requests)
    • Client logging now logs multipart requests (now PAYLOAD_ANY, before it was PAYLOAD_TEXT)
    • (BREAKING) previous target(String... path) methods replaced with string format: target(String, Object...args)
    • (BREAKING) deprecated targetMain(): replaced with targetApp()
    • (BREAKING) StubRest default status declaration removed as not useful (required status could be declared now with the new request builder)
  • Add test web client field injection:

... (truncated)

Commits
  • 2d02185 [Gradle Release Plugin] - pre tag commit: '8.0.0'.
  • 61f8c35 update docs for release
  • c684dea re-activate sbom generation
  • 6ac89d8 update docs
  • a48b3c6 update docs
  • 1b7b2d3 enable multipart requests logging for stubs rest
  • 709e321 update docs
  • 33f793b Merge pull request #454 from xvik/dependabot/gradle/com.github.spotbugs-6.4.4
  • 5bbea75 Bump com.github.spotbugs from 6.4.2 to 6.4.4
  • fb0858f rename useApacheClient option to apacheClient
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [ru.vyarus:dropwizard-guicey](https://github.com/xvik/dropwizard-guicey) from 7.1.4 to 8.0.0.
- [Release notes](https://github.com/xvik/dropwizard-guicey/releases)
- [Changelog](https://github.com/xvik/dropwizard-guicey/blob/master/CHANGELOG.md)
- [Commits](xvik/dropwizard-guicey@7.1.4...8.0.0)

---
updated-dependencies:
- dependency-name: ru.vyarus:dropwizard-guicey
  dependency-version: 8.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file java Pull requests that update Java code labels Oct 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file java Pull requests that update Java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant