forked from pool/maven-source-plugin
Compare commits
3 Commits
Author | SHA256 | Date | |
---|---|---|---|
adbd7bc4ba | |||
73c24a9aba | |||
7c3b1713c3 |
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:30297a32a273a7019da32c9e1cfe37c2b0696d82a7a73d8b086bbd1552ece841
|
|
||||||
size 174772
|
|
3
maven-source-plugin-3.3.1-source-release.zip
Normal file
3
maven-source-plugin-3.3.1-source-release.zip
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:fd4949e15b04a37e5e82a3a2fa2651c2f9fdf2a2bd33b5e0a521f4edcd09de31
|
||||||
|
size 214609
|
@@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 24 09:38:55 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
- Added patch:
|
||||||
|
* reproducible-from-environment.patch
|
||||||
|
+ SOURCE_DATE_EPOCH environmental variable triggers reproducible
|
||||||
|
use of the maven-source-plugin if it is not requested already
|
||||||
|
using the project.build.outputTimestamp option.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Mar 22 13:48:33 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
Tue Mar 22 13:48:33 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package maven-source-plugin
|
# spec file for package maven-source-plugin
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2024 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -17,13 +17,14 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: maven-source-plugin
|
Name: maven-source-plugin
|
||||||
Version: 3.0.1
|
Version: 3.3.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Plugin for creating source JARs
|
Summary: Plugin for creating source JARs
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
URL: https://maven.apache.org/plugins/maven-source-plugin/
|
URL: https://maven.apache.org/plugins/maven-source-plugin/
|
||||||
Source0: https://repo1.maven.org/maven2/org/apache/maven/plugins/%{name}/%{version}/%{name}-%{version}-source-release.zip
|
Source0: https://repo1.maven.org/maven2/org/apache/maven/plugins/%{name}/%{version}/%{name}-%{version}-source-release.zip
|
||||||
|
Patch0: reproducible-from-environment.patch
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: java-devel >= 1.8
|
BuildRequires: java-devel >= 1.8
|
||||||
BuildRequires: maven-local
|
BuildRequires: maven-local
|
||||||
@@ -33,7 +34,6 @@ BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
|
|||||||
BuildRequires: mvn(org.apache.maven.plugins:maven-plugins:pom:)
|
BuildRequires: mvn(org.apache.maven.plugins:maven-plugins:pom:)
|
||||||
BuildRequires: mvn(org.apache.maven:maven-archiver)
|
BuildRequires: mvn(org.apache.maven:maven-archiver)
|
||||||
BuildRequires: mvn(org.apache.maven:maven-artifact)
|
BuildRequires: mvn(org.apache.maven:maven-artifact)
|
||||||
BuildRequires: mvn(org.apache.maven:maven-compat)
|
|
||||||
BuildRequires: mvn(org.apache.maven:maven-core)
|
BuildRequires: mvn(org.apache.maven:maven-core)
|
||||||
BuildRequires: mvn(org.apache.maven:maven-model)
|
BuildRequires: mvn(org.apache.maven:maven-model)
|
||||||
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
|
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
|
||||||
@@ -54,6 +54,7 @@ API documentation for %{name}.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch -P 0 -p1
|
||||||
|
|
||||||
%{mvn_file} : %{name}
|
%{mvn_file} : %{name}
|
||||||
|
|
||||||
|
18
reproducible-from-environment.patch
Normal file
18
reproducible-from-environment.patch
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
diff -urEbwB maven-source-plugin-3.3.1.orig/src/main/java/org/apache/maven/plugins/source/AbstractSourceJarMojo.java maven-source-plugin-3.3.1/src/main/java/org/apache/maven/plugins/source/AbstractSourceJarMojo.java
|
||||||
|
--- maven-source-plugin-3.3.1.orig/src/main/java/org/apache/maven/plugins/source/AbstractSourceJarMojo.java 2024-09-24 08:52:01.065274036 +0200
|
||||||
|
+++ maven-source-plugin-3.3.1/src/main/java/org/apache/maven/plugins/source/AbstractSourceJarMojo.java 2024-09-24 08:52:08.211989382 +0200
|
||||||
|
@@ -390,6 +390,14 @@
|
||||||
|
archiver.setCreatedBy("Maven Source Plugin", "org.apache.maven.plugins", "maven-source-plugin");
|
||||||
|
archiver.setBuildJdkSpecDefaultEntry(false);
|
||||||
|
|
||||||
|
+ if ( outputTimestamp == null ||
|
||||||
|
+ outputTimestamp.length() < 1 ||
|
||||||
|
+ ( ( outputTimestamp.length() == 1 )
|
||||||
|
+ && !Character.isDigit( outputTimestamp.charAt(0) ) ) )
|
||||||
|
+ {
|
||||||
|
+ outputTimestamp = System.getenv("SOURCE_DATE_EPOCH");
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
// configure for Reproducible Builds based on outputTimestamp value
|
||||||
|
archiver.configureReproducibleBuild(outputTimestamp);
|
||||||
|
|
Reference in New Issue
Block a user