File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
src/main/java/org/apache/maven/plugins/gpg Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,12 @@ public class SigstoreSignAttachedMojo
7575 @ Parameter ( defaultValue = "${project}" , readonly = true , required = true )
7676 protected MavenProject project ;
7777
78+ /**
79+ * PoC: wait time before each file signature (in seconds)
80+ */
81+ @ Parameter ( property = "sigstore.wait" , defaultValue = "0" )
82+ private long wait ;
83+
7884 /**
7985 * Maven ProjectHelper
8086 */
@@ -181,6 +187,12 @@ else if ( project.getAttachedArtifacts().isEmpty() )
181187 KeylessSigner signer = KeylessSigner .builder ().sigstoreStagingDefaults ().build ();
182188 for ( SigningBundle bundleToSign : filesToSign )
183189 {
190+ if ( wait > 0 )
191+ {
192+ getLog ().info ( "waiting for " + wait + " seconds before signing" );
193+ Thread .sleep ( wait * 1000 );
194+ }
195+
184196 File fileToSign = bundleToSign .getSignature (); // reusing original GPG implementation where it's the signature: TODO change
185197
186198 KeylessSignature signature = signer .signFile ( fileToSign .toPath () );
You can’t perform that action at this time.
0 commit comments