Skip to content

Commit 7370b61

Browse files
Enable Spotless verification for Android Port and add PR comments
- Added `spotless-maven-plugin` to `maven/android/pom.xml` configured for `Ports/Android/src`. - Updated `scripts/build-android-port.sh` to run `spotless:check` using JDK 17. - Updated `.github/workflows/scripts-android.yml` to generate and publish quality reports (including coverage) as a PR comment.
1 parent e7d6d4e commit 7370b61

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/build-android-port.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,7 @@ if [ ! -f "$BUILD_CLIENT" ]; then
131131
fi
132132
fi
133133

134-
run_maven -q -f maven/pom.xml -pl android -am -Dcn1.binaries="$CN1_BINARIES" -P !download-cn1-binaries -T 1C -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -Djava.awt.headless=true clean install spotless:check "$@"
134+
run_maven -q -f maven/pom.xml -pl android -am -Dcn1.binaries="$CN1_BINARIES" -P !download-cn1-binaries -T 1C -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -Djava.awt.headless=true clean install "$@"
135+
136+
log "Running Spotless verification..."
137+
JAVA_HOME="$JAVA17_HOME" run_maven -q -f maven/pom.xml -pl android -Dcn1.binaries="$CN1_BINARIES" -P !download-cn1-binaries -Djava.awt.headless=true com.diffplug.spotless:spotless-maven-plugin:check

0 commit comments

Comments
 (0)