Package-level declarations

Types

Link copied to clipboard
data class NexusConfig(val url: String, val username: String, val password: String)

The Nexus configuration.

Properties

Link copied to clipboard

The Root API URl for the Nexus instance.

Link copied to clipboard
lateinit var nexusConfig: NexusConfig

The NexusConfig instance.

Functions

Link copied to clipboard
fun changeNexusPassword(name: String, newPassword: String): Boolean

Changes the password linked to the Nexus User.

Link copied to clipboard
fun createNexus(name: String, password: String): Boolean

Creates a Nexus User with the necessary data.

Link copied to clipboard

Deletes a Nexus user and its data, removing all artifacts from its repository.

Link copied to clipboard
fun getNexusRepository(name: String): JsonObject?

Gets a Nexus Repository by its case-sensitive name.

Link copied to clipboard
fun getNexusUser(name: String): JsonObject?

Gets a Nexus User by its case-sensitive name.

Link copied to clipboard
suspend fun nexus(url: String, request: HttpRequest.Builder.() -> Unit = { GET() }): HttpResponse<String>

Sends an HTTP request using the NexusConfig.authorization header.

Link copied to clipboard
fun ping(): Boolean

Pings the Nexus Instance.