Skip to content

Commit c2f9433

Browse files
committed
Set to version 2.1.8 with a release action
1 parent 562c933 commit c2f9433

File tree

11 files changed

+57
-20
lines changed

11 files changed

+57
-20
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish package to the Maven Central Repository
2+
on:
3+
# release:
4+
# types: [created]
5+
workflow_dispatch:
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Set up Maven Central Repository
12+
uses: actions/setup-java@v4
13+
with:
14+
java-version: '11'
15+
distribution: 'temurin'
16+
server-id: ossrh
17+
server-username: ${{ secrets.OSSRH_USERNAME }}
18+
server-password: ${{ secrets.OSSRH_TOKEN }}
19+
- id: install-secret-key
20+
name: Install gpg secret key
21+
run: |
22+
# Install gpg secret key
23+
cat <(echo -e "${{ secrets.GPG_PRIVATE_KEY }}") | gpg --batch --import
24+
25+
# Verify gpg secret key
26+
gpg --list-secret-keys --keyid-format LONG
27+
- name: Publish package
28+
run: mvn -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} --batch-mode deploy
29+
env:
30+
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
31+
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class WithEnvironmentVariables {
7979
<dependency>
8080
<groupId>uk.org.webcompere</groupId>
8181
<artifactId>system-stubs-core</artifactId>
82-
<version>2.1.7</version>
82+
<version>2.1.8</version>
8383
</dependency>
8484
```
8585

@@ -89,7 +89,7 @@ class WithEnvironmentVariables {
8989
<dependency>
9090
<groupId>uk.org.webcompere</groupId>
9191
<artifactId>system-stubs-junit4</artifactId>
92-
<version>2.1.7</version>
92+
<version>2.1.8</version>
9393
</dependency>
9494
```
9595

@@ -99,7 +99,7 @@ class WithEnvironmentVariables {
9999
<dependency>
100100
<groupId>uk.org.webcompere</groupId>
101101
<artifactId>system-stubs-jupiter</artifactId>
102-
<version>2.1.7</version>
102+
<version>2.1.8</version>
103103
</dependency>
104104
```
105105

@@ -109,7 +109,7 @@ class WithEnvironmentVariables {
109109
<dependency>
110110
<groupId>uk.org.webcompere</groupId>
111111
<artifactId>system-stubs-testng</artifactId>
112-
<version>2.1.7</version>
112+
<version>2.1.8</version>
113113
</dependency>
114114
```
115115

pom.xml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>uk.org.webcompere</groupId>
66
<artifactId>system-stubs-parent</artifactId>
7-
<version>2.1.8-SNAPSHOT</version>
7+
<version>2.1.8</version>
88
<packaging>pom</packaging>
99

1010
<name>System Stubs Parent</name>
@@ -61,13 +61,13 @@
6161
<dependency>
6262
<groupId>uk.org.webcompere</groupId>
6363
<artifactId>system-stubs-interceptor</artifactId>
64-
<version>2.1.8-SNAPSHOT</version>
64+
<version>2.1.8</version>
6565
<scope>provided</scope>
6666
</dependency>
6767
<dependency>
6868
<groupId>uk.org.webcompere</groupId>
6969
<artifactId>system-stubs-core</artifactId>
70-
<version>2.1.8-SNAPSHOT</version>
70+
<version>2.1.8</version>
7171
</dependency>
7272
<dependency>
7373
<groupId>org.apache.commons</groupId>
@@ -349,6 +349,12 @@
349349
<groupId>org.apache.maven.plugins</groupId>
350350
<artifactId>maven-gpg-plugin</artifactId>
351351
<version>${version.maven-gpg-plugin}</version>
352+
<configuration>
353+
<gpgArguments>
354+
<arg>--pinentry-mode</arg>
355+
<arg>loopback</arg>
356+
</gpgArguments>
357+
</configuration>
352358
<executions>
353359
<execution>
354360
<id>sign-artifacts</id>

system-stubs-core/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
<parent>
66
<groupId>uk.org.webcompere</groupId>
77
<artifactId>system-stubs-parent</artifactId>
8-
<version>2.1.8-SNAPSHOT</version>
8+
<version>2.1.8</version>
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111

1212
<artifactId>system-stubs-core</artifactId>
13-
<version>2.1.8-SNAPSHOT</version>
13+
<version>2.1.8</version>
1414
<packaging>jar</packaging>
1515

1616
<name>System Stubs Core</name>

system-stubs-interceptor/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
<parent>
66
<groupId>uk.org.webcompere</groupId>
77
<artifactId>system-stubs-parent</artifactId>
8-
<version>2.1.8-SNAPSHOT</version>
8+
<version>2.1.8</version>
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111

1212
<artifactId>system-stubs-interceptor</artifactId>
13-
<version>2.1.8-SNAPSHOT</version>
13+
<version>2.1.8</version>
1414
<packaging>jar</packaging>
1515

1616
<name>System Stubs Interceptor</name>

system-stubs-junit4/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ project and has been rebuilt from the ground up for this version.
99
<dependency>
1010
<groupId>uk.org.webcompere</groupId>
1111
<artifactId>system-stubs-junit4</artifactId>
12-
<version>2.1.7</version>
12+
<version>2.1.8</version>
1313
</dependency>
1414
```
1515

system-stubs-junit4/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
<parent>
66
<groupId>uk.org.webcompere</groupId>
77
<artifactId>system-stubs-parent</artifactId>
8-
<version>2.1.8-SNAPSHOT</version>
8+
<version>2.1.8</version>
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111

1212
<artifactId>system-stubs-junit4</artifactId>
13-
<version>2.1.8-SNAPSHOT</version>
13+
<version>2.1.8</version>
1414
<packaging>jar</packaging>
1515

1616
<name>System Stubs JUnit4</name>

system-stubs-jupiter/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ JUnit 5 unit test.
77
<dependency>
88
<groupId>uk.org.webcompere</groupId>
99
<artifactId>system-stubs-jupiter</artifactId>
10-
<version>2.1.7</version>
10+
<version>2.1.8</version>
1111
</dependency>
1212
```
1313

system-stubs-jupiter/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
<parent>
66
<groupId>uk.org.webcompere</groupId>
77
<artifactId>system-stubs-parent</artifactId>
8-
<version>2.1.8-SNAPSHOT</version>
8+
<version>2.1.8</version>
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111

1212
<artifactId>system-stubs-jupiter</artifactId>
13-
<version>2.1.8-SNAPSHOT</version>
13+
<version>2.1.8</version>
1414
<packaging>jar</packaging>
1515

1616
<name>System Stubs Jupiter</name>

system-stubs-testng/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Provides some automatic instantiation of System Stubs objects during the test li
66
<dependency>
77
<groupId>uk.org.webcompere</groupId>
88
<artifactId>system-stubs-testng</artifactId>
9-
<version>2.1.7</version>
9+
<version>2.1.8</version>
1010
</dependency>
1111
```
1212

0 commit comments

Comments
 (0)