Skip to content

Commit

Permalink
prompt user for passphrase
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Jul 28, 2016
1 parent 6d361a4 commit 5fb1cfc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -552,8 +552,11 @@ end
task :'publish-maven' => JAVA_RELEASE_TARGETS do |t|
t.prerequisites.each do |p|
if JAVA_RELEASE_TARGETS.include?(p)
puts "\n Enter Passphrase:"
passphrase = STDIN.noecho(&:gets).chomp

creds = read_user_pass_from_m2_settings()
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])
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])
end
end
end
Expand Down

0 comments on commit 5fb1cfc

Please sign in to comment.