Skip to content

Commit 66687db

Browse files
Release 8.7.0
1 parent a2b7532 commit 66687db

File tree

103 files changed

+2032
-3060
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+2032
-3060
lines changed

.github/workflows/maven-publish.yml

Lines changed: 39 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,69 @@
11
# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
22
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path
33

4-
name: Maven Package
4+
name: Release to Maven Central
55
on:
66
release:
77
types: [published]
88

9+
permissions:
10+
contents: read
11+
packages: write
12+
913
jobs:
1014
build:
1115
runs-on: ubuntu-latest
12-
permissions:
13-
contents: read
14-
packages: write
1516

1617
steps:
17-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
19+
1820
- uses: actions/setup-java@v3
1921
with:
2022
distribution: 'temurin' # See 'Supported distributions' for available options
2123
java-version: '8'
22-
server-id: 'ossrh'
24+
server-id: 'central'
2325
server-username: OSSRH_USERNAME
2426
server-password: OSSRH_PASSWORD
2527
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
2628
gpg-passphrase : SIGN_KEY_PASS
29+
30+
# Install Maven 3.9.9 if it's not already installed
31+
- name: Install Maven (specific version 3.9.9)
32+
run: |
33+
# Check if Maven is already installed
34+
if ! mvn -version &>/dev/null; then
35+
echo "Maven not found. Installing Maven 3.9.9..."
2736
37+
# Update package list and install required dependencies
38+
sudo apt-get update
39+
sudo apt-get install -y wget
40+
41+
# Download Maven 3.9.9 tar.gz
42+
wget https://dlcdn.apache.org/maven/maven-3/3.9.9/binaries/apache-maven-3.9.9-bin.tar.gz
43+
44+
# Extract and move Maven to /opt
45+
sudo tar -xvzf apache-maven-3.9.9-bin.tar.gz -C /opt
46+
47+
# Set up environment variables for Maven
48+
sudo ln -s /opt/apache-maven-3.9.9 /opt/maven
49+
sudo ln -s /opt/maven/bin/mvn /usr/bin/mvn
50+
51+
# Clean up the downloaded tar.gz file
52+
rm apache-maven-3.9.9-bin.tar.gz
53+
54+
echo "Maven 3.9.9 installed successfully!"
55+
else
56+
echo "Maven is already installed."
57+
fi
58+
2859
- name: Build with Maven
2960
id: build
3061
run: mvn -B package --file pom.xml
3162

32-
- name: Publish with Maven
63+
- name: Publish to Maven Central
3364
id: deploy
34-
run: mvn -U -B clean deploy -P release -DskipTests=true
3565
env:
3666
SIGN_KEY_PASS: ${{ secrets.SIGN_KEY_PASS }}
3767
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
3868
OSSRH_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
69+
run: mvn -U -B clean deploy -P release -DskipTests=true

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2024 wallee AG
189+
Copyright 2025 wallee AG
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Add this dependency to your project's POM:
2121
<dependency>
2222
<groupId>ch.postfinance</groupId>
2323
<artifactId>postfinancecheckout-java-sdk</artifactId>
24-
<version>8.2.1</version>
24+
<version>8.7.0</version>
2525
<scope>compile</scope>
2626
</dependency>
2727
```
@@ -31,7 +31,7 @@ Add this dependency to your project's POM:
3131
Add this dependency to your project's build file:
3232

3333
```groovy
34-
compile "ch.postfinance:postfinancecheckout-java-sdk:8.2.1"
34+
compile "ch.postfinance:postfinancecheckout-java-sdk:8.7.0"
3535
```
3636

3737
### Others
@@ -44,7 +44,7 @@ mvn clean package
4444

4545
Then manually install the following JARs:
4646

47-
* `target/postfinancecheckout-java-sdk-8.2.1.jar`
47+
* `target/postfinancecheckout-java-sdk-8.7.0.jar`
4848
* `target/lib/*.jar`
4949

5050
## Usage

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'idea'
22
apply plugin: 'eclipse'
33

44
group = 'ch.postfinance'
5-
version = '8.2.1'
5+
version = '8.7.0'
66

77
buildscript {
88
repositories {

0 commit comments

Comments
 (0)