Simple Java client for the Hetzner Cloud API.
Important message about this project here
This project uses Maven as build automation.
Just run mvn clean install to install it in the local Maven repository cache.
Dependency:
<dependencies>
    <dependency>
        <groupId>io.github.sinuscosinustan</groupId>
        <artifactId>hetznercloud-api</artifactId>
        <version>5.0.1</version>
    </dependency>
</dependencies>Put this in the build.gradle file of the project:
repositories {
    mavenCentral()
}
dependencies {
    implementation "io.github.sinuscosinustan:hetznercloud-api:5.0.1"
}kotlin-dsl
dependencies {
    implementation("io.github.sinuscosinustan:hetznercloud-api:5.0.1")
}- Java 17 or higher
- Maven 3.6.0 or higher
This project has unit tests, as well as integration tests.
mvn testIntegration tests require an API Token for the Hetzner Cloud. Set the API token as an environment variable called HCLOUD_TOKEN.
To obtain an API key, please see the official API documentation.
HCLOUD_TOKEN="${api_key}" mvn test -Pintegration-testsCheckstyle runs automatically during compilation:
mvn compileGenerate code coverage reports:
mvn testView the HTML report at target/site/jacoco/index.html
The JavaDocs are available here
The following dependencies were used in this project:
- jackson-databind under Apache2.0 License
- Lombok under MIT License