Skip to content

build: vendor kxml2 jar to eliminate JitPack dependency #1148

build: vendor kxml2 jar to eliminate JitPack dependency

build: vendor kxml2 jar to eliminate JitPack dependency #1148

Workflow file for this run

name: CommCare Core Build
on:
push:
branches:
- 'master'
- 'formplayer'
- 'kotlin-port'
pull_request:
branches:
- 'master'
- 'formplayer'
jobs:
build:
runs-on: ubuntu-latest
env:
JAVA_VERSION: '17'
steps:
- uses: actions/checkout@v6
- name: Set up Java
uses: actions/setup-java@v5
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: 'adopt'
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v5
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Build with Gradle (retry on dependency timeout)
run: |
# Retry up to 3 times to handle JitPack flakiness
for attempt in 1 2 3; do
echo "=== Build attempt $attempt ==="
if ./gradlew build --no-daemon; then
echo "Build succeeded on attempt $attempt"
exit 0
fi
if [ $attempt -lt 3 ]; then
echo "Build failed, retrying in 30s..."
sleep 30
fi
done
echo "Build failed after 3 attempts"
exit 1