UrlArtifactRepository - Gradle DSL Version 9.7.1

# UrlArtifactRepository

API Documentation: | `UrlArtifactRepository`

Known Subtypes: |
`IvyArtifactRepository`
`MavenArtifactRepository`

A repository that supports resolving artifacts from a URL.

### Properties

Property | Description
`allowInsecureContinueWhenDisabled` | Specifies whether to continue checking other repositories if this repository is disabled due to connection or communication errors.
`allowInsecureProtocol` | Specifies whether it is acceptable to communicate with a repository over an insecure HTTP connection.
`url` | The base URL of this repository.

### Methods

No methods

### Script blocks

No script blocks

### Property details

#### ``Property`<`Boolean`>` `allowInsecureContinueWhenDisabled`

Specifies whether to continue checking other repositories if this repository is disabled due to connection or communication errors.

The conventional value for this property is `false`, which means to not continue to check other repositories after this one.

#### `boolean` `allowInsecureProtocol`

Specifies whether it is acceptable to communicate with a repository over an insecure HTTP connection.

For security purposes this intentionally requires a user to opt-in to using insecure protocols on case by case basis.

Gradle intentionally does not offer a global system/gradle property that allows a universal disable of this check.

Allowing communication over insecure protocols allows for a man-in-the-middle to impersonate the intended server, and gives an attacker the ability to serve malicious executable code onto the system.

See also: Want to take over the Java ecosystem? All you need is a MITM!

#### `URI` `url`

The base URL of this repository.