pkgst

fun RepositoryHandler.pkgst(vararg ecosystems: PkgstEcosystem)(source)

Pkgst DSL

Install support for Pkgst for the provided ecosystems; by default, the appropriate ecosystem is inferred from the current context (but generally activates to one of PkgstEcosystem.MAVEN or PkgstEcosystem.GRADLE when used from the Gradle plugin).

What is Pkgst?

Pkgst is a caching dependency firewall, based on Cloudflare and powered in concert with Buildless. Accelerate, secure, and cache your package downloads over the same connection as your build cache.

 

Usage

Call pkgst within a Gradle block for configuring repositories:

repositories {
pkgst()
}

Optionally, provide specific repositories to install through Pkgst:

repositories {
pkgst(MAVEN, JITPACK)
}

You can use it from your settings.gradle.kts file as well:

pluginManagement {
repositories {
pkgst(GRADLE)
}
}

dependencyResolutionManagement {
repositoriesMode = RepositoriesMode.PREFER_PROJECT
repositories {
pkgst(MAVEN)
}
}

Receiver

Repositories handler in a Gradle script.

Parameters

ecosystems

Optional ecosystems to install Pkgst support for; if not provided, the appropriate ecosystem(s) are inferred from context.