Skip to content

Commit

Permalink
flyway: Fix build
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Chan <[email protected]>
  • Loading branch information
arthurscchan committed Feb 13, 2025
1 parent 69e12f9 commit 0fdff2b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
3 changes: 2 additions & 1 deletion projects/flyway/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ RUN curl -L https://archive.apache.org/dist/maven/maven-3/3.6.3/binaries/apache-
rm -rf maven.zip

ENV MVN $SRC/maven/apache-maven-3.6.3/bin/mvn
RUN git clone https://github.com/DataGrip/mongo-jdbc-driver
RUN git clone --depth 1 https://github.com/flyway/flyway flyway
COPY *.sh *.java $SRC/
WORKDIR $SRC/flyway
WORKDIR $SRC/
14 changes: 13 additions & 1 deletion projects/flyway/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,18 @@
# limitations under the License.
#
##########################################################################

# Install mongo-jdbc-dependency required byu flyway
cd mongo-jdbc-driver/
git checkout v1.19
./gradlew clean shadowJar
$MVN install:install-file \
-Dfile=../mongo-jdbc-driver/build/libs/mongo-jdbc-standalone-1.19.jar \
-DgroupId=com.github.kornilova203 -DartifactId=mongo-jdbc-driver \
-Dversion=1.19 -Dpackaging=jar -DgeneratePom=true

# Buuild flyway
cd ../flyway
$MVN clean package -Dmaven.javadoc.skip=true -DskipTests=true -Dpmd.skip=true \
-Dencoding=UTF-8 -Dmaven.antrun.skip=true -Dcheckstyle.skip=true \
-DperformRelease=True dependency:copy-dependencies
Expand Down Expand Up @@ -44,7 +56,7 @@ cd $curr_dir
BUILD_CLASSPATH=$JAZZER_API_PATH:$OUT/jar_temp
RUNTIME_CLASSPATH=\$this_dir/jar_temp:\$this_dir

for fuzzer in $(find $SRC -name '*Fuzzer.java')
for fuzzer in $(find $SRC -maxdepth 1 -name '*Fuzzer.java')
do
fuzzer_basename=$(basename -s .java $fuzzer)
javac -cp $BUILD_CLASSPATH $fuzzer
Expand Down

0 comments on commit 0fdff2b

Please sign in to comment.