Interface GradleEnterpriseExtension


  • @NonExtensible
    public interface GradleEnterpriseExtension
    The DSL extension for configuring Gradle Enterprise, with the name "gradleEnterprise".
    
     gradleEnterprise {
       // Gradle Enterprise configuration
     }
     
    Since:
    3.0
    • Method Detail

      • getBuildScan

        BuildScanExtension getBuildScan()
        The build scan extension.
        Returns:
        the build scan extension
      • buildScan

        void buildScan​(Action<? super BuildScanExtension> action)
        Configures the build scan extension.
        Parameters:
        action - the configuration action
      • setServer

        void setServer​(String server)
        Sets the URL of the Gradle Enterprise server.
        Parameters:
        server - the server URL
        Since:
        3.2
      • getServer

        String getServer()
        Returns the URL of the Gradle Enterprise server.
        Returns:
        null when no enterprise server is configured
        Since:
        3.2
      • setAllowUntrustedServer

        void setAllowUntrustedServer​(boolean allow)
        Specifies whether it is acceptable to communicate with a build scan server with an untrusted SSL certificate.

        The default (public) build scan server uses SSL certificates that are trusted by default by standard modern Java environments. If you are using a different build scan server via Gradle Enterprise, 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 true to disable verification of the server's identity. Alternatively, you may disable SSL completely for Gradle Enterprise installation but this is not recommended.

        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.

        This value has no effect if a server is specified using the HTTP protocol (i.e. has SSL disabled).

        Parameters:
        allow - whether to allow communication with a HTTPS server with an untrusted certificate
        Since:
        3.2
      • getAllowUntrustedServer

        boolean getAllowUntrustedServer()
        Whether it is acceptable to communicate with a build scan server with an untrusted SSL certificate.
        Returns:
        true it is acceptable to communicate with a build scan server with an untrusted SSL certificate
        Since:
        3.2