Skip to content

Commit ff36f23

Browse files
authored
flyway: fix broken build (#14491)
The lag of the local pre-built dependency version forced Maven to connect to the private repository, which in turn led to a fuzzing build error. It is now fixed by upgrading the local dependency version and adding build fault-tolerant parameters.
1 parent ba88b4d commit ff36f23

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

projects/flyway/build.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@
1717

1818
# Install mongo-jdbc-dependency required byu flyway
1919
cd mongo-jdbc-driver/
20-
git checkout v1.19
20+
git checkout v1.21
2121
./gradlew clean shadowJar
2222
$MVN install:install-file \
23-
-Dfile=../mongo-jdbc-driver/build/libs/mongo-jdbc-standalone-1.19.jar \
23+
-Dfile=../mongo-jdbc-driver/build/libs/mongo-jdbc-standalone-1.21.jar \
2424
-DgroupId=com.github.kornilova203 -DartifactId=mongo-jdbc-driver \
25-
-Dversion=1.19 -Dpackaging=jar -DgeneratePom=true
25+
-Dversion=1.21 -Dpackaging=jar -DgeneratePom=true
2626

2727
# Buuild flyway
2828
cd ../flyway
2929
$MVN clean package -Dmaven.javadoc.skip=true -DskipTests=true -Dpmd.skip=true \
3030
-Dencoding=UTF-8 -Dmaven.antrun.skip=true -Dcheckstyle.skip=true \
31-
-DperformRelease=True dependency:copy-dependencies
31+
-DperformRelease=True dependency:copy-dependencies -fn
3232

3333
JARFILE_LIST=
3434
for JARFILE in $(find ./ -name *.jar)

0 commit comments

Comments
 (0)