For AI agents: the documentation index is at
https://docs.gradle.org/llms.txt
. Request any page with the header
Accept: text/markdown
to get Markdown. User manual pages are also available as Markdown by replacing
.html
with
.md
in the URL.
gradle
Toggle table of contents
9.9.3
API
Target filter
API
Switch theme
Search in API
Skip to content
gradle
gradle
/
org.gradle.api.artifacts
/
VersionCatalogsExtension
Version
Catalogs
Extension
API
interface
VersionCatalogsExtension
:
Iterable
<
VersionCatalog
>
(
source
)
Gives access to all version catalogs available.
Since
7.0
Members
Functions
find
Link copied to clipboard
API
abstract
fun
find
(
name
:
String
)
:
Optional
<
VersionCatalog
>
Tries to find a catalog with the corresponding name
for
Each
Link copied to clipboard
API
open
fun
forEach
(
action
:
Consumer
<
in
T
>
)
get
Catalog
Names
Link copied to clipboard
API
abstract
fun
getCatalogNames
(
)
:
Set
<
String
>
Returns the list of catalog names
iterator
Link copied to clipboard
API
abstract
fun
iterator
(
)
:
Iterator
<
T
>
named
Link copied to clipboard
API
open
fun
named
(
name
:
String
)
:
VersionCatalog
Returns the catalog with the supplied name or throws an exception if it doesn't exist.
spliterator
Link copied to clipboard
API
open
fun
spliterator
(
)
:
Spliterator
<
T
>