Skip to content

Commit a003b24

Browse files
authored
Disable spotlessGroovy check (typetools#7732)
1 parent 75d38c0 commit a003b24

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

checker/bin-devel/test-misc.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ PLUME_SCRIPTS="$SCRIPT_DIR/.plume-scripts"
1818
## Code style and formatting
1919
JAVA_VER=$(java -version 2>&1 | head -1 | cut -d'"' -f2 | sed '/^1\./s///' | cut -d'.' -f1 | sed 's/-ea//')
2020
if [ "${JAVA_VER}" != "8" ] && [ "${JAVA_VER}" != "11" ]; then
21-
# spotlessGroovy often fails with: "java.io.IOException: Failed to provision P2 dependencies"
22-
echo "Starting: ./gradlew spotlessGroovy"
23-
./gradlew spotlessGroovy > /dev/null 2>&1 || (echo "spotlessGroovy failed" && sleep 60 && true)
24-
./gradlew spotlessCheck --warning-mode=all
21+
# # spotlessGroovy sometimes hangs and sometimes fails with:
22+
# # "java.io.IOException: Failed to provision P2 dependencies".
23+
# echo "Starting: ./gradlew spotlessGroovy"
24+
# ./gradlew spotlessGroovy > /dev/null 2>&1 || (echo "spotlessGroovy failed" && sleep 60 && true)
25+
# echo "Finished: ./gradlew spotlessGroovy"
26+
./gradlew spotlessCheck --warning-mode=all -x spotlessGroovy
2527
fi
2628
if grep -n -r --exclude-dir=build --exclude-dir=examples --exclude-dir=jtreg --exclude-dir=tests --exclude="*.astub" --exclude="*.tex" '^\(import static \|import .*\*;$\)'; then
2729
echo "Don't use static import or wildcard import"

0 commit comments

Comments
 (0)