Skip to content

Revert "Add automatic module names for all Dropwizard modules" - #5137

Merged
joschi merged 1 commit into
release/3.0.xfrom
revert-pr-2926-automatic-module-names
Apr 8, 2022
Merged

joschi merged 1 commit into
release/3.0.xfrom
revert-pr-2926-automatic-module-names

Conversation

@joschi

@joschi joschi commented Apr 8, 2022 •

Copy link
Copy Markdown
Member

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

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

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

@joschi joschi added the task label Apr 8, 2022
@joschi joschi added this to the 3.0.0 milestone Apr 8, 2022
@joschi
joschi requested a review from a team as a code owner April 8, 2022 09:18
@joschi joschi self-assigned this Apr 8, 2022
@joschi joschi linked an issue Apr 8, 2022 that may be closed by this pull request
@sonarqubecloud

sonarqubecloud Bot commented Apr 8, 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
No Duplication information No Duplication information

@joschi
joschi merged commit 4c64f82 into release/3.0.x Apr 8, 2022
@joschi
joschi deleted the revert-pr-2926-automatic-module-names branch April 8, 2022 09:46
zUniQueX added a commit to zUniQueX/dropwizard that referenced this pull request Sep 5, 2022
joschi pushed a commit that referenced this pull request Sep 6, 2022
* Revert "Revert "Add automatic module names for all Dropwizard modules" (#5137)"

This reverts commit 4c64f82.

* Use Java 8 for JavaDoc generation to fix an issue regarding Automatic-Module-Names
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.

maven-javadoc-plugin fails due to Automatic-Module-Name

1 participant