pellepelster / hetznercloud-java

Java Library to manage the Hetzner-Cloud

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.2</version>
    </dependency>
</dependencies>
Gradle

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

repositories {
    mavenCentral()
}

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

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:

About

Java Library to manage the Hetzner-Cloud

License:MIT License


Languages

Language:Java 100.0%