Skip to content

sinuscosinustan/hetznercloud-java

Repository files navigation

Hetzner Cloud API for Java

Test Action Status Build Action Status

Simple Java client for the Hetzner Cloud API.

Important message about this project here

Compile

This project uses Maven as build automation.

Just run mvn clean install to install it in the local Maven repository cache.

How to use

Maven

Dependency:

<dependencies>
    <dependency>
        <groupId>me.tomsdevsn</groupId>
        <artifactId>hetznercloud-api</artifactId>
        <version>3.2.7</version>
    </dependency>
</dependencies>
Gradle

Put this in the build.gradle file of the project:

repositories {
    mavenCentral()
}

dependencies {
    implementation "me.tomsdevsn:hetznercloud-api:3.2.7"
}
kotlin-dsl
dependencies {
    implementation("me.tomsdevsn:hetznercloud-api:3.2.7")
}

How to run tests

The tests need an API Token for the Hetzner Cloud. The API token has to be set as an environment variable called HCLOUD_TOKEN.

To obtain an API key, please see the official API documentation.

HCLOUD_TOKEN="${api_key}" mvn test

JavaDocs

The JavaDocs are available here

Dependencies

The following dependencies were used in this project: