What’s the policy which versions of Gradle User Gu...
# community-support
p
What’s the policy which versions of Gradle User Guides are shown in the version picker? At the moment it is latest (8.12.1), 6.1, nightly and 8.5. I would expect the latest version, the latest version -1, and the latest version of 7.X and maybe 6.X. But not 6.1 and 8.5
s
Looks like it depends on which page of the guide you’re currently on
or maybe it remembers the versions you looked at previously or something
p
It's the latter, it shows the versions you recently visited. See https://github.com/gradle/gradle/issues/24004
t
Look for
initializeVersioning
in https://docs.gradle.org/build-tool.js It starts with "8.5,7.6.2,6.9.4,5.6.4" (why 8.5? 🤷), then pushes the version you're looking at to the top unless it's a nightly, always limiting the list to 4 values at most, and stores the resulting list for the next visit.
👀 1
p
Oh, it’s a feature not a bug 😅 okay, nice to know but a little bit confusing
👍 1
p
This is indeed confusing. And this initial list does not make any sense 🤦