Config

constructor(debugLoggingEnabled: Boolean = env["GRADLE_ENTERPRISE_API_DEBUG_LOGGING"].toBoolean(), apiUrl: String = env["GRADLE_ENTERPRISE_API_URL"] ?: error("GRADLE_ENTERPRISE_API_URL is required"), apiToken: () -> String = { requireEnvOrKeychainToken(debugLoggingEnabled = debugLoggingEnabled) }, clientBuilder: OkHttpClient.Builder = basicOkHttpClient.newBuilder(), maxConcurrentRequests: Int? = env["GRADLE_ENTERPRISE_API_MAX_CONCURRENT_REQUESTS"]?.toInt(), readTimeoutMillis: Long = env["GRADLE_ENTERPRISE_API_READ_TIMEOUT_MILLIS"]?.toLong() ?: 60_000L, cacheConfig: Config.CacheConfig = CacheConfig())(source)