File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -48,10 +48,11 @@ jobs:
4848 for attempt in 1 2 3; do
4949 echo "Attempt $attempt for MC $VERSION"
5050
51- if ./gradlew "Set active project to $VERSION" --no-daemon && \
52- ./gradlew build --no-daemon; then
51+ # Use --no-configuration-cache to avoid compatibility issues
52+ if ./gradlew "Set active project to $VERSION" --no-daemon --no-configuration-cache && \
53+ ./gradlew build --no-daemon --no-configuration-cache; then
5354 cp build/libs/*.jar all-builds/ 2>/dev/null || true
54- ./gradlew clean --no-daemon
55+ ./gradlew clean --no-daemon --no-configuration-cache
5556 BUILD_SUCCESS=true
5657 SUCCESS_COUNT=$((SUCCESS_COUNT + 1))
5758 echo "✓ Successfully built MC $VERSION"
6162 if [ $attempt -lt 3 ]; then
6263 echo "Build failed, retrying in 10 seconds..."
6364 sleep 10
64- ./gradlew clean --no-daemon || true
65+ ./gradlew clean --no-daemon --no-configuration-cache || true
6566 fi
6667 done
6768
7475 done
7576
7677 # Reset to default version
77- ./gradlew "Reset active project" --no-daemon || true
78+ ./gradlew "Reset active project" --no-daemon --no-configuration-cache || true
7879
7980 echo "========================================="
8081 echo "Build Summary"
You can’t perform that action at this time.
0 commit comments