Skip to content

Commit

Permalink
Forces a check for updated snapshots on remote repositories for japic…
Browse files Browse the repository at this point in the history
…mp (#1581)

Motivation:

If we check API compatibility with a snapshot, always force maven to
check for updated snapshots on remote repositories.
  • Loading branch information
idelpivnitskiy authored May 26, 2021
1 parent 0cf4944 commit 426165d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/japicmp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ ARTIFACTS="$(ls -d -- */ | grep '^servicetalk-' | sed 's/.$//' | \

for ARTIFACT_ID in $ARTIFACTS
do
mvn -N dependency:get -DgroupId=$GROUP_ID -DartifactId=$ARTIFACT_ID -Dversion=$OLD_ST_VERSION \
mvn -N -U dependency:get -DgroupId=$GROUP_ID -DartifactId=$ARTIFACT_ID -Dversion=$OLD_ST_VERSION \
-Dtransitive=false >/dev/null
mvn -N dependency:get -DgroupId=$GROUP_ID -DartifactId=$ARTIFACT_ID -Dversion=$NEW_ST_VERSION \
mvn -N -U dependency:get -DgroupId=$GROUP_ID -DartifactId=$ARTIFACT_ID -Dversion=$NEW_ST_VERSION \
-Dtransitive=false >/dev/null
java -jar "$JAR_FILE" -b --ignore-missing-classes \
--old $BASEPATH/$ARTIFACT_ID/$OLD_ST_VERSION/$ARTIFACT_ID-$OLD_ST_VERSION.jar \
Expand Down

0 comments on commit 426165d

Please sign in to comment.