-
Notifications
You must be signed in to change notification settings - Fork 0
feat(sdk): setup publishing to maven central repository #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
rubenhoenle
merged 2 commits into
main
from
feat/STACKITSDK-207-publish-to-maven-central
Sep 5, 2025
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| ## Release (2025-MM-DD) | ||
| - `core`: [v0.1.0](core/CHANGELOG.md#v010) | ||
| - Initial onboarding of STACKIT Java SDK core lib | ||
| - `iaas`: [v0.1.0](services/iaas/CHANGELOG.md#v010) | ||
| - Initial onboarding of STACKIT Java SDK for IaaS service | ||
| - `resourcemanger`: [v0.1.0](services/resourcemanager/CHANGELOG.md#v010) | ||
| - Initial onboarding of STACKIT Java SDK for Resourcemanager service | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| ## v0.1.0 | ||
| - Initial onboarding of STACKIT Java SDK core lib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 0.0.1-SNAPSHOT | ||
| 0.1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| # This script creates the git tags and publishes the artifacts to Maven Central | ||
|
|
||
| # Immediate exit on failure | ||
| set -e | ||
|
|
||
| # VERSION contains only one single line which contains the version of the service | ||
| # in the following format e.g. 0.3.0 | ||
|
|
||
| # iterate over all services and core by their VERSION files | ||
| for file in $(find . -printf '%P\n' | grep -E "(^services/[^/]+/VERSION$|^core/VERSION$)"); do | ||
|
|
||
| # Extract the current version and build the expected tag | ||
| dirpath=$(dirname "$file") | ||
| version_path="$dirpath/VERSION" | ||
| gradle_subproject="${dirpath//\//:}" # replace "/" with ":" | ||
| version=$(<"$version_path") | ||
| expected_tag="$dirpath/v$version" | ||
|
|
||
| printf "\n============================================================================================\n\n" | ||
|
|
||
| # Check if the tag already exists | ||
| if git rev-parse --verify "$expected_tag" &> /dev/null; then | ||
| echo "Tag '$expected_tag' already exists. Skipping tag creation and gradle publish..." | ||
| else | ||
| # Tag doesn't exist. Create a tag and push it. | ||
| echo "Tag '$expected_tag' does not exist." | ||
| git tag -a $expected_tag -m "Release $version" | ||
| git push origin tag $expected_tag | ||
|
|
||
| ./gradlew "${gradle_subproject}:publishToMavenCentral" | ||
| fi | ||
| done | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| ## v0.1.0 | ||
| - Initial onboarding of STACKIT Java SDK for IaaS service |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 0.1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| ## v0.1.0 | ||
| - Initial onboarding of STACKIT Java SDK for Resourcemanager service |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 0.0.1-SNAPSHOT | ||
| 0.1.0 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.