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.

getLibraryName

@Nullable
abstract fun getLibraryName(): @Nullable String(source)

Return the library name of the selected library. If the library name is null then it is expected to find a single library defined in same project as the requesting component or dependency resolution will fail. If not null then the name will never be empty.

Return

the library name

Since

2.5