Skip to content

Commit

Permalink
Merge pull request #19 from PAYONE-GmbH/release/0.0.3
Browse files Browse the repository at this point in the history
Release/0.0.3
  • Loading branch information
ehrdi authored Aug 21, 2024
2 parents ce90433 + c5b9992 commit fece0dc
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 deletions.
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

0 comments on commit fece0dc

Please sign in to comment.