xref: /aosp_15_r20/external/slf4j/release.sh (revision d4cc4a21ff30dee54251e974d02850809c70b030)
1
2# Javadoc
3
4#JDK8 - mvn site:site
5#rscpSLF4J apidocs/
6
7# JDK 11+
8# adding the following
9#mvn -Ddoclint=none -Dadditionalparam=-Xdoclint:none  javadoc:aggregate
10
11
12#mvn versions:set -DgenerateBackupPoms=false -DnewVersion=${VERSION_NUMBER}
13
14MVN='/java/maven-3.5.2//bin/mvn'
15
16function checkExit(){
17    if test "$?" != "0"; then
18      echo Command $1 exited with abnormal status
19      exit 1;
20    else echo $?
21    fi
22}
23
24function echoRunAndCheck () { # echo and then run the command
25  echo $1
26  $1
27  ret=$?
28  if test "$ret" != "0";
29  then
30     echo Failed command: $1
31     exit 1;
32  else echo Successful run: $1
33  fi
34}
35
36echoRunAndCheck "$MVN clean"
37
38echoRunAndCheck "$MVN install"
39
40#echoRunAndCheck "$MVN site:site"
41
42#echoRunAndCheck "$MVN javadoc:aggregate"
43
44#echoRunAndCheck "$MVN jxr:aggregate"
45
46
47if [ ! -z "$PASS"  ]
48then
49  export GPG_TTY=$(tty)
50  echoRunAndCheck "$MVN deploy -P javadocjar,sign-artifacts"
51fi
52
53
54git tag -m "tagging" -a v_${VERSION_NUMBER}
55git push --tags
56
57#Update release version and add next version on jira
58
59
60
61echo Full Success
62