Skip to content

Revert: Make plugin-management repositories in the init script configurable (#59)#63

Merged
andrewparmet merged 1 commit into
open-toast:mainfrom
andrewparmet:revert-plugin-repos
May 25, 2026
Merged

Revert: Make plugin-management repositories in the init script configurable (#59)#63
andrewparmet merged 1 commit into
open-toast:mainfrom
andrewparmet:revert-plugin-repos

Conversation

@andrewparmet

@andrewparmet andrewparmet commented May 21, 2026

Copy link
Copy Markdown
Collaborator

Reverts #59.

extension.pluginRepositories.getOrElse(emptyList()) is read inside the tasks.named<Test>(\"test\") { ... } configuration block. When the test task gets realized eagerly (e.g. by `kotlin-dsl` configuring its test source set during plugin application), the extension's ListProperty hasn't been mutated by the user's `configure { pluginRepositories.add(...) }` block yet, so we read an empty list, never set the system property, and the init script falls back to gradlePluginPortal().

Downstream configured testkitTests.pluginRepositories and the resulting init script still contained gradlePluginPortal() instead of the configured URL.

A correct implementation might defer the read to task execution time using jvmArgumentProviders.add { ... } or Provider.map { ... }.

@andrewparmet andrewparmet marked this pull request as ready for review May 21, 2026 19:19
@andrewparmet andrewparmet merged commit b305248 into open-toast:main May 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants