Skip to content

Add automatic module names for all Dropwizard modules - #2926

Merged
joschi merged 1 commit into
release/3.0.xfrom
jpms-automatic-module-names
Mar 6, 2022
Merged

joschi merged 1 commit into
release/3.0.xfrom
jpms-automatic-module-names

Conversation

@joschi

@joschi joschi commented Sep 16, 2019 •

Copy link
Copy Markdown
Member

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

@joschi joschi added the blocked label Sep 16, 2019
@joschi
joschi force-pushed the jpms-automatic-module-names branch 2 times, most recently from 4c3d6c8 to 6941ad2 Compare October 13, 2019 09:01
@github-actions github-actions Bot added the stale Stale issue or pull request which will be closed soon label Jan 12, 2020
@jplock jplock removed the stale Stale issue or pull request which will be closed soon label Jan 12, 2020
@github-actions github-actions Bot added the stale Stale issue or pull request which will be closed soon label Apr 12, 2020
@dropwizard dropwizard deleted a comment from github-actions Bot Apr 12, 2020
@joschi joschi removed the stale Stale issue or pull request which will be closed soon label Apr 12, 2020
@joschi
joschi force-pushed the jpms-automatic-module-names branch from 6941ad2 to 7f8c290 Compare June 11, 2020 09:48
@dropwizard dropwizard deleted a comment from github-actions Bot Jul 29, 2020
@github-actions github-actions Bot added the stale Stale issue or pull request which will be closed soon label Oct 28, 2020
@dropwizard dropwizard deleted a comment from github-actions Bot Oct 28, 2020
@joschi joschi removed the stale Stale issue or pull request which will be closed soon label Oct 28, 2020
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
joschi changed the base branch from master to release/3.0.x March 4, 2022 18:43
@joschi
joschi force-pushed the jpms-automatic-module-names branch from 932e2ca to 6ca4cb9 Compare March 4, 2022 18:43
@joschi
joschi force-pushed the jpms-automatic-module-names branch from 6ca4cb9 to 60c6278 Compare March 4, 2022 18:44
@joschi joschi added this to the 3.0.0 milestone Mar 4, 2022
@sonarqubecloud

sonarqubecloud Bot commented Mar 4, 2022

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@joschi
joschi marked this pull request as ready for review March 5, 2022 10:58
@joschi
joschi requested a review from a team as a code owner March 5, 2022 10:58
@joschi joschi removed the blocked label Mar 5, 2022
@joschi joschi self-assigned this Mar 5, 2022
@joschi
joschi merged commit da2b054 into release/3.0.x Mar 6, 2022
@joschi
joschi deleted the jpms-automatic-module-names branch March 6, 2022 11:20
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
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants