Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 63 additions & 0 deletions CONTRIBUTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Contribute to the STACKIT Java SDK

Your contribution is welcome! Thank you for your interest in contributing to the STACKIT Java SDK.
We greatly value your feedback, feature requests, additions to the code, bug reports or documentation extensions.

## Table of contents

- [Developer Guide](#developer-guide)
- [Repository structure](#repository-structure)
- [Code Contributions](#code-contributions)
- [Bug Reports](#bug-reports)

## Developer Guide

Building the STACKIT Java SDK requires:
1. Java SDK (version 11 to 21 should be supported) installed on your system

In case you want to open the project in your preferred IDE, run `./gradlew idea` or `./gradlew eclipse` beforehand.

#### Useful Make commands

These commands can be executed from the project root:

- `make fmt` or `./gradlew spotlessApply`: apply code format.
- `make test` or `./gradlew test`: run unit tests.

#### Installation

To install the API client library to your local Maven repository, simply execute:

```bash
./gradlew publishToMavenLocal
```

### Repository structure

The STACKIT Java SDK service submodules are located under `services`.
The files located in `services/[service]` are automatically generated from the [REST API specs](https://github.com/stackitcloud/stackit-api-specifications), whereas the ones located in subfolders (like `wait`) are manually maintained. Therefore, changes to files located in `services/[service]` will not be accepted. Instead, consider proposing changes to the generation process in the [Generator repository](https://github.com/stackitcloud/stackit-sdk-generator).

Inside the `core` submodule you can find several classes that are used by all service modules. Examples of usage of the SDK are located in the `examples` directory.

## Code Contributions

To make your contribution, follow these steps:

1. Check open or recently closed [Pull Requests](https://github.com/stackitcloud/stackit-sdk-java/pulls) and [Issues](https://github.com/stackitcloud/stackit-sdk-java/issues) to make sure the contribution you are making has not been already tackled by someone else.
2. Fork the repo.
3. Make your changes in a branch that is up-to-date with the original repo's `main` branch.
4. Commit your changes including a descriptive message.
5. Create a pull request with your changes.
6. The pull request will be reviewed by the repo maintainers. If you need to make further changes, make additional commits to keep commit history. When the PR is merged, commits will be squashed.

## Bug Reports

If you would like to report a bug, please open a [GitHub issue](https://github.com/stackitcloud/stackit-sdk-java/issues/new).

To ensure we can provide the best support to your issue, follow these guidelines:

1. Go through the existing issues to check if your issue has already been reported.
2. Make sure you are using the latest version of the SDK modules, we will not provide bug fixes for older versions. Also, latest versions may have the fix for your bug.
3. Please provide as much information as you can about your environment, e.g. your version of Java, your version of the SDK modules, which operating system you are using and the corresponding version.
4. Include in your issue the steps to reproduce it, along with code snippets and/or information about your specific use case. This will make the support process much easier and efficient.

57 changes: 47 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,65 @@
# STACKIT SDK for Java (BETA)

[![GitHub License](https://img.shields.io/github/license/stackitcloud/stackit-sdk-java)](https://www.apache.org/licenses/LICENSE-2.0)
[![CI/CD](https://github.com/stackitcloud/stackit-sdk-java/actions/workflows/ci.yaml/badge.svg?branch=main)](https://github.com/stackitcloud/stackit-sdk-java/actions/workflows/ci.yaml)

This repository contains the STACKIT SDKs for Java.

## Reporting issues
## Getting started

If you encounter any issues or have suggestions for improvements, please open an issue in the repository or create a ticket in the [STACKIT Help Center](https://support.stackit.cloud/).
Requires Java 8 or higher.

## Development
The release artifacts of the STACKIT Java SDK are available on [Maven Central](https://central.sonatype.com/namespace/cloud.stackit.sdk).
See below how to use them in your Java project.

Building the STACKIT Java SDK requires:
1. Java SDK (version 11 to 21 should be supported) installed on your system
### Maven

In case you want to open the project in your preferred IDE, run `./gradlew idea` or `./gradlew eclipse` beforehand.
Add the dependencies for the services you want to interact with to your project's POM, e.g. `iaas` and `resourcemanager` (replace `<SDK_VERSION>` with the latest version of each SDK submdoule):

```xml
<dependency>
<groupId>cloud.stackit.sdk</groupId>
<artifactId>iaas</artifactId>
<version><SDK_VERSION></version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>cloud.stackit.sdk</groupId>
<artifactId>resourcemanager</artifactId>
<version><SDK_VERSION></version>
<scope>compile</scope>
</dependency>
```

## Installation
### Gradle

To install the API client library to your local Maven repository, simply execute:
Add the dependencies to your project's build file (replace `<SDK_VERSION>` with the latest version of each SDK submdoule):

```bash
./gradlew publishToMavenLocal
```groovy
repositories {
mavenCentral()
}

dependencies {
// add the dependencies of the services you want to interact with here,
// e.g. "iaas" and "resourcemanager"
implementation "cloud.stackit.sdk:iaas:<SDK_VERSION>"
implementation "cloud.stackit.sdk:resourcemanger:<SDK_VERSION>"
}
```

## Examples

Examples on services, configuration and authentication possibilities can be found in the [examples folder](https://github.com/stackitcloud/stackit-sdk-java/tree/main/examples).

## Reporting issues

If you encounter any issues or have suggestions for improvements, please open an issue in the repository or create a ticket in the [STACKIT Help Center](https://support.stackit.cloud/).

## Contribute

Your contribution is welcome! For more details on how to contribute, refer to our [Contribution Guide](./CONTRIBUTION.md).

## Release creation

See the [release documentation](./RELEASE.md) for further information.
Expand Down