aws-delivlib 14.3.21 → 14.3.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -76,6 +76,17 @@ echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
76
76
  found=false
77
77
  for pom in $(find ./java -name '*.pom'); do
78
78
  found=true
79
+
80
+ source_arg=""
81
+ if [[ -f ${pom/.pom/-sources.jar} ]]; then
82
+ source_arg="-Dsources=${pom/.pom/-sources.jar}"
83
+ fi
84
+
85
+ javadoc_arg=""
86
+ if [[ -f ${pom/.pom/-javadoc.jar} ]]; then
87
+ javadoc_arg="-Djavadoc=${pom/.pom/-javadoc.jar}"
88
+ fi
89
+
79
90
  $mvn --settings=${mvn_settings} gpg:sign-and-deploy-file \
80
91
  -Durl=file://${staging} \
81
92
  -DrepositoryId=maven-central \
@@ -84,8 +95,8 @@ for pom in $(find ./java -name '*.pom'); do
84
95
  -Dgpg.passphrase=${KEY_PASSPHRASE} \
85
96
  -DpomFile=${pom} \
86
97
  -Dfile=${pom/.pom/.jar} \
87
- -Dsources=${pom/.pom/-sources.jar} \
88
- -Djavadoc=${pom/.pom/-javadoc.jar}
98
+ $source_arg \
99
+ $javadoc_arg
89
100
  done
90
101
 
91
102
  if ! $found; then
package/package.json CHANGED
@@ -91,7 +91,7 @@
91
91
  },
92
92
  "main": "lib/index.js",
93
93
  "license": "Apache-2.0",
94
- "version": "14.3.21",
94
+ "version": "14.3.22",
95
95
  "jest": {
96
96
  "testMatch": [
97
97
  "**/lib/__tests__/**/?(*.)+(spec|test).js?(x)"