templates
Directory actions
More options
Directory actions
More options
templates
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
# STACKIT Java SDK for {{appName}}
This package is part of the STACKIT Java SDK. For additional information, please visit the [GitHub repository](https://{{gitHost}}/{{{gitUserId}}}/{{{gitRepoId}}}) of the SDK.
## Installation from Maven Central (recommended)
The release artifacts for this SDK submodule are available on [Maven Central](https://central.sonatype.com/artifact/{{groupId}}/{{artifactId}}).
### Maven users
Add this dependency to your project's POM:
```xml
<dependency>
<groupId>{{{groupId}}}</groupId>
<artifactId>{{{artifactId}}}</artifactId>
<version><SDK_VERSION></version>
<scope>compile</scope>
</dependency>
```
### Gradle users
Add this dependency to your project's build file:
```groovy
repositories {
mavenCentral()
}
dependencies {
implementation "{{{groupId}}}:{{{artifactId}}}:<SDK_VERSION>"
}
```
## Installation from local build
Building the API client library requires:
1. Java SDK (version 11 to 21 should be supported) installed on your system
To install the API client library to your local Maven repository, simply execute:
```shell
./gradlew services:{{artifactId}}:publishToMavenLocal
```
### Maven users
Add this dependency to your project's POM:
```xml
<dependency>
<groupId>{{{groupId}}}</groupId>
<artifactId>{{{artifactId}}}</artifactId>
<version><SDK_VERSION></version>
<scope>compile</scope>
</dependency>
```
### Gradle users
Add this dependency to your project's build file:
```groovy
repositories {
mavenLocal()
}
dependencies {
implementation "{{{groupId}}}:{{{artifactId}}}:<SDK_VERSION>"
}
```
## Getting Started
See the [{{artifactId}} examples]({{scmUrl}}/tree/main/examples/{{artifactId}}/src/main/java/cloud/stackit/sdk/{{artifactId}}/examples).
## Recommendation
It's recommended to create an instance of `ApiClient` per thread in a multithreaded environment to avoid any potential issues.