Skip to content

Commit

Permalink
Merge pull request #961 from lprimak/jpms-module-names
Browse files Browse the repository at this point in the history
[GH-896] Added JPMS module names to JAR manifests
  • Loading branch information
lprimak committed Jun 30, 2023
2 parents 792c6e3 + 14ce01d commit ff2275d
Show file tree
Hide file tree
Showing 38 changed files with 102 additions and 5 deletions.
3 changes: 3 additions & 0 deletions cache/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
<artifactId>shiro-cache</artifactId>
<name>Apache Shiro :: Cache</name>
<packaging>bundle</packaging>
<properties>
<module.name>cache</module.name>
</properties>

<build>
<plugins>
Expand Down
3 changes: 3 additions & 0 deletions config/core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
<name>Apache Shiro :: Configuration :: Core</name>

<packaging>bundle</packaging>
<properties>
<module.name>config.core</module.name>
</properties>

<build>
<plugins>
Expand Down
3 changes: 3 additions & 0 deletions config/ogdl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
<description>Support for Shiro's Object Graph Definition Language (mostly used in Ini configuration) where
declared name/value pairs are interpreted to create an object graph</description>
<packaging>bundle</packaging>
<properties>
<module.name>config.ogdl</module.name>
</properties>

<build>
<plugins>
Expand Down
3 changes: 3 additions & 0 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
<artifactId>shiro-core</artifactId>
<name>Apache Shiro :: Core</name>
<packaging>bundle</packaging>
<properties>
<module.name>core</module.name>
</properties>

<build>
<plugins>
Expand Down
3 changes: 3 additions & 0 deletions crypto/cipher/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
<artifactId>shiro-crypto-cipher</artifactId>
<name>Apache Shiro :: Cryptography :: Ciphers</name>
<packaging>bundle</packaging>
<properties>
<module.name>crypto.cipher</module.name>
</properties>

<build>
<plugins>
Expand Down
3 changes: 3 additions & 0 deletions crypto/core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
<artifactId>shiro-crypto-core</artifactId>
<name>Apache Shiro :: Cryptography :: Core</name>
<packaging>bundle</packaging>
<properties>
<module.name>crypto.core</module.name>
</properties>

<build>
<plugins>
Expand Down
3 changes: 3 additions & 0 deletions crypto/hash/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
<artifactId>shiro-crypto-hash</artifactId>
<name>Apache Shiro :: Cryptography :: Hashing</name>
<packaging>bundle</packaging>
<properties>
<module.name>crypto.hash</module.name>
</properties>

<build>
<plugins>
Expand Down
3 changes: 3 additions & 0 deletions crypto/support/hashes/argon2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
<name>Apache Shiro :: Cryptography :: Support :: Argon2</name>

<packaging>bundle</packaging>
<properties>
<module.name>hashes.argon2</module.name>
</properties>

<dependencies>
<dependency>
Expand Down
3 changes: 3 additions & 0 deletions crypto/support/hashes/bcrypt/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
<name>Apache Shiro :: Cryptography :: Support :: BCrypt</name>

<packaging>bundle</packaging>
<properties>
<module.name>hashes.bcrypt</module.name>
</properties>

<dependencies>
<dependency>
Expand Down
3 changes: 3 additions & 0 deletions event/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
<artifactId>shiro-event</artifactId>
<name>Apache Shiro :: Event</name>
<packaging>bundle</packaging>
<properties>
<module.name>event</module.name>
</properties>

<build>
<plugins>
Expand Down
4 changes: 3 additions & 1 deletion integration-tests/jaxrs/meecrowave/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@

<artifactId>shiro-its-jaxrs-meecrowave</artifactId>
<name>Apache Shiro :: ITs :: JAX-RS :: Meecrowave</name>

<properties>
<module.name>its.jaxrs.meecrowave</module.name>
</properties>

<dependencies>
<dependency>
Expand Down
1 change: 1 addition & 0 deletions integration-tests/jaxrs/openliberty/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<name>Apache Shiro :: ITs :: JAX-RS :: OpenLiberty</name>

