diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a54081ce..e35cab13 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,6 +29,7 @@ jobs: - '.scalafmt.conf' - 'sbt' - 'sbt.bat' + - 'script/**' code_format: name: code format needs: changes diff --git a/.scala-steward.conf b/.scala-steward.conf new file mode 100644 index 00000000..7853e135 --- /dev/null +++ b/.scala-steward.conf @@ -0,0 +1,4 @@ +updates.pin = [ + # Hadoop 3.5+ requires Java 17, but snappy-java is tested on Java 8 and 11 + { groupId = "org.apache.hadoop", artifactId = "hadoop-common", version = "3.4." } +] diff --git a/script/test-jar-integration.sh b/script/test-jar-integration.sh index 9caa5fdd..63ba16d1 100755 --- a/script/test-jar-integration.sh +++ b/script/test-jar-integration.sh @@ -18,7 +18,7 @@ echo "Building JAR..." ./sbt package # Find the JAR -JAR_FILE=$(ls -t $(find target -name 'snappy-java-*.jar') | grep -v -e sources -e javadoc -e tests | head -1) +JAR_FILE=$(ls -t $(find target -path '*/snappy-java/snappy-java-*.jar') | grep -v -e sources -e javadoc -e tests | head -1) if [ -z "$JAR_FILE" ]; then echo "ERROR: Could not find snappy-java JAR" exit 1