You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2025/08/24 20:46:13 UTC
(maven-jar-plugin) 01/01: [MJAR-323] add Java-Version to MANIFEST.MF
This is an automated email from the ASF dual-hosted git repository.
hboutemy pushed a commit to branch MJAR-323
in repository https://gitbox.apache.org/repos/asf/maven-jar-plugin.git
commit aa7ec0dc1f29c9bf60bcb2505d965e1db68552cf
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Sun Aug 24 22:46:01 2025 +0200
[MJAR-323] add Java-Version to MANIFEST.MF
requires https://github.com/apache/maven-archiver/issues/259
---
pom.xml | 2 +-
src/it/manifest-content/pom.xml | 3 +++
src/it/manifest-content/verify.grovy | 5 +++++
3 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 4344210..54e7861 100644
--- a/pom.xml
+++ b/pom.xml
@@ -75,7 +75,7 @@
<properties>
<javaVersion>8</javaVersion>
<mavenVersion>3.9.11</mavenVersion>
- <mavenArchiverVersion>3.6.4</mavenArchiverVersion>
+ <mavenArchiverVersion>3.6.5-SNAPSHOT</mavenArchiverVersion>
<project.build.outputTimestamp>2024-06-16T12:09:50Z</project.build.outputTimestamp>
</properties>
diff --git a/src/it/manifest-content/pom.xml b/src/it/manifest-content/pom.xml
index fe8e270..56aaee6 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.grovy
index 2da7753..73f4436 100644
--- a/src/it/manifest-content/verify.grovy
+++ b/src/it/manifest-content/verify.grovy
@@ -104,6 +104,11 @@ try
return false;
}
+ if ( !"12".equals( manifest.get( "Java-Version" ) ) )
+ {
+ System.err.println( "Java-Version not equals 11" );
+ return false;
+ }
}
catch( Throwable e )
{