Fix sporadic build failure
MODIFY
.github/workflows/ci.yml
.github/workflows/ci.yml
@@ -272,7 +272,8 @@ jobs:
key: ${{ runner.os }}-gradle-wrapper-cache-${{ hashFiles('examples/distro/gradle/wrapper/gradle-wrapper.properties') }}
- name: Local publish
- run: ./gradlew publishToMavenLocal
+ # javadoc task fails sporadically fetching https://docs.oracle.com/javase/8/docs/api/
+ run: ./gradlew publishToMavenLocal -x javadoc
- name: Build distro
run: ./gradlew build --init-script ../../.github/scripts/local.init.gradle.kts

MODIFY
.github/workflows/nightly-no-cache.yml
.github/workflows/nightly-no-cache.yml
@@ -176,7 +176,8 @@ jobs:
key: ${{ runner.os }}-gradle-wrapper-cache-${{ hashFiles('examples/distro/gradle/wrapper/gradle-wrapper.properties') }}
- name: Local publish
- run: ./gradlew publishToMavenLocal --no-build-cache
+ # javadoc task fails sporadically fetching https://docs.oracle.com/javase/8/docs/api/
+ run: ./gradlew publishToMavenLocal --no-build-cache -x javadoc
- name: Build distro
run: ./gradlew build --init-script ../../.github/scripts/local.init.gradle.kts --no-build-cache

MODIFY
.github/workflows/nightly.yml
.github/workflows/nightly.yml
@@ -272,7 +272,8 @@ jobs:
key: ${{ runner.os }}-gradle-wrapper-cache-${{ hashFiles('examples/distro/gradle/wrapper/gradle-wrapper.properties') }}
- name: Local publish
- run: ./gradlew publishToMavenLocal
+ # javadoc task fails sporadically fetching https://docs.oracle.com/javase/8/docs/api/
+ run: ./gradlew publishToMavenLocal -x javadoc
- name: Build distro
run: ./gradlew build --init-script ../../.github/scripts/local.init.gradle.kts

MODIFY
.github/workflows/pr.yml
.github/workflows/pr.yml
@@ -273,7 +273,8 @@ jobs:
key: ${{ runner.os }}-gradle-wrapper-cache-${{ hashFiles('examples/distro/gradle/wrapper/gradle-wrapper.properties') }}
- name: Local publish
- run: ./gradlew publishToMavenLocal
+ # javadoc task fails sporadically fetching https://docs.oracle.com/javase/8/docs/api/
+ run: ./gradlew publishToMavenLocal -x javadoc
- name: Build distro
run: ./gradlew build --init-script ../../.github/scripts/local.init.gradle.kts

Fix sporadic build failure (#4231)