Skip to content
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

Release/0.0.3 #20

Merged
merged 5 commits into from
Aug 21, 2024
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
3 changes: 0 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Publish package to maven central

on:
push:
branches:
- main
workflow_dispatch:

jobs:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Welcome to the Java SDK for the PAYONE Commerce Platform! This repository contai

```groovy
dependencies {
implementation group: 'io.github.payone-gmbh', name: 'pcp-serversdk-java', version: '0.0.2'
implementation group: 'io.github.payone-gmbh', name: 'pcp-serversdk-java', version: '0.0.3'
}
```

Expand Down Expand Up @@ -236,7 +236,7 @@ git checkout -b release/0.1.0
- Run prepare-release.sh script to set correct version

```sh
./prepare-release.sh
./prepare-release.sh 0.1.0
```

#### Changelog Generation with Conventional Changelog
Expand Down
2 changes: 1 addition & 1 deletion lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if (JavaVersion.current().majorVersion != '8') {
apply plugin: 'org.sonarqube'
}

version = '0.0.2'
version = '0.0.3'

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public static ServerMetaInfo withDefaults(String integrator) {
return new ServerMetaInfo()
.platformIdentifier(String.format("%s, java version is: %s", System.getProperty("os.name"),
System.getProperty("java.version")))
.sdkIdentifier("JavaServerSDK/v0.0.2")
.sdkIdentifier("JavaServerSDK/v0.0.3")
.sdkCreator("PAYONE GmbH")
.integrator(integrator);
}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pcp-serversdk-java",
"version": "0.0.1",
"version": "0.0.3",
"type": "commonjs",
"scripts": {
"changelog": "conventional-changelog -i CHANGELOG.md -s -r 0 --config ./changelog.config.js"
Expand Down
4 changes: 4 additions & 0 deletions prepare-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ TAG=v$VERSION
BUILD_GRADLE_PATH="./lib/build.gradle"
SERVER_META_INFO_PATH="./lib/src/main/java/com/payone/commerce/platform/lib/utils/ServerMetaInfo.java"
README_PATH="./README.md"
PACKAGE_JSON_PATH="./package.json"
PACKAGE_LOCK_JSON_PATH="./package-lock.json"

# Update the version in the build.gradle file
sed -i '' "s/version = '[0-9]*\.[0-9]*\.[0-9]*'/version = '$VERSION'/" $BUILD_GRADLE_PATH
Expand All @@ -44,6 +46,8 @@ jq --arg version "$VERSION" '
git add $BUILD_GRADLE_PATH
git add $SERVER_META_INFO_PATH
git add $README_PATH
git add $PACKAGE_JSON_PATH
git add $PACKAGE_LOCK_JSON_PATH
git commit -m "Update version to $VERSION"
git tag -a $TAG -m "Release version $VERSION"
git push origin $TAG
Expand Down