Reference: Enterprise Maven
All http4k Enterprise Edition artifacts are available through maven.http4k.org. This includes community (org.http4k) and pro (org.http4k.pro) modules, each published with cryptographically signed provenance, CycloneDX SBOMs, and license compliance reports.
Access credentials are included with your http4k Enterprise Edition subscription.
Gradle Configuration#
Kotlin
gradle-repository.kts
repositories {
maven {
url = uri("https://maven.http4k.org")
credentials {
username = project.findProperty("http4kMavenUser") as String
password = project.findProperty("http4kMavenPassword") as String
}
}
}
Add your credentials to ~/.gradle/gradle.properties:
Shell
gradle-credentials.properties
http4kMavenUser=<your-username>
http4kMavenPassword=<your-password>
Maven Configuration#
Add the repository to your pom.xml:
XML
pom-repository.xml
<repositories>
<repository>
<id>http4k</id>
<url>https://maven.http4k.org</url>
</repository>
</repositories>
And credentials to ~/.m2/settings.xml:
XML
settings-credentials.xml
<servers>
<server>
<id>http4k</id>
<username>your-username</username>
<password>your-password</password>
</server>
</servers>
Artifactory Configuration#
If your organisation uses Artifactory as a repository manager, add maven.http4k.org as a remote repository:
- Navigate to Administration > Repositories > Remote
- Click New Remote Repository and select Maven
- Set the URL to
https://maven.http4k.org - Under Advanced, configure Username and Password with your http4k credentials
- Save and add the remote repository to your virtual repository resolution order
Nexus Configuration#
For Sonatype Nexus, add a proxy repository:
- Navigate to Repository > Repositories > Create repository
- Select maven2 (proxy)
- Set the Remote storage URL to
https://maven.http4k.org - Under HTTP > Authentication, enter your http4k credentials
- Add the proxy repository to your maven-public group
