Skip to content

Commit 5fb1cfc

Browse files
committed
prompt user for passphrase
1 parent 6d361a4 commit 5fb1cfc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Rakefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,8 +552,11 @@ end
552552
task :'publish-maven' => JAVA_RELEASE_TARGETS do |t|
553553
t.prerequisites.each do |p|
554554
if JAVA_RELEASE_TARGETS.include?(p)
555+
puts "\n Enter Passphrase:"
556+
passphrase = STDIN.noecho(&:gets).chomp
557+
555558
creds = read_user_pass_from_m2_settings()
556-
Buck::buck_cmd.call('publish', ['--remote-repo', 'https://oss.sonatype.org/service/local/staging/deploy/maven2', '--include-source', '--include-javadoc', '-u', creds[0], '-p', creds[1], p])
559+
Buck::buck_cmd.call('publish', ['--remote-repo', 'https://oss.sonatype.org/service/local/staging/deploy/maven2', '--include-source', '--include-javadoc', '-u', creds[0], '-p', creds[1], '--signing-passphrase', passphrase, p])
557560
end
558561
end
559562
end

0 commit comments

Comments
 (0)