GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - sinuscosinustan/hetznercloud-java: Java Library for the Hetzner Cloud API - NOW ON CODEBERG

BranchesTags
Open more actions menu

Latest commit

 

History

432 Commits
432 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
.gitignore
.gitignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
checkstyle.xml
checkstyle.xml
 
 
pom.xml
pom.xml
 
 
renovate.json
renovate.json
 
 

Repository files navigation

Hetzner Cloud API for Java

THE CODE NOW LIVES ON CODEBERG!

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>io.github.sinuscosinustan</groupId>
        <artifactId>hetznercloud-api</artifactId>
        <version>5.0.2</version>
    </dependency>
</dependencies>
Gradle

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

repositories {
    mavenCentral()
}

dependencies {
    implementation "io.github.sinuscosinustan:hetznercloud-api:5.0.2"
}
kotlin-dsl
dependencies {
    implementation("io.github.sinuscosinustan:hetznercloud-api:5.0.2")
}

Requirements

  • Java 17 or higher
  • Maven 3.6.0 or higher

How to run tests

This project has unit tests, as well as integration tests.

Unit Tests (Default)

mvn test

Integration Tests

Integration 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-tests

Code Quality

Checkstyle

Checkstyle runs automatically during compilation:

mvn compile

Code Coverage (JaCoCo)

Generate code coverage reports:

mvn test

View the HTML report at target/site/jacoco/index.html

JavaDocs

The JavaDocs are available here

Dependencies

The following dependencies were used in this project:

  • jackson-databind under Apache2.0 License
  • Lombok under MIT License

About

Java Library for the Hetzner Cloud API - NOW ON CODEBERG

codeberg.org/sinuscosinustan/hetznercloud-java

Topics

automationhcloudhetznerhetzner-cloudjava

Resources

Readme
MIT license
Activity

Stars

58 stars

Watchers

2 watching

Forks

17 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.