Skip to content

Commit

Permalink
GH-127 - Improve Java Module System metadata.
Browse files Browse the repository at this point in the history
Remove automatic module names from manifests. Additionally open packages for reflection.
  • Loading branch information
odrotbohm committed Sep 25, 2024
1 parent 26c8b7e commit 8feeb00
Show file tree
Hide file tree
Showing 14 changed files with 27 additions and 32 deletions.
4 changes: 0 additions & 4 deletions jmolecules-architecture/jmolecules-cqrs-architecture/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,4 @@
<name>jMolecules - CQRS Architecture</name>
<description>Concepts of the cqrs architecture style.</description>

<properties>
<module.name>org.jmolecules.architecture.cqrs</module.name>
</properties>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
* limitations under the License.
*/
module org.jmolecules.architecture.cqrs {

exports org.jmolecules.architecture.cqrs;
exports org.jmolecules.architecture.cqrs.annotation;

opens org.jmolecules.architecture.cqrs;
opens org.jmolecules.architecture.cqrs.annotation;
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,4 @@
<name>jMolecules - Hexagonal Architecture</name>
<description>Concepts of the hexagonal architecture style.</description>

<properties>
<module.name>org.jmolecules.architecture.hexagonal</module.name>
</properties>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,8 @@
* limitations under the License.
*/
module org.jmolecules.architecture.hexagonal {

exports org.jmolecules.architecture.hexagonal;

opens org.jmolecules.architecture.hexagonal;
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,4 @@
<name>jMolecules - Layered Architecure</name>
<description>Concepts of the layered architecture style.</description>

<properties>
<module.name>org.jmolecules.architecture.layered</module.name>
</properties>

</project>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,8 @@
* limitations under the License.
*/
module org.jmolecules.architecture.layered {

exports org.jmolecules.architecture.layered;

opens org.jmolecules.architecture.layered;
}
4 changes: 0 additions & 4 deletions jmolecules-architecture/jmolecules-onion-architecture/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,4 @@
<name>jMolecules - Onion Architecture</name>
<description>Concepts of the onion architecture style.</description>

<properties>
<module.name>org.jmolecules.architecture.onion</module.name>
</properties>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
* limitations under the License.
*/
module org.jmolecules.architecture.onion {

exports org.jmolecules.architecture.onion.classical;
exports org.jmolecules.architecture.onion.simplified;

opens org.jmolecules.architecture.onion.classical;
opens org.jmolecules.architecture.onion.simplified;
}
4 changes: 0 additions & 4 deletions jmolecules-ddd/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,4 @@

<name>jMolecules - DDD</name>

<properties>
<module.name>org.jmolecules.ddd</module.name>
</properties>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
* limitations under the License.
*/
module org.jmolecules.ddd {

exports org.jmolecules.ddd.annotation;
exports org.jmolecules.ddd.types;

opens org.jmolecules.ddd.annotation;
opens org.jmolecules.ddd.types;
}
4 changes: 0 additions & 4 deletions jmolecules-events/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,4 @@

<name>jMolecules - Events</name>

<properties>
<module.name>org.jmolecules.event</module.name>
</properties>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
* limitations under the License.
*/
module org.jmolecules.event {

exports org.jmolecules.event.annotation;
exports org.jmolecules.event.types;

opens org.jmolecules.event.annotation;
opens org.jmolecules.event.types;
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
* limitations under the License.
*/
module org.kmolecules.ddd {

exports org.jmolecules.ddd.annotation;
exports org.jmolecules.ddd.types;

opens org.jmolecules.ddd.annotation;
opens org.jmolecules.ddd.types;
}
7 changes: 0 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,6 @@
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.4.2</version>
<configuration>
<archive>
<manifestEntries>
<Automatic-Module-Name>${module.name}</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</plugin>

<plugin>
Expand Down

0 comments on commit 8feeb00

Please sign in to comment.