Skip to content

Commit

Permalink
Adds custom module-info for nodep assembly
Browse files Browse the repository at this point in the history
  • Loading branch information
jqno committed Jan 16, 2025
1 parent fe79839 commit 2f27e66
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 1 deletion.
2 changes: 2 additions & 0 deletions equalsverifier-core/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// When making changes to this file, make sure they are
// reflected in equalsverifier-release-nodep/../module-info.java!
module nl.jqno.equalsverifier {
exports nl.jqno.equalsverifier;
exports nl.jqno.equalsverifier.api;
Expand Down
3 changes: 2 additions & 1 deletion equalsverifier-release-nodep/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<artifactId>equalsverifier-parent</artifactId>
<version>3.18.2-SNAPSHOT</version>
</parent>
<packaging>pom</packaging>
<packaging>jar</packaging>

<artifactId>equalsverifier-nodep</artifactId>
<name>EqualsVerifier | release fat jar</name>
Expand All @@ -22,6 +22,7 @@
</scm>

<properties>
<maven.compiler.release>9</maven.compiler.release>
<maven.install.skip>false</maven.install.skip>
<maven.deploy.skip>false</maven.deploy.skip>

Expand Down
8 changes: 8 additions & 0 deletions equalsverifier-release-nodep/src/main/assembly/assembly.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@
<componentDescriptors>
<componentDescriptor>assemblies/assembly.xml</componentDescriptor>
</componentDescriptors>
<files>
<file>
<!-- Override the existing module-info.class with the one from this module -->
<source>${project.build.outputDirectory}/module-info.class</source>
<outputDirectory>.</outputDirectory>
<destName>module-info.class</destName>
</file>
</files>
<moduleSets>
<moduleSet>
<useAllReactorProjects>true</useAllReactorProjects>
Expand Down
13 changes: 13 additions & 0 deletions equalsverifier-release-nodep/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module nl.jqno.equalsverifier {
exports nl.jqno.equalsverifier;
exports nl.jqno.equalsverifier.api;

// Built-in prefab values
requires static com.google.common;
requires static java.desktop;
requires static java.naming;
requires static java.rmi;
requires static java.sql;
requires static javafx.base;
requires static org.joda.time;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package nl.jqno.equalsverifier;

// A file needs to exist in this package in order to be able to compile the module-info.java
public class Placeholder {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package nl.jqno.equalsverifier.api;

// A file needs to exist in this package in order to be able to compile the module-info.java
public class Placeholder {}

0 comments on commit 2f27e66

Please sign in to comment.