File: mvn-deploy.sh

package info (click to toggle)
google-auto-value-java 1.8.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 3,288 kB
  • sloc: java: 35,820; xml: 1,451; sh: 34; makefile: 10
file content (20 lines) | stat: -rwxr-xr-x 459 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
if [ $# -lt 1 ]; then
  echo "usage $0 <ssl-key> [<param> ...]"
  exit 1;
fi
key=${1}
shift
params=${@}

#validate key
keystatus=$(gpg --list-keys | grep ${key} | awk '{print $1}')
if [ "${keystatus}" != "pub" ]; then
  echo "Could not find public key with label ${key}"
  echo -n "Available keys from: "
  gpg --list-keys | grep --invert-match '^sub'

  exit 1
fi

mvn ${params} clean site:jar -P sonatype-oss-release -Dgpg.keyname=${key} deploy