[java-oidc-common] branch main updated: GEN-266 - Seal as many jars as practical via Maven manifest customization

Phil Smart philip.smart at jisc.ac.uk
Tue Apr 27 11:17:52 UTC 2021


This is an automated email from the git hooks/post-receive script.

philsmart pushed a commit to branch main
in repository java-oidc-common.

View the commit online:
http://git.shibboleth.net/view/?p=java-oidc-common.git;a=commit;h=684431b387fc757ac00616ad9aabf2c835bbf221

The following commit(s) were added to refs/heads/main by this push:
       new  684431b   GEN-266 - Seal as many jars as practical via Maven manifest customization
684431b is described below

commit 684431b387fc757ac00616ad9aabf2c835bbf221
Author: Phil Smart <philip.smart at jisc.ac.uk>
AuthorDate: Tue Apr 27 12:17:50 2021 +0100

    GEN-266 - Seal as many jars as practical via Maven manifest
    customization
    
        - Seal all jars
        - Move some common manifest settings to parent
    
    https://issues.shibboleth.net/jira/browse/GEN-266
---
 oidc-common-dist/pom.xml   |  1 +
 oidc-common-plugin/pom.xml |  6 +-----
 pom.xml                    | 18 ++++++++++++++++++
 3 files changed, 20 insertions(+), 5 deletions(-)

diff --git a/oidc-common-dist/pom.xml b/oidc-common-dist/pom.xml
index 0900490..b0b0152 100644
--- a/oidc-common-dist/pom.xml
+++ b/oidc-common-dist/pom.xml
@@ -11,6 +11,7 @@
 	<artifactId>oidc-common-dist</artifactId>
 	<name>Shibboleth IdP :: Plugins :: OIDC Common :: Distribution</name>
 	<description>Distributiuon of the common OIDC plugin.</description>
+	<packaging>pom</packaging>
 
 	<properties>
 		<checkstyle.configLocation>${project.basedir}/../checkstyle.xml</checkstyle.configLocation>
diff --git a/oidc-common-plugin/pom.xml b/oidc-common-plugin/pom.xml
index d2c0aca..b22c466 100644
--- a/oidc-common-plugin/pom.xml
+++ b/oidc-common-plugin/pom.xml
@@ -37,11 +37,7 @@
 				<groupId>org.apache.maven.plugins</groupId>
 				<artifactId>maven-jar-plugin</artifactId>
 				<configuration>
-					<archive>
-						<index>true</index>
-						<manifestEntries>
-							<Automatic-Module-Name>${automatic.module.name}</Automatic-Module-Name>
-						</manifestEntries>
+					<archive>						
 						<manifestSections>
 							<manifestSection>
 								<name>net/shibboleth/oidc/common/</name>
diff --git a/pom.xml b/pom.xml
index bae31ff..5fd71ea 100644
--- a/pom.xml
+++ b/pom.xml
@@ -210,4 +210,22 @@
         <module>oidc-common-bom</module>
         <module>oidc-common-dist</module>
     </modules>
+    
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-jar-plugin</artifactId>
+                <configuration>
+                    <archive>
+                        <index>true</index>
+                        <manifestEntries>
+                            <Automatic-Module-Name>${automatic.module.name}</Automatic-Module-Name>
+                            <Sealed>true</Sealed>
+                        </manifestEntries>
+                    </archive>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
 </project>

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list