Update dependency io.dropwizard:dropwizard-core to v4 - autoclosed #417
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.3.13
->4.0.0
By merging this PR, the below issues will be automatically resolved and closed:
By merging this PR, the below issues will be automatically resolved and closed:
By merging this PR, the below issues will be automatically resolved and closed:
By merging this PR, the below issues will be automatically resolved and closed:
Release Notes
dropwizard/dropwizard (io.dropwizard:dropwizard-core)
v4.0.0
Compare Source
Dropwizard 4.0.0
It's finally here, the next major release of Dropwizard! This one has been developed and released in tandem with Dropwizard 3.0.0.
If you're wondering what the differences are: Not much!
3️⃣ Dropwizard 3.0.0 is still based on and is using dependencies for Java EE and the
javax.*
package namespace. The effort to migrate from Dropwizard 2.x to Dropwizard 3.0.0 should be minimal for many projects.4️⃣ Dropwizard 4.0.0 is based on and is using dependencies for Jakarta EE and the
jakarta.*
package namespace. The effort to migrate from Dropwizard 2.x to Dropwizard 4.0.0 might be bigger due to more package changes and more breaking changes in our dependencies.📣 In any case, let us know how the migration went and if you were missing anything important in the upgrade notes in our GitHub Discussions!
For a full list of relevant changes please refer to the Upgrade Notes for Dropwizard 4.0.x.
Java 11 baseline
Dropwizard 4.0.0 and later require Java 11 as a baseline. Later versions of Java are also working.
Dropwizard Package Structure and JPMS
In order to properly support the Java Platform Module System (JPMS), the Java packages in modules must not overlap, or put differently, the packages may not be split into multiple modules.
Dropwizard 4.0.0 won’t enable full support for the JPMS. Instead, as a transition step, automatic modules are introduced.
Affected packages:
Maven module | Old package | New package
-- | -- | --
dropwizard-core
|io.dropwizard
|io.drowizard.core
dropwizard-logging
|io.dropwizard.logging
|io.dropwizard.logging.common
dropwizard-metrics
|io.dropwizard.metrics
|io.dropwizard.metrics.common
dropwizard-views
|io.dropwizard.views
|io.dropwizard.views.common
Transition to Jakarta EE
Previously released Dropwizard versions used Java/Jakarta EE dependencies under the
javax
namespace. Dropwizard 4.0.x transitioned to Jakarta EE 9 components and therefore utilize the newjakarta
namespace for many components.This means that most of the imports of existing applications using Dropwizard 2.x or 3.x will have to be changed from the
javax
to thejakarta
namespace. However, other components still use thejavax
namespace, so a simple search and replace could break other imports.Jakarta EE 9 compatibility
As stated above, Dropwizard 4.0.x will transition to Jakarta EE 9 components. This means, Dropwizard will now try to be consistent with one specific EE version.
Therefore Dropwizard 4.0.x will stay on components of Jakarta EE 9 and the transition to components of Jakarta EE 10 will be postponed to an other release series.
Since the EE version bump will probably introduce breaking changes, the Jakarta EE 10 components will be most likely integrated in Dropwizard 5.0.x and not in a 4.1.x release.
Jetty 11
The main change introduced in Dropwizard 4.0.0 is the upgrade to Jetty 11.0.x. Jetty 11.0.x is built for Java 11, therefore the Java version change was necessary.
This change comes with some migration cost. For detailed information regarding the changes introduced in Jetty 11.0.x, refer to the Jetty migration guide.
Apache HttpClient 5
The version of Apache HttpClient used in dropwizard-client has been updated to version 5.x.
For more information refer to the Apache HttpClient 5.0 migration guide.
Hibernate 6
Hibernate 5.6 provides compatible implementations for JPA 2.2 and for Jakarta Persistence 3.0.
But Hibernate 6.0 and 6.1 still provide compatible implementations for Jakarta Persistence 3.0, so we upgraded to Hibernate 6.1 in Dropwizard 4.0.x.
If any other aspects from Hibernate are used in an application rather than those provided by Dropwizard, there might be an additional migration cost. Please follow the Hibernate 6 migration guide and the Hibernate 6.1 migration guide, if you encounter any problems.
Removed Support for JUnit 4.x
Support for testing with JUnit 4.x has been moved from
dropwizard-testing
to dropwizard-testing-junit4.🥇 Special thanks
The release of Dropwizard 3.0.0 wouldn't have been possible without the help of the community (YOU!) and especially the following contributors:
@zUniQueX, @rhowe, @pstackle, @dennyac, and countless others!
What's Changed since Dropwizard 4.0.0-beta.4
32dc499
by @renovate in https://github.com/dropwizard/dropwizard/pull/6742a2d14ba
by @renovate in https://github.com/dropwizard/dropwizard/pull/675416964e9
by @renovate in https://github.com/dropwizard/dropwizard/pull/68044845216
by @renovate in https://github.com/dropwizard/dropwizard/pull/681724cb908
by @renovate in https://github.com/dropwizard/dropwizard/pull/6834168b99b
by @renovate in https://github.com/dropwizard/dropwizard/pull/683567a35a0
by @renovate in https://github.com/dropwizard/dropwizard/pull/68598f4b7f8
by @renovate in https://github.com/dropwizard/dropwizard/pull/68945ffc13f
by @renovate in https://github.com/dropwizard/dropwizard/pull/691404df126
by @renovate in https://github.com/dropwizard/dropwizard/pull/6915Full Changelog: dropwizard/dropwizard@v4.0.0-beta.4...v4.0.0
v3.0.6
Compare Source
What's Changed
012739e
(release/3.0.x) by @renovate in https://github.com/dropwizard/dropwizard/pull/8109e5f05b8
(release/3.0.x) by @renovate in https://github.com/dropwizard/dropwizard/pull/81811eb3cb2
(release/3.0.x) by @renovate in https://github.com/dropwizard/dropwizard/pull/8206687f107
(release/3.0.x) by @renovate in https://github.com/dropwizard/dropwizard/pull/8226694cdab
(release/3.0.x) by @renovate in https://github.com/dropwizard/dropwizard/pull/82410b21cf2
(release/3.0.x) by @renovate in https://github.com/dropwizard/dropwizard/pull/824226f96df
(release/3.0.x) by @renovate in https://github.com/dropwizard/dropwizard/pull/8263b7bf0a3
(release/3.0.x) by @renovate in https://github.com/dropwizard/dropwizard/pull/8291Full Changelog: dropwizard/dropwizard@v3.0.5...v3.0.6
v3.0.5
Compare Source
What's Changed
689fdc5
(release/3.0.x) by @renovate in https://github.com/dropwizard/dropwizard/pull/788766b90a5
(release/3.0.x) by @renovate in https://github.com/dropwizard/dropwizard/pull/7904407ffaf
(release/3.0.x) by @renovate in https://github.com/dropwizard/dropwizard/pull/7929c0d1daa
(release/3.0.x) by @renovate in https://github.com/dropwizard/dropwizard/pull/8000305f654
(release/3.0.x) by @renovate in https://github.com/dropwizard/dropwizard/pull/801803e7845
(release/3.0.x) by @renovate in https://github.com/dropwizard/dropwizard/pull/8031Full Changelog: dropwizard/dropwizard@v3.0.4...v3.0.5
v3.0.4
Compare Source
What's Changed
49abf0b
(release/3.0.x) by @renovate in https://github.com/dropwizard/dropwizard/pull/777874483a3
(release/3.0.x) by @renovate in https://github.com/dropwizard/dropwizard/pull/7800LoggerContext
inLoggingEvent
by @joschi in https://github.com/dropwizard/dropwizard/pull/7837Full Changelog: dropwizard/dropwizard@v3.0.3...v3.0.4
v3.0.3
Compare Source
What's Changed
ddccb87
(release/3.0.x) by @renovate in https://github.com/dropwizard/dropwizard/pull/75912cb752a
(release/3.0.x) by @renovate in https://github.com/dropwizard/dropwizard/pull/7616fdcae64
(release/3.0.x) by @renovate in https://github.com/dropwizard/dropwizard/pull/7632d90b8d7
(release/3.0.x) by @renovate in https://github.com/dropwizard/dropwizard/pull/76560116bc2
(release/3.0.x) by @renovate in https://github.com/dropwizard/dropwizard/pull/7678