<properties>
<module.name>its.jaxrs.openliberty</module.name>
<liberty.var.default.http.port>9080</liberty.var.default.http.port>
<liberty.var.default.https.port>9443</liberty.var.default.https.port>
<liberty.var.app.filename>shiro-its-jaxrs-app-${project.version}</liberty.var.app.filename>
Expand Down
1 change: 1 addition & 0 deletions integration-tests/jaxrs/tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<name>Apache Shiro :: ITs :: JAX-RS :: Tests</name>

<properties>
<module.name>its.jaxrs.tests</module.name>
<jaxrs.api.version>2.1.1</jaxrs.api.version>
<johnzon.version>1.2.20</johnzon.version>
</properties>
Expand Down
1 change: 1 addition & 0 deletions integration-tests/meecrowave-support/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<name>Apache Shiro :: ITs :: Meecrowave-Support</name>

<properties>
<module.name>its.meecrowave.support</module.name>
</properties>

<dependencies>
Expand Down
3 changes: 3 additions & 0 deletions integration-tests/support/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@

<artifactId>shiro-its-support</artifactId>
<name>Apache Shiro :: ITs :: Support</name>
<properties>
<module.name>its.support</module.name>
</properties>

<dependencies>
<dependency>
Expand Down
3 changes: 3 additions & 0 deletions lang/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
other modules. It exists to augment what we would have liked to see in the JDK but does not exist.
</description>
<packaging>bundle</packaging>
<properties>
<module.name>lang</module.name>
</properties>

<dependencies>

Expand Down
6 changes: 5 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,9 @@
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
<manifestEntries>
<Automatic-Module-Name>org.apache.shiro.${module.name}</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</plugin>
Expand Down Expand Up @@ -1659,8 +1662,9 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<sourcepath>${project.build.sourceDirectory}</sourcepath>
<doclint>none</doclint>
<additionalJOptions>
<additionalJOption>-Xdoclint:none</additionalJOption>
<additionalJOption>--allow-script-in-comments</additionalJOption>
</additionalJOptions>
</configuration>
Expand Down
3 changes: 3 additions & 0 deletions samples/aspectj/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>samples-aspectj</artifactId>
<name>Apache Shiro :: Samples :: AspectJ</name>
<properties>
<module.name>samples.aspectj</module.name>
</properties>

<build>
<plugins>
Expand Down
3 changes: 3 additions & 0 deletions samples/quickstart-guice/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
<artifactId>samples-quickstart-guice</artifactId>
<name>Apache Shiro :: Samples :: Quick Start Guice</name>
<packaging>jar</packaging>
<properties>
<module.name>samples.quickstart.guice</module.name>
</properties>

<build>
<plugins>
Expand Down
3 changes: 3 additions & 0 deletions samples/quickstart/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
<artifactId>samples-quickstart</artifactId>
<name>Apache Shiro :: Samples :: Quick Start</name>
<packaging>jar</packaging>
<properties>
<module.name>samples.quickstart</module.name>
</properties>

<build>
<plugins>
Expand Down
3 changes: 3 additions & 0 deletions samples/spring-boot-web/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@

<artifactId>samples-spring-boot-web</artifactId>
<name>Apache Shiro :: Samples :: Spring Boot Web</name>
<properties>
<module.name>samples.spring.boot.web</module.name>
</properties>

<dependencies>

Expand Down
3 changes: 3 additions & 0 deletions samples/spring-boot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@

<artifactId>samples-spring-boot</artifactId>
<name>Apache Shiro :: Samples :: Spring Boot</name>
<properties>
<module.name>samples.spring.boot</module.name>
</properties>

<dependencies>

Expand Down
4 changes: 3 additions & 1 deletion samples/spring/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
<description>
Spring-based application sample demonstrating Shiro's capabilities.
</description>

<properties>
<module.name>samples.spring</module.name>
</properties>

<dependencies>
<dependency>
Expand Down
3 changes: 3 additions & 0 deletions support/aspectj/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
<artifactId>shiro-aspectj</artifactId>
<name>Apache Shiro :: Support :: AspectJ</name>
<packaging>bundle</packaging>
<properties>
<module.name>aspectj</module.name>
</properties>

