https://github.com/http4k/lts-examples
Examples of how to configure the http4k LTS edition
https://github.com/http4k/lts-examples
Last synced: about 1 month ago
JSON representation
Examples of how to configure the http4k LTS edition
- Host: GitHub
- URL: https://github.com/http4k/lts-examples
- Owner: http4k
- License: apache-2.0
- Created: 2024-10-26T12:36:44.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2026-01-01T20:09:57.000Z (3 months ago)
- Last Synced: 2026-01-07T04:47:53.544Z (3 months ago)
- Language: Kotlin
- Size: 71.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# http4k LTS examples
This repo contains instructions for customers of the http4k LTS programme.
## Accessing the LTS
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 ltsMavenUser: String by project
val ltsMavenPassword: String by project
repositories {
maven {
credentials {
username = ltsMavenUser
password = ltsMavenPassword
}
url = URI("https://maven.http4k.org")
}
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 `ltsMavenUser` and `ltsMavenPassword`:
```shell
./gradlew -PltsMavenUser=lts_username -PltsMavenPassword=secret_password check
```