This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-jar-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new fd9056d  [MJAR-323] add Java-Version to MANIFEST.MF (#468)
fd9056d is described below

commit fd9056d81e74c8b5c206ecd7c3708157bc9f94e4
Author: HervĂ© Boutemy <[email protected]>
AuthorDate: Fri Oct 10 07:17:06 2025 +0200

    [MJAR-323] add Java-Version to MANIFEST.MF (#468)
    
    cherry-picked from 3.x branch #465
    requires https://github.com/apache/maven-archiver/issues/299
---
 pom.xml                                                 | 4 ++--
 src/it/manifest-content/pom.xml                         | 3 +++
 src/it/manifest-content/{verify.grovy => verify.groovy} | 6 +++++-
 3 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/pom.xml b/pom.xml
index 9a7cabf..4a0a3af 100644
--- a/pom.xml
+++ b/pom.xml
@@ -78,11 +78,11 @@
 
     <guiceVersion>6.0.0</guiceVersion>
     <junitVersion>5.13.4</junitVersion>
-    <mavenArchiverVersion>4.0.0-beta-4</mavenArchiverVersion>
+    <mavenArchiverVersion>4.0.0-beta-5</mavenArchiverVersion>
     <mavenFileManagementVersion>3.2.0</mavenFileManagementVersion>
     <mavenPluginPluginVersion>4.0.0-beta-1</mavenPluginPluginVersion>
     <mavenPluginTestingVersion>4.0.0-beta-3</mavenPluginTestingVersion>
-    <plexusArchiverVersion>4.10.1</plexusArchiverVersion>
+    <plexusArchiverVersion>4.10.2</plexusArchiverVersion>
 
     
<version.maven-plugin-tools>${mavenPluginPluginVersion}</version.maven-plugin-tools>
     <version.plexus-xml>4.0.3</version.plexus-xml>
diff --git a/src/it/manifest-content/pom.xml b/src/it/manifest-content/pom.xml
index 40ca35d..a7e7ac5 100644
--- a/src/it/manifest-content/pom.xml
+++ b/src/it/manifest-content/pom.xml
@@ -27,6 +27,9 @@
   <organization>
     <name>jar plugin it</name>
   </organization>
+  <properties>
+    <maven.compiler.release>11</maven.compiler.release>
+  </properties>
   <build>
     <plugins>
       <plugin>
diff --git a/src/it/manifest-content/verify.grovy 
b/src/it/manifest-content/verify.groovy
similarity index 96%
rename from src/it/manifest-content/verify.grovy
rename to src/it/manifest-content/verify.groovy
index 2da7753..284149f 100644
--- a/src/it/manifest-content/verify.grovy
+++ b/src/it/manifest-content/verify.groovy
@@ -25,7 +25,6 @@ import java.util.zip.*;
 
 boolean result = true;
 
-
 try
 {
     File target = new File( basedir, "target" );
@@ -104,6 +103,11 @@ try
         return false;
     }
 
+    if ( !"11".equals( manifest.getValue( "Java-Version" ) ) )
+    {
+        System.err.println( "Java-Version not equals 11" );
+        return false;
+    }
 }
 catch( Throwable e )
 {

Reply via email to