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/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-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", diff --git a/package.json b/package.json index a6000ac..cef06b2 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,9 @@ { "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" + "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 86ae971..e5d7f46 100755 --- a/prepare-release.sh +++ b/prepare-release.sh @@ -42,14 +42,19 @@ 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 git add $README_PATH git add $PACKAGE_JSON_PATH git add $PACKAGE_LOCK_JSON_PATH +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 tag -a $TAG -m "Release version $VERSION" -git push origin $TAG +git push origin tag v$NEW_VERSION +git push origin HEAD echo "Version updated to $VERSION and tagged in Git."