Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/gradle/central-mirror.init.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
// a 404, so plugins that only the portal hosts still resolve.
//
// The Gradle steps in validation.yml and warm-caches.yml pass it with
// --init-script. The functionalTest task in flow-gradle-plugin/build.gradle
// --init-script. The unit-tests job in validation.yml copies it to
// ~/.gradle/init.d instead, as there exec-maven-plugin starts the
// flow-gradle-plugin build and cannot pass it. The functionalTest task in flow-gradle-plugin/build.gradle
// hands this script on to the nested TestKit builds, which run under a Gradle
// user home of their own and so would not see a script in ~/.gradle/init.d.
// It finds the script among the outer build's init scripts by its file name,
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,15 @@ jobs:
./scripts/computeMatrix.js set-version --version=999.99-SNAPSHOT
cmd="mvn install -B -ntp -DskipTests -pl \!flow-plugins/flow-gradle-plugin"
eval $cmd -T 2C -q || eval $cmd
- name: Route Gradle through the Central mirror
# The matrix job that includes flow-gradle-plugin builds it through
# exec-maven-plugin, which runs Gradle without --init-script and with
# an empty Gradle home, so the plugin resolution goes to Central via
# the Plugin Portal and fails with 429. A script in ~/.gradle/init.d
# reaches that Gradle run as well.
run: |
mkdir -p ~/.gradle/init.d
cp .github/gradle/central-mirror.init.gradle ~/.gradle/init.d/
- name: Unit Test
# A full run's expected length, generously above the longest seen, for
# runMavenWithRetry.sh to size a retry by: a transfer error usually
Expand Down
Loading