Repository navigation
ci: read Maven Central through the mirror in Gradle builds - #27463
Merged
Merged
Conversation
Gradle does not read Maven settings files, so the Gradle Tests job kept resolving mavenCentral() from repo.maven.apache.org after the Maven builds moved to the mirror. An init script redirects that host to the same mirror, and the functionalTest task passes the outer build's init scripts on to the nested TestKit builds, which use a Gradle user home of their own.
|
Artur-
marked this pull request as ready for review
November 27, 2026 08:39
Contributor
vaadin-review-bot
left a comment
Collaborator
There was a problem hiding this comment.
✅ Nothing to flag — the changes look good.
Artur-
approved these changes
Nov 27, 2026
totally-not-ai Bot
added a commit
to vaadin/hilla
that referenced
this pull request
Nov 27, 2026
## Summary CI builds read Maven Central through Google's mirror of it instead of `repo.maven.apache.org`. Central rate-limits by client IP, and GitHub-hosted runners share their IP ranges with every other project, so parallel jobs get 429 answers. This ports the same change from Flow's CI (vaadin/flow#27418 for Maven, vaadin/flow#27463 for Gradle). ## What changed - New `.github/maven/settings.xml` mirrors `central` to `https://maven-central.storage-download.googleapis.com/maven2/`. It keeps the id `central`, so artifacts already in the cached `~/.m2/repository` stay valid and are not downloaded again. - `validation.yml` and `pr-snapshot.yml` pass it to every `mvn` with `-gs` in `MAVEN_ARGS`. The user settings setup-java writes (the snapshot deploy credentials) still apply on top. - New `.github/gradle/central-mirror.init.gradle` points every Maven repository on `repo.maven.apache.org` at the mirror: plugin management, dependency resolution management, buildscript and project repositories. Gradle never reads Maven settings files, so it needs its own. - The shared setup action copies the init script into `~/.gradle/init.d`, so it reaches every Gradle build a job starts. That includes the Gradle build the gradle-plugin module's pom runs in its `prepare-package` phase during the full Maven reactor builds in `validation.yml` and `pr-snapshot.yml`, which gets neither the settings file nor a command-line init script. - The Gradle tests job passes the init script to the plugin build, its functional tests and the `kotlin-gradle-test` ITs. - The gradle-plugin's `functionalTest` task passes the outer build's init scripts on to the nested TestKit builds, which use a Gradle user home of their own. Without an init script nothing changes, so local runs behave as before. - No product code changes. ## Risk - CI now depends on the Google mirror being up and in sync with Central. A newly released artifact may show up there slightly later than on Central. - The jobs check out the pull request head. A branch that predates the settings file fails its Maven jobs until it merges main. - `claude.yml` is not changed, so Maven builds the agent runs there still read Central directly. Its Gradle builds use the mirror through the shared setup action. ## Test summary - Locally, Maven resolves `central` artifacts from the mirror with the settings file. - Locally, the gradle-plugin build and `kotlin-gradle-test` (Gradle 9.8 and 8.14) list the mirror instead of Central with the init script. - Locally, a gradle-plugin functional test passes with the init script, and its nested build downloads only from the mirror. - CI on this PR runs every Maven and Gradle job through the mirror. Working on behalf of @Artur- --------- Co-authored-by: totally-not-ai[bot] <290682512+totally-not-ai[bot]@users.noreply.github.com>
This was referenced Nov 27, 2026
Artur-
pushed a commit
to vaadin/hilla
that referenced
this pull request
Nov 28, 2026
…9) (#7215) This PR cherry-picks changes from the original PR #7202 to branch 24.9. Differences on 24.9: none in substance; the conflicts were only in surrounding context. --- #### Original PR description > ## Summary > CI builds read Maven Central through Google's mirror of it instead of `repo.maven.apache.org`. Central rate-limits by client IP, and GitHub-hosted runners share their IP ranges with every other project, so parallel jobs get 429 answers. This ports the same change from Flow's CI (vaadin/flow#27418 for Maven, vaadin/flow#27463 for Gradle). > > ## What changed > - New `.github/maven/settings.xml` mirrors `central` to `https://maven-central.storage-download.googleapis.com/maven2/`. It keeps the id `central`, so artifacts already in the cached `~/.m2/repository` stay valid and are not downloaded again. > - `validation.yml` and `pr-snapshot.yml` pass it to every `mvn` with `-gs` in `MAVEN_ARGS`. The user settings setup-java writes (the snapshot deploy credentials) still apply on top. > - New `.github/gradle/central-mirror.init.gradle` points every Maven repository on `repo.maven.apache.org` at the mirror: plugin management, dependency resolution management, buildscript and project repositories. Gradle never reads Maven settings files, so it needs its own. > - The shared setup action copies the init script into `~/.gradle/init.d`, so it reaches every Gradle build a job starts. That includes the Gradle build the gradle-plugin module's pom runs in its `prepare-package` phase during the full Maven reactor builds in `validation.yml` and `pr-snapshot.yml`, which gets neither the settings file nor a command-line init script. > - The Gradle tests job passes the init script to the plugin build, its functional tests and the `kotlin-gradle-test` ITs. > - The gradle-plugin's `functionalTest` task passes the outer build's init scripts on to the nested TestKit builds, which use a Gradle user home of their own. Without an init script nothing changes, so local runs behave as before. > - No product code changes. > > ## Risk > - CI now depends on the Google mirror being up and in sync with Central. A newly released artifact may show up there slightly later than on Central. > - The jobs check out the pull request head. A branch that predates the settings file fails its Maven jobs until it merges main. > - `claude.yml` is not changed, so Maven builds the agent runs there still read Central directly. Its Gradle builds use the mirror through the shared setup action. > > ## Test summary > - Locally, Maven resolves `central` artifacts from the mirror with the settings file. > - Locally, the gradle-plugin build and `kotlin-gradle-test` (Gradle 9.8 and 8.14) list the mirror instead of Central with the init script. > - Locally, a gradle-plugin functional test passes with the init script, and its nested build downloads only from the mirror. > - CI on this PR runs every Maven and Gradle job through the mirror. > > Working on behalf of @Artur- > > Working on behalf of @vaadin-bot Co-authored-by: totally-not-ai[bot] <290682512+totally-not-ai[bot]@users.noreply.github.com>
Artur-
pushed a commit
to vaadin/hilla
that referenced
this pull request
Nov 28, 2026
…5) (#7211) This PR cherry-picks changes from the original PR #7202 to branch 24.5. Differences on 24.5: the Gradle ITs on this branch are `single-module-tests` rather than `kotlin-gradle-test`, so the Gradle ITs step passes the init script to that build. Its nested build also gets the mirror through `~/.gradle/init.d`. Main's description below names the newer module. --- #### Original PR description > ## Summary > CI builds read Maven Central through Google's mirror of it instead of `repo.maven.apache.org`. Central rate-limits by client IP, and GitHub-hosted runners share their IP ranges with every other project, so parallel jobs get 429 answers. This ports the same change from Flow's CI (vaadin/flow#27418 for Maven, vaadin/flow#27463 for Gradle). > > ## What changed > - New `.github/maven/settings.xml` mirrors `central` to `https://maven-central.storage-download.googleapis.com/maven2/`. It keeps the id `central`, so artifacts already in the cached `~/.m2/repository` stay valid and are not downloaded again. > - `validation.yml` and `pr-snapshot.yml` pass it to every `mvn` with `-gs` in `MAVEN_ARGS`. The user settings setup-java writes (the snapshot deploy credentials) still apply on top. > - New `.github/gradle/central-mirror.init.gradle` points every Maven repository on `repo.maven.apache.org` at the mirror: plugin management, dependency resolution management, buildscript and project repositories. Gradle never reads Maven settings files, so it needs its own. > - The shared setup action copies the init script into `~/.gradle/init.d`, so it reaches every Gradle build a job starts. That includes the Gradle build the gradle-plugin module's pom runs in its `prepare-package` phase during the full Maven reactor builds in `validation.yml` and `pr-snapshot.yml`, which gets neither the settings file nor a command-line init script. > - The Gradle tests job passes the init script to the plugin build, its functional tests and the `kotlin-gradle-test` ITs. > - The gradle-plugin's `functionalTest` task passes the outer build's init scripts on to the nested TestKit builds, which use a Gradle user home of their own. Without an init script nothing changes, so local runs behave as before. > - No product code changes. > > ## Risk > - CI now depends on the Google mirror being up and in sync with Central. A newly released artifact may show up there slightly later than on Central. > - The jobs check out the pull request head. A branch that predates the settings file fails its Maven jobs until it merges main. > - `claude.yml` is not changed, so Maven builds the agent runs there still read Central directly. Its Gradle builds use the mirror through the shared setup action. > > ## Test summary > - Locally, Maven resolves `central` artifacts from the mirror with the settings file. > - Locally, the gradle-plugin build and `kotlin-gradle-test` (Gradle 9.8 and 8.14) list the mirror instead of Central with the init script. > - Locally, a gradle-plugin functional test passes with the init script, and its nested build downloads only from the mirror. > - CI on this PR runs every Maven and Gradle job through the mirror. > > Working on behalf of @Artur- > > Working on behalf of @vaadin-bot Co-authored-by: totally-not-ai[bot] <290682512+totally-not-ai[bot]@users.noreply.github.com>
Artur-
pushed a commit
to vaadin/hilla
that referenced
this pull request
Nov 28, 2026
…6) (#7212) This PR cherry-picks changes from the original PR #7202 to branch 24.6. Differences on 24.6: the Gradle ITs on this branch are `single-module-tests` rather than `kotlin-gradle-test`, so the Gradle ITs step passes the init script to that build. Its nested build also gets the mirror through `~/.gradle/init.d`. Main's description below names the newer module. --- #### Original PR description > ## Summary > CI builds read Maven Central through Google's mirror of it instead of `repo.maven.apache.org`. Central rate-limits by client IP, and GitHub-hosted runners share their IP ranges with every other project, so parallel jobs get 429 answers. This ports the same change from Flow's CI (vaadin/flow#27418 for Maven, vaadin/flow#27463 for Gradle). > > ## What changed > - New `.github/maven/settings.xml` mirrors `central` to `https://maven-central.storage-download.googleapis.com/maven2/`. It keeps the id `central`, so artifacts already in the cached `~/.m2/repository` stay valid and are not downloaded again. > - `validation.yml` and `pr-snapshot.yml` pass it to every `mvn` with `-gs` in `MAVEN_ARGS`. The user settings setup-java writes (the snapshot deploy credentials) still apply on top. > - New `.github/gradle/central-mirror.init.gradle` points every Maven repository on `repo.maven.apache.org` at the mirror: plugin management, dependency resolution management, buildscript and project repositories. Gradle never reads Maven settings files, so it needs its own. > - The shared setup action copies the init script into `~/.gradle/init.d`, so it reaches every Gradle build a job starts. That includes the Gradle build the gradle-plugin module's pom runs in its `prepare-package` phase during the full Maven reactor builds in `validation.yml` and `pr-snapshot.yml`, which gets neither the settings file nor a command-line init script. > - The Gradle tests job passes the init script to the plugin build, its functional tests and the `kotlin-gradle-test` ITs. > - The gradle-plugin's `functionalTest` task passes the outer build's init scripts on to the nested TestKit builds, which use a Gradle user home of their own. Without an init script nothing changes, so local runs behave as before. > - No product code changes. > > ## Risk > - CI now depends on the Google mirror being up and in sync with Central. A newly released artifact may show up there slightly later than on Central. > - The jobs check out the pull request head. A branch that predates the settings file fails its Maven jobs until it merges main. > - `claude.yml` is not changed, so Maven builds the agent runs there still read Central directly. Its Gradle builds use the mirror through the shared setup action. > > ## Test summary > - Locally, Maven resolves `central` artifacts from the mirror with the settings file. > - Locally, the gradle-plugin build and `kotlin-gradle-test` (Gradle 9.8 and 8.14) list the mirror instead of Central with the init script. > - Locally, a gradle-plugin functional test passes with the init script, and its nested build downloads only from the mirror. > - CI on this PR runs every Maven and Gradle job through the mirror. > > Working on behalf of @Artur- > > Working on behalf of @vaadin-bot Co-authored-by: totally-not-ai[bot] <290682512+totally-not-ai[bot]@users.noreply.github.com>
Artur-
pushed a commit
to vaadin/hilla
that referenced
this pull request
Nov 28, 2026
…7) (#7213) This PR cherry-picks changes from the original PR #7202 to branch 24.7. Differences on 24.7: none in substance; the conflicts were only in surrounding context. --- #### Original PR description > ## Summary > CI builds read Maven Central through Google's mirror of it instead of `repo.maven.apache.org`. Central rate-limits by client IP, and GitHub-hosted runners share their IP ranges with every other project, so parallel jobs get 429 answers. This ports the same change from Flow's CI (vaadin/flow#27418 for Maven, vaadin/flow#27463 for Gradle). > > ## What changed > - New `.github/maven/settings.xml` mirrors `central` to `https://maven-central.storage-download.googleapis.com/maven2/`. It keeps the id `central`, so artifacts already in the cached `~/.m2/repository` stay valid and are not downloaded again. > - `validation.yml` and `pr-snapshot.yml` pass it to every `mvn` with `-gs` in `MAVEN_ARGS`. The user settings setup-java writes (the snapshot deploy credentials) still apply on top. > - New `.github/gradle/central-mirror.init.gradle` points every Maven repository on `repo.maven.apache.org` at the mirror: plugin management, dependency resolution management, buildscript and project repositories. Gradle never reads Maven settings files, so it needs its own. > - The shared setup action copies the init script into `~/.gradle/init.d`, so it reaches every Gradle build a job starts. That includes the Gradle build the gradle-plugin module's pom runs in its `prepare-package` phase during the full Maven reactor builds in `validation.yml` and `pr-snapshot.yml`, which gets neither the settings file nor a command-line init script. > - The Gradle tests job passes the init script to the plugin build, its functional tests and the `kotlin-gradle-test` ITs. > - The gradle-plugin's `functionalTest` task passes the outer build's init scripts on to the nested TestKit builds, which use a Gradle user home of their own. Without an init script nothing changes, so local runs behave as before. > - No product code changes. > > ## Risk > - CI now depends on the Google mirror being up and in sync with Central. A newly released artifact may show up there slightly later than on Central. > - The jobs check out the pull request head. A branch that predates the settings file fails its Maven jobs until it merges main. > - `claude.yml` is not changed, so Maven builds the agent runs there still read Central directly. Its Gradle builds use the mirror through the shared setup action. > > ## Test summary > - Locally, Maven resolves `central` artifacts from the mirror with the settings file. > - Locally, the gradle-plugin build and `kotlin-gradle-test` (Gradle 9.8 and 8.14) list the mirror instead of Central with the init script. > - Locally, a gradle-plugin functional test passes with the init script, and its nested build downloads only from the mirror. > - CI on this PR runs every Maven and Gradle job through the mirror. > > Working on behalf of @Artur- > > Working on behalf of @vaadin-bot Co-authored-by: totally-not-ai[bot] <290682512+totally-not-ai[bot]@users.noreply.github.com>
Artur-
pushed a commit
to vaadin/hilla
that referenced
this pull request
Nov 28, 2026
…8) (#7214) This PR cherry-picks changes from the original PR #7202 to branch 24.8. Differences on 24.8: none in substance; the conflicts were only in surrounding context. --- #### Original PR description > ## Summary > CI builds read Maven Central through Google's mirror of it instead of `repo.maven.apache.org`. Central rate-limits by client IP, and GitHub-hosted runners share their IP ranges with every other project, so parallel jobs get 429 answers. This ports the same change from Flow's CI (vaadin/flow#27418 for Maven, vaadin/flow#27463 for Gradle). > > ## What changed > - New `.github/maven/settings.xml` mirrors `central` to `https://maven-central.storage-download.googleapis.com/maven2/`. It keeps the id `central`, so artifacts already in the cached `~/.m2/repository` stay valid and are not downloaded again. > - `validation.yml` and `pr-snapshot.yml` pass it to every `mvn` with `-gs` in `MAVEN_ARGS`. The user settings setup-java writes (the snapshot deploy credentials) still apply on top. > - New `.github/gradle/central-mirror.init.gradle` points every Maven repository on `repo.maven.apache.org` at the mirror: plugin management, dependency resolution management, buildscript and project repositories. Gradle never reads Maven settings files, so it needs its own. > - The shared setup action copies the init script into `~/.gradle/init.d`, so it reaches every Gradle build a job starts. That includes the Gradle build the gradle-plugin module's pom runs in its `prepare-package` phase during the full Maven reactor builds in `validation.yml` and `pr-snapshot.yml`, which gets neither the settings file nor a command-line init script. > - The Gradle tests job passes the init script to the plugin build, its functional tests and the `kotlin-gradle-test` ITs. > - The gradle-plugin's `functionalTest` task passes the outer build's init scripts on to the nested TestKit builds, which use a Gradle user home of their own. Without an init script nothing changes, so local runs behave as before. > - No product code changes. > > ## Risk > - CI now depends on the Google mirror being up and in sync with Central. A newly released artifact may show up there slightly later than on Central. > - The jobs check out the pull request head. A branch that predates the settings file fails its Maven jobs until it merges main. > - `claude.yml` is not changed, so Maven builds the agent runs there still read Central directly. Its Gradle builds use the mirror through the shared setup action. > > ## Test summary > - Locally, Maven resolves `central` artifacts from the mirror with the settings file. > - Locally, the gradle-plugin build and `kotlin-gradle-test` (Gradle 9.8 and 8.14) list the mirror instead of Central with the init script. > - Locally, a gradle-plugin functional test passes with the init script, and its nested build downloads only from the mirror. > - CI on this PR runs every Maven and Gradle job through the mirror. > > Working on behalf of @Artur- > > Working on behalf of @vaadin-bot Co-authored-by: totally-not-ai[bot] <290682512+totally-not-ai[bot]@users.noreply.github.com>
Artur-
pushed a commit
to vaadin/hilla
that referenced
this pull request
Nov 28, 2026
…10) (#7209) This PR cherry-picks changes from the original PR #7202 to branch 24.10. Differences on 24.10: none in substance; the conflicts were only in surrounding context. --- #### Original PR description > ## Summary > CI builds read Maven Central through Google's mirror of it instead of `repo.maven.apache.org`. Central rate-limits by client IP, and GitHub-hosted runners share their IP ranges with every other project, so parallel jobs get 429 answers. This ports the same change from Flow's CI (vaadin/flow#27418 for Maven, vaadin/flow#27463 for Gradle). > > ## What changed > - New `.github/maven/settings.xml` mirrors `central` to `https://maven-central.storage-download.googleapis.com/maven2/`. It keeps the id `central`, so artifacts already in the cached `~/.m2/repository` stay valid and are not downloaded again. > - `validation.yml` and `pr-snapshot.yml` pass it to every `mvn` with `-gs` in `MAVEN_ARGS`. The user settings setup-java writes (the snapshot deploy credentials) still apply on top. > - New `.github/gradle/central-mirror.init.gradle` points every Maven repository on `repo.maven.apache.org` at the mirror: plugin management, dependency resolution management, buildscript and project repositories. Gradle never reads Maven settings files, so it needs its own. > - The shared setup action copies the init script into `~/.gradle/init.d`, so it reaches every Gradle build a job starts. That includes the Gradle build the gradle-plugin module's pom runs in its `prepare-package` phase during the full Maven reactor builds in `validation.yml` and `pr-snapshot.yml`, which gets neither the settings file nor a command-line init script. > - The Gradle tests job passes the init script to the plugin build, its functional tests and the `kotlin-gradle-test` ITs. > - The gradle-plugin's `functionalTest` task passes the outer build's init scripts on to the nested TestKit builds, which use a Gradle user home of their own. Without an init script nothing changes, so local runs behave as before. > - No product code changes. > > ## Risk > - CI now depends on the Google mirror being up and in sync with Central. A newly released artifact may show up there slightly later than on Central. > - The jobs check out the pull request head. A branch that predates the settings file fails its Maven jobs until it merges main. > - `claude.yml` is not changed, so Maven builds the agent runs there still read Central directly. Its Gradle builds use the mirror through the shared setup action. > > ## Test summary > - Locally, Maven resolves `central` artifacts from the mirror with the settings file. > - Locally, the gradle-plugin build and `kotlin-gradle-test` (Gradle 9.8 and 8.14) list the mirror instead of Central with the init script. > - Locally, a gradle-plugin functional test passes with the init script, and its nested build downloads only from the mirror. > - CI on this PR runs every Maven and Gradle job through the mirror. > > Working on behalf of @Artur- > > Working on behalf of @vaadin-bot Co-authored-by: totally-not-ai[bot] <290682512+totally-not-ai[bot]@users.noreply.github.com>
Artur-
pushed a commit
to vaadin/hilla
that referenced
this pull request
Nov 28, 2026
…0) (#7216) This PR cherry-picks changes from the original PR #7202 to branch 25.0. Differences on 25.0: none in substance; the conflicts were only in surrounding context. --- #### Original PR description > ## Summary > CI builds read Maven Central through Google's mirror of it instead of `repo.maven.apache.org`. Central rate-limits by client IP, and GitHub-hosted runners share their IP ranges with every other project, so parallel jobs get 429 answers. This ports the same change from Flow's CI (vaadin/flow#27418 for Maven, vaadin/flow#27463 for Gradle). > > ## What changed > - New `.github/maven/settings.xml` mirrors `central` to `https://maven-central.storage-download.googleapis.com/maven2/`. It keeps the id `central`, so artifacts already in the cached `~/.m2/repository` stay valid and are not downloaded again. > - `validation.yml` and `pr-snapshot.yml` pass it to every `mvn` with `-gs` in `MAVEN_ARGS`. The user settings setup-java writes (the snapshot deploy credentials) still apply on top. > - New `.github/gradle/central-mirror.init.gradle` points every Maven repository on `repo.maven.apache.org` at the mirror: plugin management, dependency resolution management, buildscript and project repositories. Gradle never reads Maven settings files, so it needs its own. > - The shared setup action copies the init script into `~/.gradle/init.d`, so it reaches every Gradle build a job starts. That includes the Gradle build the gradle-plugin module's pom runs in its `prepare-package` phase during the full Maven reactor builds in `validation.yml` and `pr-snapshot.yml`, which gets neither the settings file nor a command-line init script. > - The Gradle tests job passes the init script to the plugin build, its functional tests and the `kotlin-gradle-test` ITs. > - The gradle-plugin's `functionalTest` task passes the outer build's init scripts on to the nested TestKit builds, which use a Gradle user home of their own. Without an init script nothing changes, so local runs behave as before. > - No product code changes. > > ## Risk > - CI now depends on the Google mirror being up and in sync with Central. A newly released artifact may show up there slightly later than on Central. > - The jobs check out the pull request head. A branch that predates the settings file fails its Maven jobs until it merges main. > - `claude.yml` is not changed, so Maven builds the agent runs there still read Central directly. Its Gradle builds use the mirror through the shared setup action. > > ## Test summary > - Locally, Maven resolves `central` artifacts from the mirror with the settings file. > - Locally, the gradle-plugin build and `kotlin-gradle-test` (Gradle 9.8 and 8.14) list the mirror instead of Central with the init script. > - Locally, a gradle-plugin functional test passes with the init script, and its nested build downloads only from the mirror. > - CI on this PR runs every Maven and Gradle job through the mirror. > > Working on behalf of @Artur- > > Working on behalf of @vaadin-bot Co-authored-by: totally-not-ai[bot] <290682512+totally-not-ai[bot]@users.noreply.github.com>
Artur-
pushed a commit
that referenced
this pull request
Nov 30, 2026
…CP: 24.6) (#27519) This PR cherry-picks changes from the original PR #27463 to branch 24.6. The original commit conflicts on 24.6, so this PR picks the 24.7 pick #27518 instead, which already adapted the change to an older branch. > [!WARNING] > The conflicts of the 24.7 pick #27518 were resolved automatically by Claude Code, and this pick builds on them. Please review the changes carefully. --- > Follow-up to #27418 > > **build failure** · CI · the Gradle Tests and warm-caches jobs > > The Maven builds in CI now read Maven Central through Google's mirror to avoid 429 answers, but Gradle never reads Maven settings files. The Gradle plugin's build and the sample builds its functional tests run still went to repo.maven.apache.org. They now use the same mirror. > > **Risks:** > -⚠️ The Gradle jobs now depend on the mirror being up and in sync with Central, like the Maven jobs already do. > - ✅ No product code changes: only CI and the Gradle plugin's test harness. > > **Context.** The functional tests start nested builds through TestKit, which uses a Gradle user home of its own. An init script in `~/.gradle/init.d` or passed to the outer build does not reach them unless it is passed on explicitly. > > - Added `.github/gradle/central-mirror.init.gradle`, which points every Maven repository on repo.maven.apache.org at the mirror: plugin management, dependency resolution management, buildscript and project repositories. > - `validation.yml` (Gradle Tests) and `warm-caches.yml` (Gradle home warm-up) pass it with `--init-script`. Both need it: Gradle caches metadata per repository URL, so a home warmed from Central would not serve lookups against the mirror. > - The `functionalTest` task passes the outer build's init scripts to `TestProject`, which adds them to every nested build. Without a script nothing changes, so local runs behave as before. > - The Gradle Tests job now also runs when a file under `.github/gradle/` changes. > Co-authored-by: totally-not-ai[bot] <290682512+totally-not-ai[bot]@users.noreply.github.com>
Artur-
pushed a commit
that referenced
this pull request
Nov 30, 2026
…CP: 24.5) (#27520) This PR cherry-picks changes from the original PR #27463 to branch 24.5. The original commit conflicts on 24.5, so this PR picks the 24.6 pick #27519 instead, which already adapted the change to an older branch. > [!WARNING] > The conflicts of the 24.6 pick #27519 were resolved automatically by Claude Code, and this pick builds on them. Please review the changes carefully. --- > Follow-up to #27418 > > **build failure** · CI · the Gradle Tests and warm-caches jobs > > The Maven builds in CI now read Maven Central through Google's mirror to avoid 429 answers, but Gradle never reads Maven settings files. The Gradle plugin's build and the sample builds its functional tests run still went to repo.maven.apache.org. They now use the same mirror. > > **Risks:** > -⚠️ The Gradle jobs now depend on the mirror being up and in sync with Central, like the Maven jobs already do. > - ✅ No product code changes: only CI and the Gradle plugin's test harness. > > **Context.** The functional tests start nested builds through TestKit, which uses a Gradle user home of its own. An init script in `~/.gradle/init.d` or passed to the outer build does not reach them unless it is passed on explicitly. > > - Added `.github/gradle/central-mirror.init.gradle`, which points every Maven repository on repo.maven.apache.org at the mirror: plugin management, dependency resolution management, buildscript and project repositories. > - `validation.yml` (Gradle Tests) and `warm-caches.yml` (Gradle home warm-up) pass it with `--init-script`. Both need it: Gradle caches metadata per repository URL, so a home warmed from Central would not serve lookups against the mirror. > - The `functionalTest` task passes the outer build's init scripts to `TestProject`, which adds them to every nested build. Without a script nothing changes, so local runs behave as before. > - The Gradle Tests job now also runs when a file under `.github/gradle/` changes. > Co-authored-by: totally-not-ai[bot] <290682512+totally-not-ai[bot]@users.noreply.github.com>
Artur-
pushed a commit
that referenced
this pull request
Nov 30, 2026
…CP: 24.4) (#27521) This PR cherry-picks changes from the original PR #27463 to branch 24.4. The original commit conflicts on 24.4, so this PR picks the 24.5 pick #27520 instead, which already adapted the change to an older branch. > [!WARNING] > The conflicts of the 24.5 pick #27520 were resolved automatically by Claude Code, and this pick builds on them. Please review the changes carefully. --- > Follow-up to #27418 > > **build failure** · CI · the Gradle Tests and warm-caches jobs > > The Maven builds in CI now read Maven Central through Google's mirror to avoid 429 answers, but Gradle never reads Maven settings files. The Gradle plugin's build and the sample builds its functional tests run still went to repo.maven.apache.org. They now use the same mirror. > > **Risks:** > -⚠️ The Gradle jobs now depend on the mirror being up and in sync with Central, like the Maven jobs already do. > - ✅ No product code changes: only CI and the Gradle plugin's test harness. > > **Context.** The functional tests start nested builds through TestKit, which uses a Gradle user home of its own. An init script in `~/.gradle/init.d` or passed to the outer build does not reach them unless it is passed on explicitly. > > - Added `.github/gradle/central-mirror.init.gradle`, which points every Maven repository on repo.maven.apache.org at the mirror: plugin management, dependency resolution management, buildscript and project repositories. > - `validation.yml` (Gradle Tests) and `warm-caches.yml` (Gradle home warm-up) pass it with `--init-script`. Both need it: Gradle caches metadata per repository URL, so a home warmed from Central would not serve lookups against the mirror. > - The `functionalTest` task passes the outer build's init scripts to `TestProject`, which adds them to every nested build. Without a script nothing changes, so local runs behave as before. > - The Gradle Tests job now also runs when a file under `.github/gradle/` changes. > Co-authored-by: totally-not-ai[bot] <290682512+totally-not-ai[bot]@users.noreply.github.com>
Artur-
pushed a commit
that referenced
this pull request
Nov 30, 2026
…CP: 23.6) (#27522) This PR cherry-picks changes from the original PR #27463 to branch 23.6. The original commit conflicts on 23.6, so this PR picks the 24.4 pick #27521 instead, which already adapted the change to an older branch. > [!WARNING] > The cherry-pick had merge conflicts that were resolved automatically by Claude Code. Please review the changes carefully. **Resolution notes from Claude:** - build.gradle: kept 23.6's `vaadin.version` environment setting on the functionalTest task and added the `functionalTest.initScripts` system property after it. - TestUtils.kt: 23.6's `createGradleRunner()` has no `debug` parameter (always `withDebug(true)`, Gradle 7.6.4) and no gradle.properties `init` block; kept those as they are and only added `initScriptArgs` to the arguments in `build()` and `buildAndFail()`. The 24.4 differences come from changes not on 23.6 (#17979/#17989 Gradle plugin maintenance, the 24.4 stability backport #27338); they are not needed for this change. - warm-caches.yml from the original PR is not included: the workflow does not exist on 23.6 (the 24.4 pick dropped it too). - Not verified locally: the Gradle plugin is not in the Maven reactor on JDK >= 18 and Gradle 7.6.4 cannot run on the available JDK 21, so neither the build nor the formatter ran on it. The formatter only covers Java, and no Java files changed. CI's Gradle Tests job compiles and runs the functional tests. --- > Follow-up to #27418 > > **build failure** · CI · the Gradle Tests and warm-caches jobs > > The Maven builds in CI now read Maven Central through Google's mirror to avoid 429 answers, but Gradle never reads Maven settings files. The Gradle plugin's build and the sample builds its functional tests run still went to repo.maven.apache.org. They now use the same mirror. > > **Risks:** > -⚠️ The Gradle jobs now depend on the mirror being up and in sync with Central, like the Maven jobs already do. > - ✅ No product code changes: only CI and the Gradle plugin's test harness. > > **Context.** The functional tests start nested builds through TestKit, which uses a Gradle user home of its own. An init script in `~/.gradle/init.d` or passed to the outer build does not reach them unless it is passed on explicitly. > > - Added `.github/gradle/central-mirror.init.gradle`, which points every Maven repository on repo.maven.apache.org at the mirror: plugin management, dependency resolution management, buildscript and project repositories. > - `validation.yml` (Gradle Tests) and `warm-caches.yml` (Gradle home warm-up) pass it with `--init-script`. Both need it: Gradle caches metadata per repository URL, so a home warmed from Central would not serve lookups against the mirror. > - The `functionalTest` task passes the outer build's init scripts to `TestProject`, which adds them to every nested build. Without a script nothing changes, so local runs behave as before. > - The Gradle Tests job now also runs when a file under `.github/gradle/` changes. > Co-authored-by: totally-not-ai[bot] <290682512+totally-not-ai[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Artur-
pushed a commit
that referenced
this pull request
Nov 30, 2026
…CP: 24.8) (#27517) This PR cherry-picks changes from the original PR #27463 to branch 24.8. The original commit conflicts on 24.8, so this PR picks the 24.9 pick #27516 instead, which already adapted the change to an older branch. > [!WARNING] > The cherry-pick had merge conflicts that were resolved automatically by Claude Code. Please review the changes carefully. **Resolution notes from Claude:** - build.gradle: kept only the new functionalTest.initScripts system property; dropped the environment('vaadin.version', ...) lines that came in as conflict context. They belong to the build.gradle part of #25428 (ci: run the Gradle plugin tests in GitHub Actions), which is missing on 24.8. - TestUtils.kt, validation.yml and central-mirror.init.gradle applied cleanly from the 24.9 pick. warm-caches.yml does not exist on 24.8 (and was not part of the 24.9 pick either), so no change was made there. - Verified: mvn install -DskipTests -Pgradle -pl flow-plugins/flow-gradle-plugin -am succeeds. That Gradle build skips functionalTest, so the changed TestUtils.kt was not compiled locally (the sandbox did not allow running gradlew directly). The functional tests and the CI workflow change were not run either. - formatter:format made no changes; no Java files are touched. --- > Follow-up to #27418 > > **build failure** · CI · the Gradle Tests and warm-caches jobs > > The Maven builds in CI now read Maven Central through Google's mirror to avoid 429 answers, but Gradle never reads Maven settings files. The Gradle plugin's build and the sample builds its functional tests run still went to repo.maven.apache.org. They now use the same mirror. > > **Risks:** > -⚠️ The Gradle jobs now depend on the mirror being up and in sync with Central, like the Maven jobs already do. > - ✅ No product code changes: only CI and the Gradle plugin's test harness. > > **Context.** The functional tests start nested builds through TestKit, which uses a Gradle user home of its own. An init script in `~/.gradle/init.d` or passed to the outer build does not reach them unless it is passed on explicitly. > > - Added `.github/gradle/central-mirror.init.gradle`, which points every Maven repository on repo.maven.apache.org at the mirror: plugin management, dependency resolution management, buildscript and project repositories. > - `validation.yml` (Gradle Tests) and `warm-caches.yml` (Gradle home warm-up) pass it with `--init-script`. Both need it: Gradle caches metadata per repository URL, so a home warmed from Central would not serve lookups against the mirror. > - The `functionalTest` task passes the outer build's init scripts to `TestProject`, which adds them to every nested build. Without a script nothing changes, so local runs behave as before. > - The Gradle Tests job now also runs when a file under `.github/gradle/` changes. > Co-authored-by: totally-not-ai[bot] <290682512+totally-not-ai[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Artur-
pushed a commit
that referenced
this pull request
Nov 30, 2026
…CP: 24.9) (#27516) This PR cherry-picks changes from the original PR #27463 to branch 24.9. The original commit conflicts on 24.9, so this PR picks the 24.10 pick #27515 instead, which already adapted the change to an older branch. > [!WARNING] > The conflicts of the 24.10 pick #27515 were resolved automatically by Claude Code, and this pick builds on them. Please review the changes carefully. --- > Follow-up to #27418 > > **build failure** · CI · the Gradle Tests and warm-caches jobs > > The Maven builds in CI now read Maven Central through Google's mirror to avoid 429 answers, but Gradle never reads Maven settings files. The Gradle plugin's build and the sample builds its functional tests run still went to repo.maven.apache.org. They now use the same mirror. > > **Risks:** > -⚠️ The Gradle jobs now depend on the mirror being up and in sync with Central, like the Maven jobs already do. > - ✅ No product code changes: only CI and the Gradle plugin's test harness. > > **Context.** The functional tests start nested builds through TestKit, which uses a Gradle user home of its own. An init script in `~/.gradle/init.d` or passed to the outer build does not reach them unless it is passed on explicitly. > > - Added `.github/gradle/central-mirror.init.gradle`, which points every Maven repository on repo.maven.apache.org at the mirror: plugin management, dependency resolution management, buildscript and project repositories. > - `validation.yml` (Gradle Tests) and `warm-caches.yml` (Gradle home warm-up) pass it with `--init-script`. Both need it: Gradle caches metadata per repository URL, so a home warmed from Central would not serve lookups against the mirror. > - The `functionalTest` task passes the outer build's init scripts to `TestProject`, which adds them to every nested build. Without a script nothing changes, so local runs behave as before. > - The Gradle Tests job now also runs when a file under `.github/gradle/` changes. > Co-authored-by: totally-not-ai[bot] <290682512+totally-not-ai[bot]@users.noreply.github.com>
This was referenced Dec 1, 2026
vaadin-bot
added a commit
that referenced
this pull request
Dec 1, 2026
…) (CP: 25.4) (#27555) This PR cherry-picks changes from the original PR #27550 to branch 25.4. --- > Follow-up to #27463 > > **build failure** · flow-gradle-plugin · Gradle functional tests on TeamCity > > The Gradle functional tests that use the configuration cache fail on TeamCity since #27463 (13 tests). The nested test builds were given every init script of the outer build, including the TeamCity runner's own script, which registers build listeners. The configuration cache does not allow those, so the nested builds fail before they start. > > **Risks:** > - ✅ No product code changes: only the Gradle plugin's test harness. > > **Context.** The functional tests run nested builds through TestKit, which uses a Gradle user home of its own, so #27463 passed the outer build's init scripts on to them for the Maven Central mirror. On TeamCity the outer build also gets `/opt/agent/plugins/gradle-runner/scripts/init.gradle`, which calls `Gradle.addListener` and `Gradle.useLogger`. > > - The `functionalTest` task now passes on only `central-mirror.init.gradle`, and drops any other init script of the outer build. > - Without that script, local runs behave as before. > Co-authored-by: Marco Collovati <marco@vaadin.com>
mshabarov
pushed a commit
to OriginalFelix/flow
that referenced
this pull request
Dec 1, 2026
…in#27550) Follow-up to vaadin#27463 **build failure** · flow-gradle-plugin · Gradle functional tests on TeamCity The Gradle functional tests that use the configuration cache fail on TeamCity since vaadin#27463 (13 tests). The nested test builds were given every init script of the outer build, including the TeamCity runner's own script, which registers build listeners. The configuration cache does not allow those, so the nested builds fail before they start. **Risks:** - ✅ No product code changes: only the Gradle plugin's test harness. **Context.** The functional tests run nested builds through TestKit, which uses a Gradle user home of its own, so vaadin#27463 passed the outer build's init scripts on to them for the Maven Central mirror. On TeamCity the outer build also gets `/opt/agent/plugins/gradle-runner/scripts/init.gradle`, which calls `Gradle.addListener` and `Gradle.useLogger`. - The `functionalTest` task now passes on only `central-mirror.init.gradle`, and drops any other init script of the outer build. - Without that script, local runs behave as before.
Artur-
pushed a commit
that referenced
this pull request
Dec 1, 2026
…) (CP: 24.5) (#27565) This PR cherry-picks changes from the original PR #27550 to branch 24.5. The original commit conflicts on 24.5, so this PR picks the 24.6 pick #27564 instead, which already adapted the change to an older branch. > [!WARNING] > The conflicts of the 24.6 pick #27564 were resolved automatically by Claude Code, and this pick builds on them. Please review the changes carefully. --- > Follow-up to #27463 > > **build failure** · flow-gradle-plugin · Gradle functional tests on TeamCity > > The Gradle functional tests that use the configuration cache fail on TeamCity since #27463 (13 tests). The nested test builds were given every init script of the outer build, including the TeamCity runner's own script, which registers build listeners. The configuration cache does not allow those, so the nested builds fail before they start. > > **Risks:** > - ✅ No product code changes: only the Gradle plugin's test harness. > > **Context.** The functional tests run nested builds through TestKit, which uses a Gradle user home of its own, so #27463 passed the outer build's init scripts on to them for the Maven Central mirror. On TeamCity the outer build also gets `/opt/agent/plugins/gradle-runner/scripts/init.gradle`, which calls `Gradle.addListener` and `Gradle.useLogger`. > > - The `functionalTest` task now passes on only `central-mirror.init.gradle`, and drops any other init script of the outer build. > - Without that script, local runs behave as before. > Co-authored-by: Marco Collovati <marco@vaadin.com>
Artur-
pushed a commit
that referenced
this pull request
Dec 1, 2026
…) (CP: 24.4) (#27566) This PR cherry-picks changes from the original PR #27550 to branch 24.4. The original commit conflicts on 24.4, so this PR picks the 24.5 pick #27565 instead, which already adapted the change to an older branch. > [!WARNING] > The conflicts of the 24.5 pick #27565 were resolved automatically by Claude Code, and this pick builds on them. Please review the changes carefully. --- > Follow-up to #27463 > > **build failure** · flow-gradle-plugin · Gradle functional tests on TeamCity > > The Gradle functional tests that use the configuration cache fail on TeamCity since #27463 (13 tests). The nested test builds were given every init script of the outer build, including the TeamCity runner's own script, which registers build listeners. The configuration cache does not allow those, so the nested builds fail before they start. > > **Risks:** > - ✅ No product code changes: only the Gradle plugin's test harness. > > **Context.** The functional tests run nested builds through TestKit, which uses a Gradle user home of its own, so #27463 passed the outer build's init scripts on to them for the Maven Central mirror. On TeamCity the outer build also gets `/opt/agent/plugins/gradle-runner/scripts/init.gradle`, which calls `Gradle.addListener` and `Gradle.useLogger`. > > - The `functionalTest` task now passes on only `central-mirror.init.gradle`, and drops any other init script of the outer build. > - Without that script, local runs behave as before. > Co-authored-by: Marco Collovati <marco@vaadin.com>
Artur-
pushed a commit
that referenced
this pull request
Dec 1, 2026
…) (CP: 24.6) (#27564) This PR cherry-picks changes from the original PR #27550 to branch 24.6. The original commit conflicts on 24.6, so this PR picks the 24.7 pick #27563 instead, which already adapted the change to an older branch. > [!WARNING] > The conflicts of the 24.7 pick #27563 were resolved automatically by Claude Code, and this pick builds on them. Please review the changes carefully. --- > Follow-up to #27463 > > **build failure** · flow-gradle-plugin · Gradle functional tests on TeamCity > > The Gradle functional tests that use the configuration cache fail on TeamCity since #27463 (13 tests). The nested test builds were given every init script of the outer build, including the TeamCity runner's own script, which registers build listeners. The configuration cache does not allow those, so the nested builds fail before they start. > > **Risks:** > - ✅ No product code changes: only the Gradle plugin's test harness. > > **Context.** The functional tests run nested builds through TestKit, which uses a Gradle user home of its own, so #27463 passed the outer build's init scripts on to them for the Maven Central mirror. On TeamCity the outer build also gets `/opt/agent/plugins/gradle-runner/scripts/init.gradle`, which calls `Gradle.addListener` and `Gradle.useLogger`. > > - The `functionalTest` task now passes on only `central-mirror.init.gradle`, and drops any other init script of the outer build. > - Without that script, local runs behave as before. > Co-authored-by: Marco Collovati <marco@vaadin.com>
Artur-
pushed a commit
that referenced
this pull request
Dec 1, 2026
…) (CP: 24.8) (#27562) This PR cherry-picks changes from the original PR #27550 to branch 24.8. The original commit conflicts on 24.8, so this PR picks the 24.9 pick #27561 instead, which already adapted the change to an older branch. > [!WARNING] > The conflicts of the 24.9 pick #27561 were resolved automatically by Claude Code, and this pick builds on them. Please review the changes carefully. --- > Follow-up to #27463 > > **build failure** · flow-gradle-plugin · Gradle functional tests on TeamCity > > The Gradle functional tests that use the configuration cache fail on TeamCity since #27463 (13 tests). The nested test builds were given every init script of the outer build, including the TeamCity runner's own script, which registers build listeners. The configuration cache does not allow those, so the nested builds fail before they start. > > **Risks:** > - ✅ No product code changes: only the Gradle plugin's test harness. > > **Context.** The functional tests run nested builds through TestKit, which uses a Gradle user home of its own, so #27463 passed the outer build's init scripts on to them for the Maven Central mirror. On TeamCity the outer build also gets `/opt/agent/plugins/gradle-runner/scripts/init.gradle`, which calls `Gradle.addListener` and `Gradle.useLogger`. > > - The `functionalTest` task now passes on only `central-mirror.init.gradle`, and drops any other init script of the outer build. > - Without that script, local runs behave as before. > Co-authored-by: Marco Collovati <marco@vaadin.com>
Artur-
pushed a commit
that referenced
this pull request
Dec 1, 2026
…) (CP: 24.7) (#27563) This PR cherry-picks changes from the original PR #27550 to branch 24.7. The original commit conflicts on 24.7, so this PR picks the 24.8 pick #27562 instead, which already adapted the change to an older branch. > [!WARNING] > The conflicts of the 24.8 pick #27562 were resolved automatically by Claude Code, and this pick builds on them. Please review the changes carefully. --- > Follow-up to #27463 > > **build failure** · flow-gradle-plugin · Gradle functional tests on TeamCity > > The Gradle functional tests that use the configuration cache fail on TeamCity since #27463 (13 tests). The nested test builds were given every init script of the outer build, including the TeamCity runner's own script, which registers build listeners. The configuration cache does not allow those, so the nested builds fail before they start. > > **Risks:** > - ✅ No product code changes: only the Gradle plugin's test harness. > > **Context.** The functional tests run nested builds through TestKit, which uses a Gradle user home of its own, so #27463 passed the outer build's init scripts on to them for the Maven Central mirror. On TeamCity the outer build also gets `/opt/agent/plugins/gradle-runner/scripts/init.gradle`, which calls `Gradle.addListener` and `Gradle.useLogger`. > > - The `functionalTest` task now passes on only `central-mirror.init.gradle`, and drops any other init script of the outer build. > - Without that script, local runs behave as before. > Co-authored-by: Marco Collovati <marco@vaadin.com>
Artur-
pushed a commit
that referenced
this pull request
Dec 1, 2026
…) (CP: 24.9) (#27561) This PR cherry-picks changes from the original PR #27550 to branch 24.9. The original commit conflicts on 24.9, so this PR picks the 24.10 pick #27560 instead, which already adapted the change to an older branch. > [!WARNING] > The conflicts of the 24.10 pick #27560 were resolved automatically by Claude Code, and this pick builds on them. Please review the changes carefully. --- > Follow-up to #27463 > > **build failure** · flow-gradle-plugin · Gradle functional tests on TeamCity > > The Gradle functional tests that use the configuration cache fail on TeamCity since #27463 (13 tests). The nested test builds were given every init script of the outer build, including the TeamCity runner's own script, which registers build listeners. The configuration cache does not allow those, so the nested builds fail before they start. > > **Risks:** > - ✅ No product code changes: only the Gradle plugin's test harness. > > **Context.** The functional tests run nested builds through TestKit, which uses a Gradle user home of its own, so #27463 passed the outer build's init scripts on to them for the Maven Central mirror. On TeamCity the outer build also gets `/opt/agent/plugins/gradle-runner/scripts/init.gradle`, which calls `Gradle.addListener` and `Gradle.useLogger`. > > - The `functionalTest` task now passes on only `central-mirror.init.gradle`, and drops any other init script of the outer build. > - Without that script, local runs behave as before. > Co-authored-by: Marco Collovati <marco@vaadin.com>
Artur-
pushed a commit
that referenced
this pull request
Dec 1, 2026
…) (CP: 25.0) (#27559) This PR cherry-picks changes from the original PR #27550 to branch 25.0. The original commit conflicts on 25.0, so this PR picks the 25.1 pick #27558 instead, which already adapted the change to an older branch. > [!WARNING] > The conflicts of the 25.1 pick #27558 were resolved automatically by Claude Code, and this pick builds on them. Please review the changes carefully. --- > Follow-up to #27463 > > **build failure** · flow-gradle-plugin · Gradle functional tests on TeamCity > > The Gradle functional tests that use the configuration cache fail on TeamCity since #27463 (13 tests). The nested test builds were given every init script of the outer build, including the TeamCity runner's own script, which registers build listeners. The configuration cache does not allow those, so the nested builds fail before they start. > > **Risks:** > - ✅ No product code changes: only the Gradle plugin's test harness. > > **Context.** The functional tests run nested builds through TestKit, which uses a Gradle user home of its own, so #27463 passed the outer build's init scripts on to them for the Maven Central mirror. On TeamCity the outer build also gets `/opt/agent/plugins/gradle-runner/scripts/init.gradle`, which calls `Gradle.addListener` and `Gradle.useLogger`. > > - The `functionalTest` task now passes on only `central-mirror.init.gradle`, and drops any other init script of the outer build. > - Without that script, local runs behave as before. > Co-authored-by: Marco Collovati <marco@vaadin.com>
Artur-
pushed a commit
that referenced
this pull request
Dec 1, 2026
…) (CP: 24.10) (#27560) This PR cherry-picks changes from the original PR #27550 to branch 24.10. The original commit conflicts on 24.10, so this PR picks the 25.0 pick #27559 instead, which already adapted the change to an older branch. > [!WARNING] > The conflicts of the 25.0 pick #27559 were resolved automatically by Claude Code, and this pick builds on them. Please review the changes carefully. --- > Follow-up to #27463 > > **build failure** · flow-gradle-plugin · Gradle functional tests on TeamCity > > The Gradle functional tests that use the configuration cache fail on TeamCity since #27463 (13 tests). The nested test builds were given every init script of the outer build, including the TeamCity runner's own script, which registers build listeners. The configuration cache does not allow those, so the nested builds fail before they start. > > **Risks:** > - ✅ No product code changes: only the Gradle plugin's test harness. > > **Context.** The functional tests run nested builds through TestKit, which uses a Gradle user home of its own, so #27463 passed the outer build's init scripts on to them for the Maven Central mirror. On TeamCity the outer build also gets `/opt/agent/plugins/gradle-runner/scripts/init.gradle`, which calls `Gradle.addListener` and `Gradle.useLogger`. > > - The `functionalTest` task now passes on only `central-mirror.init.gradle`, and drops any other init script of the outer build. > - Without that script, local runs behave as before. > Co-authored-by: Marco Collovati <marco@vaadin.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Follow-up to #27418
build failure · CI · the Gradle Tests and warm-caches jobs
The Maven builds in CI now read Maven Central through Google's mirror to avoid 429 answers, but Gradle never reads Maven settings files. The Gradle plugin's build and the sample builds its functional tests run still went to repo.maven.apache.org. They now use the same mirror.
Risks:
Context. The functional tests start nested builds through TestKit, which uses a Gradle user home of its own. An init script in
~/.gradle/init.dor passed to the outer build does not reach them unless it is passed on explicitly..github/gradle/central-mirror.init.gradle, which points every Maven repository on repo.maven.apache.org at the mirror: plugin management, dependency resolution management, buildscript and project repositories.validation.yml(Gradle Tests) andwarm-caches.yml(Gradle home warm-up) pass it with--init-script. Both need it: Gradle caches metadata per repository URL, so a home warmed from Central would not serve lookups against the mirror.functionalTesttask passes the outer build's init scripts toTestProject, which adds them to every nested build. Without a script nothing changes, so local runs behave as before..github/gradle/changes.