Repository Presets

Antlers includes built-in presets for common repositories, so you don't need to remember URLs.

Listing Available Presets

antlers repos list

Filter by ecosystem:

antlers repos list --ecosystem maven

Using Presets

With Resolution

antlers resolve com.github.user:repo:v1.0.0 --preset jitpack

Adding to Configuration

antlers add repo jitpack --preset

This adds the repository to your antlers.toml:

[[repositories]]
id = "jitpack"
name = "JitPack"
url = "https://jitpack.io/"

Available Presets

Maven (JVM)

Preset IDNameURLDescription
centralMaven Centralhttps://repo1.maven.org/maven2/The default Maven repository for open-source artifacts
googleGoogle Mavenhttps://maven.google.com/Android and Google libraries
gradle-pluginsGradle Plugin Portalhttps://plugins.gradle.org/m2/Gradle plugins
jcenterJCenterhttps://jcenter.bintray.com/Deprecated, read-only mirror
sonatype-snapshotsSonatype Snapshotshttps://oss.sonatype.org/content/repositories/snapshots/OSS snapshot builds
sonatype-releasesSonatype Releaseshttps://oss.sonatype.org/content/repositories/releases/OSS releases
sonatype-s01-snapshotsSonatype S01 Snapshotshttps://s01.oss.sonatype.org/content/repositories/snapshots/Newer OSS snapshots
jenkinsJenkinshttps://repo.jenkins-ci.org/public/Jenkins plugins and libraries
jitpackJitPackhttps://jitpack.io/Build JVM artifacts from GitHub
spring-milestonesSpring Milestoneshttps://repo.spring.io/milestone/Spring milestone/RC builds
spring-snapshotsSpring Snapshotshttps://repo.spring.io/snapshot/Spring snapshot builds
atlassianAtlassianhttps://packages.atlassian.com/maven-public/Atlassian public repository
redhat-gaRed Hat GAhttps://maven.repository.redhat.com/ga/Red Hat GA repository
clojarsClojarshttps://repo.clojars.org/Clojure libraries
jbossJBosshttps://repository.jboss.org/nexus/content/groups/public/JBoss community repository
apache-snapshotsApache Snapshotshttps://repository.apache.org/content/repositories/snapshots/Apache snapshot builds
hortonworksHortonworkshttps://repo.hortonworks.com/content/repositories/releases/Hortonworks artifacts
confluentConfluenthttps://packages.confluent.io/maven/Kafka ecosystem artifacts
kotlin-devKotlin Devhttps://maven.pkg.jetbrains.space/kotlin/p/kotlin/dev/Kotlin development builds
compose-devCompose Devhttps://maven.pkg.jetbrains.space/public/p/compose/dev/Compose Multiplatform development builds

npm

Preset IDNameURLDescription
npmjsnpm Registryhttps://registry.npmjs.org/Default npm registry
yarnYarn Registryhttps://registry.yarnpkg.com/Yarn registry mirror

PyPI

Preset IDNameURLDescription
pypiPyPIhttps://pypi.org/simple/Python Package Index
testpypiTestPyPIhttps://test.pypi.org/simple/Pre-release testing

NuGet

Preset IDNameURLDescription
nugetNuGet Galleryhttps://api.nuget.org/v3/index.jsonDefault NuGet registry

Preset Suggestions

When resolution fails, Antlers suggests relevant presets based on the group ID:

$ antlers resolve org.jenkins-ci.plugins:git:5.0.0

Error: Failed to resolve org.jenkins-ci.plugins:git:5.0.0

Hint: This artifact may be in the jenkins repository.
Try: antlers resolve org.jenkins-ci.plugins:git:5.0.0 --preset jenkins

Auto-Suggested Presets

Group ID PatternSuggested Preset
org.jenkins-ci.*, io.jenkins.*jenkins
org.gradle.*, com.gradle.*gradle-plugins
org.springframework.* with snapshot in group idspring-snapshots
com.atlassian.*atlassian
com.github.*, io.github.*jitpack
org.clojure.*, clojureclojars
com.redhat.*, org.jboss.*redhat-ga
io.confluent.*confluent

Custom Presets

You can define your own "presets" by adding repositories to your project configuration:

# In antlers.toml
[[repositories]]
id = "mycompany"
name = "My Company Artifactory"
url = "https://artifactory.mycompany.com/maven/"

[repositories.credentials]
type = "basic"
username = { env = "ARTIFACTORY_USER" }
password = { env = "ARTIFACTORY_PASS" }

Next Steps