Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions dropwizard/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,8 @@
</goals>
<configuration>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.baeldung.dropwizard.introduction.IntroductionApplication</mainClass>
</transformer>
</transformers>
Expand All @@ -63,7 +61,7 @@
</build>

<properties>
<dropwizard.version>2.0.0</dropwizard.version>
<dropwizard.version>4.0.17</dropwizard.version>

Copilot AI Feb 3, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This major version upgrade from Dropwizard 2.0.0 to 4.0.17 introduces breaking changes that require code modifications. Dropwizard 4.x migrated from Java EE (javax.) to Jakarta EE (jakarta.) namespaces. The existing code uses javax.validation.constraints.NotNull in BasicConfiguration.java and javax.ws.rs.* in BrandResource.java, which need to be updated to jakarta.validation.constraints.NotNull and jakarta.ws.rs.* respectively. Additionally, Dropwizard 4.x requires Java 11 or later, but this project is configured to use Java 1.8 (see pom.xml line 1454).

Suggested change
<dropwizard.version>4.0.17</dropwizard.version>
<dropwizard.version>4.0.17</dropwizard.version>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>

Copilot uses AI. Check for mistakes.
</properties>

</project>