Java, Maven and Gradle
Set up Gradle
Use the ForgeRepo™ repository in build.gradle.
Replace mavenCentral() with the ForgeRepo™ repository, and read the token from the environment:
build.gradle
repositories {
maven {
url "https://packages.example.com/maven/"
credentials {
username = "your-user-name"
password = System.getenv("REPO_TOKEN")
}
}
}
Put the same block under pluginManagement in settings.gradle so plugins come through packages.example.com too.