Interface Server
-
@Deprecated public interface ServerDeprecated.since 1.21, replaced byServerConfigures the remote build cache node server.The specified values will take precedence over the values defined in the
gradle-enterprise.xml.- Since:
- 1.6.5
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description CredentialsgetCredentials()Deprecated.Gets the credentials configuration.java.lang.StringgetServerId()Deprecated.Gets the remote build cache server ID.java.net.URIgetUrl()Deprecated.Gets the remote build cache node URL.booleanisAllowInsecureProtocol()Deprecated.Gets whether it is allowed to communicate with the remote build cache node over an insecure HTTP connection.booleanisAllowUntrusted()Deprecated.Gets whether it is allowed to communicate with the remote build cache node with an untrusted SSL certificate.booleanisUseExpectContinue()Deprecated.Gets whether the client should use HTTP Expect-Continue when storing data on the server.voidsetAllowInsecureProtocol(boolean allowInsecureProtocol)Deprecated.Sets whether it is allowed to communicate with the remote build cache node over an insecure HTTP connection.voidsetAllowUntrusted(boolean allowUntrusted)Deprecated.Sets whether it is allowed to communicate with the remote build cache node with an untrusted SSL certificate.voidsetServerId(java.lang.String serverId)Deprecated.Sets the remote build cache server ID.default voidsetUrl(java.lang.String url)Deprecated.Sets the remote build cache node URL.voidsetUrl(java.net.URI url)Deprecated.Sets the remote build cache node URL.voidsetUseExpectContinue(boolean useExpectContinue)Deprecated.Sets whether the client should use HTTP Expect-Continue when storing data on the server.
-
-
-
Method Detail
-
getServerId
java.lang.String getServerId()
Deprecated.Gets the remote build cache server ID.- Returns:
- the remote build cache server ID
- Since:
- 1.6.5
-
setServerId
void setServerId(java.lang.String serverId)
Deprecated.Sets the remote build cache server ID.Configuration via the
gradle.cache.remote.serverIdsystem property will always take precedence.- Parameters:
serverId- the remote build cache server ID- Since:
- 1.6.5
-
getUrl
java.net.URI getUrl()
Deprecated.Gets the remote build cache node URL.- Returns:
- the remote build cache node URL
- Since:
- 1.6.5
-
setUrl
default void setUrl(java.lang.String url)
Deprecated.Sets the remote build cache node URL.Configuration via the
gradle.cache.remote.urlsystem property will always take precedence.- Parameters:
url- the remote build cache node URL- Since:
- 1.10.3
-
setUrl
void setUrl(java.net.URI url)
Deprecated.Sets the remote build cache node URL.Configuration via the
gradle.cache.remote.urlsystem property will always take precedence.- Parameters:
url- the remote build cache node URL- Since:
- 1.6.5
-
isAllowUntrusted
boolean isAllowUntrusted()
Deprecated.Gets whether it is allowed to communicate with the remote build cache node with an untrusted SSL certificate.- Returns:
trueif it is allowed to communicate with the remote build cache node with an untrusted SSL certificate,falseotherwise- Since:
- 1.6.5
-
setAllowUntrusted
void setAllowUntrusted(boolean allowUntrusted)
Deprecated.Sets whether it is allowed to communicate with the remote build cache node with an untrusted SSL certificate.The default (built-in) remote build cache node uses SSL certificates that are trusted by default by standard modern Java environments. If you are using a different remote build cache node, it may use an untrusted certificate. This may be due to the use of an internally provisioned or self-signed certificate.
In such a scenario, you can either configure the build JVM environment to trust the certificate, or call this method with
trueto disable verification of the remote build cache node identity.Allowing communication with untrusted servers keeps data encrypted during transmission, but makes it easy for a man-in-the-middle to impersonate the intended server and capture data.
Setting this property to
trueis a convenient workaround during the initial evaluation, but it is a serious security issue and should not be used in production.This value has no effect if the remote build cache node URL is specified using the HTTP protocol (i.e. has SSL disabled).
Configuration via the
gradle.cache.remote.allowUntrustedServersystem property will always take precedence.- Parameters:
allowUntrusted- whether to allow communication with a HTTPS server with an untrusted certificate- Since:
- 1.6.5
-
isAllowInsecureProtocol
boolean isAllowInsecureProtocol()
Deprecated.Gets whether it is allowed to communicate with the remote build cache node over an insecure HTTP connection.- Returns:
trueif communication over an insecure HTTP connection is allowed,falseotherwise- Since:
- 1.13
-
setAllowInsecureProtocol
void setAllowInsecureProtocol(boolean allowInsecureProtocol)
Deprecated.Sets whether it is allowed to communicate with the remote build cache node 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.
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.
Setting this property to
trueis a convenient workaround during the initial evaluation, but it is a serious security issue and should not be used in production.Configuration via the
gradle.cache.remote.allowInsecureProtocolsystem property will always take precedence.- Parameters:
allowInsecureProtocol- whether to allow communication over an insecure HTTP connection- Since:
- 1.13
-
isUseExpectContinue
boolean isUseExpectContinue()
Deprecated.Gets whether the client should use HTTP Expect-Continue when storing data on the server.- Returns:
trueif the client uses HTTP Expect-Continue,falseotherwise- Since:
- 1.12.3
-
setUseExpectContinue
void setUseExpectContinue(boolean useExpectContinue)
Deprecated.Sets whether the client should use HTTP Expect-Continue when storing data on the server.Configuration via the
gradle.cache.remote.useExpectContinuesystem property will always take precedence.- Parameters:
useExpectContinue- whether the client should use HTTP Expect-Continue- Since:
- 1.12.3
-
getCredentials
Credentials getCredentials()
Deprecated.Gets the credentials configuration.If not specified and an access key is available for the
GradleEnterpriseApi.getServer()value, it will be used to authenticate with the build cache (regardless of the build cache server address set withsetUrl(String)orsetUrl(URI)).- Returns:
- the credentials configuration
- Since:
- 1.6.5
-
-