RepositoryClient

class RepositoryClient(connectTimeoutSeconds: Long = 10, readTimeoutSeconds: Long = 10, trustedCredentialHosts: Set<String> = InputSafety.parseTrustedCredentialHosts(System.getenv(InputSafety.CREDENTIAL_HOST_ALLOWLIST_ENV)), client: OkHttpClient = OkHttpClient.Builder() .connectTimeout(connectTimeoutSeconds, TimeUnit.SECONDS) .readTimeout(readTimeoutSeconds, TimeUnit.SECONDS) .build())

Constructors

Link copied to clipboard
constructor(connectTimeoutSeconds: Long = 10, readTimeoutSeconds: Long = 10, trustedCredentialHosts: Set<String> = InputSafety.parseTrustedCredentialHosts(System.getenv(InputSafety.CREDENTIAL_HOST_ALLOWLIST_ENV)), client: OkHttpClient = OkHttpClient.Builder() .connectTimeout(connectTimeoutSeconds, TimeUnit.SECONDS) .readTimeout(readTimeoutSeconds, TimeUnit.SECONDS) .build())

Functions

Link copied to clipboard
fun getLatestVersion(dependency: ParsedDependency, repositories: List<ProjectRepository> = emptyList()): String?
fun getLatestVersion(repository: ProjectRepository, groupId: String, artifactId: String): String?