Repository navigation
Add automatic module names for all Dropwizard modules - #2926
Merged
Merged
Conversation
joschi
force-pushed
the
jpms-automatic-module-names
branch
2 times, most recently
from
October 13, 2019 09:01
4c3d6c8 to
6941ad2
Compare
joschi
force-pushed
the
jpms-automatic-module-names
branch
from
June 11, 2020 09:48
6941ad2 to
7f8c290
Compare
joschi
added a commit
that referenced
this pull request
Apr 12, 2021
In order to properly support the Java Platform Module System (JPMS), the packages in modules must not overlap, or put differently, the packages may not be split into multiple modules. See also: https://nipafx.dev/java-9-migration-guide/#split-packages This change set cleans up the overlapping package structure where necessary (and is unfortunately breaking backward compatibility). Affected packages: - `dropwizard-core`: `io.dropwizard` -> `io.drowizard.core` - `dropwizard-views`: `io.dropwizard.views` -> `io.dropwizard.views.common` - `dropwizard-metrics`: `io.dropwizard.metrics` -> `io.dropwizard.metrics.common` - `dropwizard-logging`: `io.dropwizard.logging` -> `io.dropwizard.logging.common` Refs #2926 Refs #3131 Refs #3654
joschi
force-pushed
the
jpms-automatic-module-names
branch
from
March 4, 2022 18:43
932e2ca to
6ca4cb9
Compare
joschi
force-pushed
the
jpms-automatic-module-names
branch
from
March 4, 2022 18:44
6ca4cb9 to
60c6278
Compare
|
Kudos, SonarCloud Quality Gate passed!
|
zUniQueX
approved these changes
Mar 5, 2022
joschi
added a commit
that referenced
this pull request
Mar 20, 2022
In order to properly support the Java Platform Module System (JPMS), the packages in modules must not overlap, or put differently, the packages may not be split into multiple modules. See also: https://nipafx.dev/java-9-migration-guide/#split-packages This change set cleans up the overlapping package structure where necessary (and is unfortunately breaking backward compatibility). Affected packages: - `dropwizard-core`: `io.dropwizard` -> `io.drowizard.core` - `dropwizard-views`: `io.dropwizard.views` -> `io.dropwizard.views.common` - `dropwizard-metrics`: `io.dropwizard.metrics` -> `io.dropwizard.metrics.common` - `dropwizard-logging`: `io.dropwizard.logging` -> `io.dropwizard.logging.common` Refs #2926 Refs #3131 Refs #3654
joschi
added a commit
that referenced
this pull request
Apr 8, 2022
The automatic module name causes issues when generating Javadoc during the release process. Let's revert that particular change so we can get the first beta builds out of the door and take care of it when we have more time to take care of the issues. `release/3.0.x`: https://github.com/dropwizard/dropwizard/runs/5875633807?check_suite_focus=true#step:4:3444 ```text Error: Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.3.2:jar (attach-javadocs) on project dropwizard-jersey: MavenReportException: Error while generating Javadoc: Error: Exit code: 1 - /home/runner/work/dropwizard/dropwizard/dropwizard-jersey/src/main/java/io/dropwizard/jersey/DropwizardResourceConfig.java:29: error: cannot find symbol Error: import javax.annotation.Nullable; Error: ^ Error: symbol: class Nullable Error: location: package javax.annotation [...] Error: Command line was: /usr/lib/jvm/temurin-11-jdk-amd64/bin/javadoc @options @packages Error: Error: Refer to the generated Javadoc files in '/home/runner/work/dropwizard/dropwizard/dropwizard-jersey/target/apidocs' dir. ``` `release/4.0.x`: https://github.com/dropwizard/dropwizard/runs/5875544966?check_suite_focus=true#step:4:10598 ```text Error: Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.3.2:jar (attach-javadocs) on project dropwizard-testing: MavenReportException: Error while generating Javadoc: Error: Exit code: 1 - /home/runner/work/dropwizard/dropwizard/dropwizard-testing/src/main/java/io/dropwizard/testing/common/DropwizardTestResourceConfig.java:22: error: cannot access ResourceConfig Error: class DropwizardTestResourceConfig extends DropwizardResourceConfig { Error: ^ Error: class file for org.glassfish.jersey.server.ResourceConfig not found Error: /home/runner/work/dropwizard/dropwizard/dropwizard-testing/src/main/java/io/dropwizard/testing/junit5/DropwizardExtensionsSupport.java:8: error: package org.junit.platform.commons.util is not visible Error: import org.junit.platform.commons.util.ReflectionUtils; Error: ^ Error: (package org.junit.platform.commons.util is declared in module org.junit.platform.commons, which does not export it to module io.dropwizard.testing) Error: Error: Command line was: /usr/lib/jvm/temurin-11-jdk-amd64/bin/javadoc @options @packages ``` This reverts commit da2b054. Refs #2926 Refs #5136
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 adds automatic module names for all Dropwizard modules.
We'll need more tests to see, if everything works with Java 9+ when using the module path.
See also: https://blog.joda.org/2018/03/jpms-negative-benefits.html
Refs #3233