Miguel Oliveira
07/13/2026, 4:23 PMsettings.gradle.ktsVampire
07/13/2026, 5:02 PMTrevJonez
07/13/2026, 5:10 PMmaven {
name = "foo"
setUrl("<https://foo.com>")
credentials(org.gradle.api.credentials.PasswordCredentials::class)
}
so ~/.gradle/gradle.properties would have
fooUsername=you@company.com
fooPassworld=fooApiToken
then you can ORG_GRALDE_PROJECT_fooUsername etc in your CI jobs.tony
07/13/2026, 5:10 PMpluginManagement.repositories {}tony
07/13/2026, 5:11 PMrepositories.settings.gradle.kts, and applied that to each settings script. It was the one case where I agreed having an ad hoc script like that made sense. We had three separate builds in our repo and the repetition was getting annoyingMartin
07/13/2026, 6:13 PMVampire
07/13/2026, 9:06 PMHaving another build do it doesn't work, I think, for pluginManagement.repositories {}
That depends on whether you need other settings plugins. For project plugins it works. For other settings plugins indeed not as the settings plugin is too late of course.
Vampire
07/13/2026, 9:07 PM