From f9e3968dff29725a7197a317214385e86e07a1db Mon Sep 17 00:00:00 2001 From: Blackfaded Date: Thu, 22 Aug 2024 12:22:29 +0200 Subject: [PATCH 1/8] chore: add tag push --- prepare-release.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/prepare-release.sh b/prepare-release.sh index 86ae971..401cb12 100755 --- a/prepare-release.sh +++ b/prepare-release.sh @@ -51,5 +51,6 @@ 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 +git push --tags echo "Version updated to $VERSION and tagged in Git." From bea2f8494f9c59261b1c9474e539e63ec30de451 Mon Sep 17 00:00:00 2001 From: Blackfaded Date: Thu, 22 Aug 2024 12:22:56 +0200 Subject: [PATCH 2/8] Update version to 1.0.0 --- README.md | 2 +- lib/build.gradle | 2 +- .../com/payone/commerce/platform/lib/utils/ServerMetaInfo.java | 2 +- package.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 38a7e0d..1c59af8 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,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.3' + implementation group: 'io.github.payone-gmbh', name: 'pcp-serversdk-java', version: '1.0.0' } ``` diff --git a/lib/build.gradle b/lib/build.gradle index c53821b..afdb9d8 100644 --- a/lib/build.gradle +++ b/lib/build.gradle @@ -23,7 +23,7 @@ if (JavaVersion.current().majorVersion != '8') { apply plugin: 'org.sonarqube' } -version = '0.0.3' +version = '1.0.0' repositories { mavenCentral() diff --git a/lib/src/main/java/com/payone/commerce/platform/lib/utils/ServerMetaInfo.java b/lib/src/main/java/com/payone/commerce/platform/lib/utils/ServerMetaInfo.java index e07c503..a6cc3f2 100644 --- a/lib/src/main/java/com/payone/commerce/platform/lib/utils/ServerMetaInfo.java +++ b/lib/src/main/java/com/payone/commerce/platform/lib/utils/ServerMetaInfo.java @@ -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.3") + .sdkIdentifier("JavaServerSDK/v1.0.0") .sdkCreator("PAYONE GmbH") .integrator(integrator); } diff --git a/package.json b/package.json index a6000ac..37cf0ac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pcp-serversdk-java", - "version": "0.0.3", + "version": "1.0.0", "type": "commonjs", "scripts": { "changelog": "conventional-changelog -i CHANGELOG.md -s -r 0 --config ./changelog.config.js" From 4df6df3123cb8eea3e79d7f52712335d3a7db2d5 Mon Sep 17 00:00:00 2001 From: Blackfaded Date: Thu, 22 Aug 2024 12:23:45 +0200 Subject: [PATCH 3/8] chore: change git push --- prepare-release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prepare-release.sh b/prepare-release.sh index 401cb12..0c79c2b 100755 --- a/prepare-release.sh +++ b/prepare-release.sh @@ -51,6 +51,6 @@ 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 -git push --tags +git push origin release/$VERSION echo "Version updated to $VERSION and tagged in Git." From 02364d5b907f712c0d9714286168bfcba723f76f Mon Sep 17 00:00:00 2001 From: Blackfaded Date: Thu, 22 Aug 2024 12:26:13 +0200 Subject: [PATCH 4/8] docs: add changelog --- CHANGELOG.md | 8 +++++++- package-lock.json | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c9ecfb..6f22388 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,10 @@ -## [0.0.1](https://github.com/PAYONE-GmbH/PCP-ServerSDK-java/compare/v0.0.2...v0.0.1) (2024-08-21) +# [1.0.0](https://github.com/PAYONE-GmbH/PCP-ServerSDK-java/compare/v0.0.3...v1.0.0) (2024-08-22) + +### Documentation + +* docs: add contributing guidelines and update readme ([c9c7210c6b7655761851ff5564c09ad10c6a0b4a](https://github.com/PAYONE-GmbH/PCP-ServerSDK-java/commit/c9c7210c6b7655761851ff5564c09ad10c6a0b4a)) + +## [0.0.3](https://github.com/PAYONE-GmbH/PCP-ServerSDK-java/compare/v0.0.2...v0.0.3) (2024-08-21) ### Bug Fixes diff --git a/package-lock.json b/package-lock.json index 400a82b..c3e6e14 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "pcp-serversdk-java", - "version": "0.0.3", + "version": "1.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "pcp-serversdk-java", - "version": "0.0.3", + "version": "1.0.0", "devDependencies": { "@commitlint/cli": "19.4.0", "@commitlint/config-conventional": "19.2.2", From 8bde7fdd734b88e1e9cbee2b1460ca5a8d855739 Mon Sep 17 00:00:00 2001 From: Blackfaded Date: Thu, 22 Aug 2024 12:27:47 +0200 Subject: [PATCH 5/8] chore: add changelog to version script --- prepare-release.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/prepare-release.sh b/prepare-release.sh index 0c79c2b..05efc00 100755 --- a/prepare-release.sh +++ b/prepare-release.sh @@ -50,6 +50,9 @@ 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" +npm run changelog +git add CHANGELOG.md +git commit -m "Update changelog for version $VERSION" git push origin $TAG git push origin release/$VERSION From 4f47616f872de27285f4d0765d29392ee6c04da1 Mon Sep 17 00:00:00 2001 From: Blackfaded Date: Thu, 22 Aug 2024 12:32:01 +0200 Subject: [PATCH 6/8] chore: update release script --- prepare-release.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/prepare-release.sh b/prepare-release.sh index 05efc00..c148c36 100755 --- a/prepare-release.sh +++ b/prepare-release.sh @@ -48,12 +48,12 @@ 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" +npm install npm run changelog git add CHANGELOG.md -git commit -m "Update changelog for version $VERSION" -git push origin $TAG -git push origin release/$VERSION +git commit -m "Update version to $VERSION" +git push --tags +git push origin HEAD echo "Version updated to $VERSION and tagged in Git." From 0fd5f935d6e505645ad475fdf26505102102e84f Mon Sep 17 00:00:00 2001 From: Blackfaded Date: Thu, 22 Aug 2024 12:35:02 +0200 Subject: [PATCH 7/8] chore: update script --- prepare-release.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/prepare-release.sh b/prepare-release.sh index c148c36..363074c 100755 --- a/prepare-release.sh +++ b/prepare-release.sh @@ -42,6 +42,7 @@ jq --arg version "$VERSION" ' .version = $version | .packages[""].version = $version ' package-lock.json >tmp.json && mv tmp.json package-lock.json +rm -f tmp.json git add $BUILD_GRADLE_PATH git add $SERVER_META_INFO_PATH From a8bcc4e05504567a32049f26fa4c834a829149f1 Mon Sep 17 00:00:00 2001 From: Blackfaded Date: Thu, 22 Aug 2024 14:27:11 +0200 Subject: [PATCH 8/8] chore: update script --- package.json | 2 +- prepare-release.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 37cf0ac..cef06b2 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "1.0.0", "type": "commonjs", "scripts": { - "changelog": "conventional-changelog -i CHANGELOG.md -s -r 0 --config ./changelog.config.js" + "changelog": "conventional-changelog -i CHANGELOG.md -s --config ./changelog.config.js" }, "repository": { "type": "git", diff --git a/prepare-release.sh b/prepare-release.sh index 363074c..e5d7f46 100755 --- a/prepare-release.sh +++ b/prepare-release.sh @@ -49,12 +49,12 @@ git add $SERVER_META_INFO_PATH git add $README_PATH git add $PACKAGE_JSON_PATH git add $PACKAGE_LOCK_JSON_PATH -git tag -a $TAG -m "Release version $VERSION" npm install npm run changelog git add CHANGELOG.md +git tag -a v$NEW_VERSION -m "Version $NEW_VERSION" git commit -m "Update version to $VERSION" -git push --tags +git push origin tag v$NEW_VERSION git push origin HEAD echo "Version updated to $VERSION and tagged in Git."