Skip to content

Commit

Permalink
fix: use maven wrapper in release scripts (#3015)
Browse files Browse the repository at this point in the history
  • Loading branch information
diegomarquezp authored Jun 28, 2024
1 parent 3c12ee5 commit 9bca063
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .kokoro/stage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ create_settings_xml_file $MAVEN_SETTINGS_FILE
export MAVEN_OPTS="--add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.text=ALL-UNNAMED --add-opens=java.desktop/java.awt.font=ALL-UNNAMED"

# run unit tests
mvn verify --show-version --batch-mode -Dorg.slf4j.simpleLogger.showDateTime=true -Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss:SSS
./mvnw verify --show-version --batch-mode -Dorg.slf4j.simpleLogger.showDateTime=true -Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss:SSS

# stage release
mvn deploy \
./mvnw deploy \
-Dorg.slf4j.simpleLogger.showDateTime=true -Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss:SSS \
--batch-mode \
--settings ${MAVEN_SETTINGS_FILE} \
Expand All @@ -49,7 +49,7 @@ export MAVEN_OPTS="--add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.
# promote release
if [[ -n "${AUTORELEASE_PR}" ]]
then
mvn nexus-staging:release \
./mvnw nexus-staging:release \
--batch-mode \
--settings ${MAVEN_SETTINGS_FILE} \
-Drelease=true \
Expand Down

0 comments on commit 9bca063

Please sign in to comment.