diff --git a/README.md b/README.md index 95f57ab..188bb2d 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,25 @@ This repo contains instructions for customers of the http4k LTS programme. The LTS version of the http4k libraries are hosted in a private Maven repository, at [https://maven.http4k.org]. Access to these artifacts requires credentials that will be issued with your LTS subscription. +Configuring Gradle to use the private Maven repo can be done by using a custom repository: + +```kotlin +val ltsUser: String by project +val ltsPassword: String by project + +repositories { + maven { + credentials { + username = ltsUser + password = ltsPassword + } + url = URI("https://maven.http4k.org/maven2") + } + + mavenCentral() +} +``` + To set up access in your Gradle build, you will need to pass the credentials in some fashion. The easiest way to do this is to put them in your `gradle.properties` or to pass them on the command line. The properties are `ltsUser` and `ltsPassword`: ```shell