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 2019/09/08 19:02:13 UTC
[maven-source-plugin] branch MSOURCES-120 updated: remove
Build-Jdk-Spec manifest entry
This is an automated email from the ASF dual-hosted git repository.
hboutemy pushed a commit to branch MSOURCES-120
in repository https://gitbox.apache.org/repos/asf/maven-source-plugin.git
The following commit(s) were added to refs/heads/MSOURCES-120 by this push:
new f0439a6 remove Build-Jdk-Spec manifest entry
f0439a6 is described below
commit f0439a6e6337f050285655b708d7b9fe37bc86bd
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Sun Sep 8 21:02:09 2019 +0200
remove Build-Jdk-Spec manifest entry
---
src/it/reproducible/verify.groovy | 2 +-
.../java/org/apache/maven/plugins/source/AbstractSourceJarMojo.java | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/it/reproducible/verify.groovy b/src/it/reproducible/verify.groovy
index 40a864c..32ef105 100644
--- a/src/it/reproducible/verify.groovy
+++ b/src/it/reproducible/verify.groovy
@@ -73,6 +73,6 @@ zipFile.close();
String buf = r.toString()
println buf
-String expectedSha1 = System.properties['os.name'].toLowerCase().contains( 'windows' ) ? 'b2c3895976027f203f2a08610fc28bbe7dbc7a9e' : 'acf461ff37ddc3c44c620770a73d9cf42f7ca429'
+String expectedSha1 = System.properties['os.name'].toLowerCase().contains( 'windows' ) ? 'b2c3895976027f203f2a08610fc28bbe7dbc7a9e' : 'e684ad3e646ea1088946fed5f18c3b63d64ea6d4'
assert buf.startsWith( "reproducible-1.0-sources.jar sha1 = $expectedSha1" )
diff --git a/src/main/java/org/apache/maven/plugins/source/AbstractSourceJarMojo.java b/src/main/java/org/apache/maven/plugins/source/AbstractSourceJarMojo.java
index c90edac..736b439 100644
--- a/src/main/java/org/apache/maven/plugins/source/AbstractSourceJarMojo.java
+++ b/src/main/java/org/apache/maven/plugins/source/AbstractSourceJarMojo.java
@@ -423,6 +423,7 @@ public abstract class AbstractSourceJarMojo
MavenArchiver archiver = new MavenArchiver();
archiver.setArchiver( jarArchiver );
archiver.setCreatedBy( "Maven Source Plugin", "org.apache.maven.plugins", "maven-source-plugin" );
+ archiver.setBuildJdkSpecDefaultEntry( false );
if ( project.getBuild() != null )
{