diff --git a/tools/maven-central/deploy.rb b/tools/maven-central/deploy.rb index 44abccfc9..929af9cd7 100755 --- a/tools/maven-central/deploy.rb +++ b/tools/maven-central/deploy.rb @@ -34,7 +34,14 @@ def get_passphrase(prompt="Enter your GPG Passphrase") ask(prompt) {|q| q.echo = false} end -version = '3.3.0.201403021825-r'.freeze +version = ARGV[0].freeze +if version =~ /\A(\d+\.\d+\.\d+)\.(\d{12})-(m\d|rc\d|r)\Z/ + printf "version %s qualifier %s classifier %s\n", $1, $2, $3 +else + printf "invalid version %s\n", version + abort +end + url = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/' repositoryId = 'sonatype-nexus-staging' puts "gpg passphrase ?" diff --git a/tools/maven-central/download.rb b/tools/maven-central/download.rb index 949e6242f..fc06f7da6 100755 --- a/tools/maven-central/download.rb +++ b/tools/maven-central/download.rb @@ -1,5 +1,12 @@ #!/usr/bin/env ruby -version = '3.3.0.201403021825-r'.freeze +version = ARGV[0].freeze +if version =~ /\A(\d+\.\d+\.\d+)\.(\d{12})-(m\d|rc\d|r)\Z/ + printf "version %s qualifier %s classifier %s\n", $1, $2, $3 +else + printf "invalid version %s\n", version + abort +end + group = 'org.eclipse.jgit' artifacts = [group, group + '.ant',