<dependencies>
<dependency>
Expand Down
3 changes: 3 additions & 0 deletions support/cdi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
<artifactId>shiro-support</artifactId>
<version>2.0.0-SNAPSHOT</version>
</parent>
<properties>
<module.name>cdi</module.name>
</properties>

<dependencies>
<dependency>
Expand Down
3 changes: 3 additions & 0 deletions support/ehcache/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
<artifactId>shiro-ehcache</artifactId>
<name>Apache Shiro :: Support :: EHCache</name>
<packaging>bundle</packaging>
<properties>
<module.name>ehcache</module.name>
</properties>

<dependencies>
<dependency>
Expand Down
1 change: 1 addition & 0 deletions support/guice/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<packaging>bundle</packaging>

<properties>
<module.name>guice</module.name>
<japicmp.skip>true</japicmp.skip>
</properties>

Expand Down
1 change: 1 addition & 0 deletions support/hazelcast/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

<properties>
<hazelcast.osgi.importRange>[3, 4)</hazelcast.osgi.importRange>
<module.name>hazelcast</module.name>
</properties>

<dependencies>
Expand Down
1 change: 1 addition & 0 deletions support/jakarta-ee/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
</parent>

<properties>
<module.name>jakarta.ee</module.name>
<jacoco.skip>true</jacoco.skip>
</properties>

Expand Down
4 changes: 3 additions & 1 deletion support/jaxrs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
<artifactId>shiro-jaxrs</artifactId>
<name>Apache Shiro :: Support :: JAX-RS</name>
<packaging>bundle</packaging>

<properties>
<module.name>jaxrs</module.name>
</properties>

<dependencies>

Expand Down
2 changes: 1 addition & 1 deletion support/jcache/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<packaging>bundle</packaging>

<properties>

<module.name>jcache</module.name>
</properties>

<dependencies>
Expand Down
3 changes: 3 additions & 0 deletions support/quartz/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
<artifactId>shiro-quartz</artifactId>
<name>Apache Shiro :: Support :: Quartz</name>
<packaging>bundle</packaging>
<properties>
<module.name>quartz</module.name>
</properties>

<dependencies>
<dependency>
Expand Down
3 changes: 3 additions & 0 deletions support/servlet-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
<description>
Automatically deploys Shiro in a servlet container-based web application.
</description>
<properties>
<module.name>servlet.plugin</module.name>
</properties>

<dependencies>
<dependency>
Expand Down
3 changes: 3 additions & 0 deletions support/spring-boot/spring-boot-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@

<artifactId>shiro-spring-boot-starter</artifactId>
<name>Apache Shiro :: Support :: Spring Boot</name>
<properties>
<module.name>spring.boot.starter</module.name>
</properties>

<dependencies>

Expand Down
3 changes: 3 additions & 0 deletions support/spring-boot/spring-boot-web-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@

<artifactId>shiro-spring-boot-web-starter</artifactId>
<name>Apache Shiro :: Support :: Spring Boot Web</name>
<properties>
<module.name>spring.boot.web.starter</module.name>
</properties>

<dependencies>

Expand Down
3 changes: 3 additions & 0 deletions support/spring/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
<artifactId>shiro-spring</artifactId>
<name>Apache Shiro :: Support :: Spring</name>
<packaging>bundle</packaging>
<properties>
<module.name>spring</module.name>
</properties>

<dependencies>
<dependency>
Expand Down
3 changes: 3 additions & 0 deletions tools/hasher/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
<artifactId>shiro-tools-hasher</artifactId>
<name>Apache Shiro :: Tools :: Hasher</name>
<packaging>bundle</packaging>
<properties>
<module.name>tools.hasher</module.name>
</properties>

<dependencies>
<dependency>
Expand Down
3 changes: 3 additions & 0 deletions web/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
<artifactId>shiro-web</artifactId>
<name>Apache Shiro :: Web</name>
<packaging>bundle</packaging>
<properties>
<module.name>web</module.name>
</properties>

<dependencies>
<dependency>
Expand Down

0 comments on commit ff2275d

Please sign in to comment.