IvyArtifactRepository
, MavenArtifactRepository
public interface UrlArtifactRepository
Modifier and Type | Method | Description |
---|---|---|
java.net.URI |
getUrl() |
The base URL of this repository.
|
boolean |
isAllowInsecureProtocol() |
Specifies whether it is acceptable to communicate with a repository over an insecure HTTP connection.
|
void |
setAllowInsecureProtocol(boolean allowInsecureProtocol) |
Specifies whether it is acceptable to communicate with a repository over an insecure HTTP connection.
|
void |
setUrl(java.lang.Object url) |
Sets the base URL of this repository.
|
void |
setUrl(java.net.URI url) |
Sets the base URL of this repository.
|
java.net.URI getUrl()
void setUrl(java.net.URI url)
url
- The base URL.void setUrl(java.lang.Object url)
url
- The base URL.boolean isAllowInsecureProtocol()
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!
void setAllowInsecureProtocol(boolean allowInsecureProtocol)
isAllowInsecureProtocol()