From 816ebc43984dfa852f50d8ed493a45f4b2384c9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Boutemy?= Date: Tue, 29 Oct 2019 00:05:11 +0100 Subject: [PATCH] MSOURCES-120 fix reproducible IT: remove plugin version from pom.xml given that pom.xml is copied into output source jar that must not change over time --- src/it/reproducible/parent-pom.xml | 43 ++++++++++++++++++++++++++++++ src/it/reproducible/pom.xml | 9 ++++--- src/it/reproducible/verify.groovy | 2 +- 3 files changed, 50 insertions(+), 4 deletions(-) create mode 100644 src/it/reproducible/parent-pom.xml diff --git a/src/it/reproducible/parent-pom.xml b/src/it/reproducible/parent-pom.xml new file mode 100644 index 0000000..4616e50 --- /dev/null +++ b/src/it/reproducible/parent-pom.xml @@ -0,0 +1,43 @@ + + + + + 4.0.0 + + org.apache.maven.its + reproducible-parent + 1.0 + pom + + + + + + org.apache.maven.plugins + maven-source-plugin + @project.version@ + + + + + + diff --git a/src/it/reproducible/pom.xml b/src/it/reproducible/pom.xml index 7a42e57..e080fd5 100644 --- a/src/it/reproducible/pom.xml +++ b/src/it/reproducible/pom.xml @@ -23,9 +23,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - org.apache.maven.its + + org.apache.maven.its + reproducible-parent + 1.0 + ./parent-pom.xml + reproducible - 1.0 Test for reproducibility of jar @@ -39,7 +43,6 @@ org.apache.maven.plugins maven-source-plugin - @project.version@ diff --git a/src/it/reproducible/verify.groovy b/src/it/reproducible/verify.groovy index 648d05a..a8261c2 100644 --- a/src/it/reproducible/verify.groovy +++ b/src/it/reproducible/verify.groovy @@ -72,6 +72,6 @@ zipFile.close(); String buf = r.toString() println buf -String expectedSha1 = System.properties['os.name'].toLowerCase().contains( 'windows' ) ? 'bb0a48a052defa69102e698aa18c60dea41a546a' : '246b4536d1a7df35b06cea54329077a35e6b07d8' +String expectedSha1 = System.properties['os.name'].toLowerCase().contains( 'windows' ) ? '3fd3c6db6774db82e78bffc645930a186266e209' : 'bc56380204897bf99dea7849853a7d52f470e7d6' assert buf.startsWith( "reproducible-1.0-sources.jar sha1 = $expectedSha1" )