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.

layout

abstract fun layout(layoutName: String)(source)

Specifies how the items of the repository are organized.

Recognised values are as follows:

'gradle'

A Repository Layout that applies the following patterns:

  • Artifacts: $baseUri/{@value #GRADLE_ARTIFACT_PATTERN}
  • Ivy: $baseUri/{@value #GRADLE_IVY_PATTERN}
'maven'

A Repository Layout that applies the following patterns:

  • Artifacts: $baseUri/{@value #MAVEN_ARTIFACT_PATTERN}
  • Ivy: $baseUri/{@value #MAVEN_IVY_PATTERN}

Following the Maven convention, the 'organisation' value is further processed by replacing '.' with '/'.

'ivy'

A Repository Layout that applies the following patterns:

  • Artifacts: $baseUri/{@value #IVY_ARTIFACT_PATTERN}
  • Ivy: $baseUri/{@value #IVY_ARTIFACT_PATTERN}

Since

1.0

Parameters

layoutName

The name of the layout to use.

See also