Skip to content

Commit

Permalink
Fixing maven targets
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Nov 29, 2017
1 parent 66b90f1 commit 5e6049b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ end
task :'maven-dry-run' => JAVA_RELEASE_TARGETS do |t|
t.prerequisites.each do |p|
if JAVA_RELEASE_TARGETS.include?(p)
Buck::buck_cmd.call('publish', ['--dry-run', '--remote-repo', 'https://oss.sonatype.org/service/local/staging/deploy/maven2', p])
Buck::buck_cmd('publish', ['--dry-run', '--remote-repo', 'https://oss.sonatype.org/service/local/staging/deploy/maven2', p])
end
end
end
Expand Down Expand Up @@ -502,15 +502,15 @@ task :'publish-maven' => JAVA_RELEASE_TARGETS do
creds = read_user_pass_from_m2_settings()
JAVA_RELEASE_TARGETS.each do |p|
if JAVA_RELEASE_TARGETS.include?(p)
Buck::buck_cmd.call('publish', ['--remote-repo', 'https://oss.sonatype.org/service/local/staging/deploy/maven2', '--include-source', '--include-docs', '-u', creds[0], '-p', creds[1], '--signing-passphrase', passphrase, p])
Buck::buck_cmd('publish', ['--remote-repo', 'https://oss.sonatype.org/service/local/staging/deploy/maven2', '--include-source', '--include-docs', '-u', creds[0], '-p', creds[1], '--signing-passphrase', passphrase, p])
end
end
end

task :'maven-install' do
JAVA_RELEASE_TARGETS.each do |p|
if JAVA_RELEASE_TARGETS.include?(p)
Buck::buck_cmd.call('publish', ['--remote-repo', "file://#{ENV['HOME']}/.m2/repository", '--include-source', '--include-docs', p])
Buck::buck_cmd('publish', ['--remote-repo', "file://#{ENV['HOME']}/.m2/repository", '--include-source', '--include-docs', p])
end
end
end
Expand Down

0 comments on commit 5e6049b

Please sign in to comment.