Skip to content

Commit 800779c

Browse files
authored
Bump jersey@2.47, gson@2.13.1 - release 1.6.3 prep (#340)
1 parent 98e01c3 commit 800779c

File tree

4 files changed

+74
-12
lines changed

4 files changed

+74
-12
lines changed

.github/workflows/master.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3131

3232
build-test:
33-
name: Build & Test - JDK ${{ matrix.Java }} on ${{ matrix.os }}
33+
name: Build & Test - JDK ${{ matrix.java }} on ${{ matrix.os }}
3434
strategy:
3535
fail-fast: false
3636
matrix:
@@ -55,8 +55,8 @@ jobs:
5555
uses: actions/cache@v4
5656
with:
5757
path: ~/.m2/repository
58-
key: ${{ runner.os }}-m2
59-
restore-keys: ${{ runner.os }}-m2
58+
key: ${{ runner.os }}-m2-${{ matrix.java }}
59+
restore-keys: ${{ runner.os }}-m2-
6060

6161
- name: Build/Test
62-
run: mvn -B clean package ${{ matrix.jdk }}
62+
run: mvn -B clean package

.github/workflows/release.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Release CI
2+
3+
on:
4+
release:
5+
types: [ created ]
6+
7+
jobs:
8+
build-test:
9+
name: Build & Test - JDK ${{ matrix.java }} on ${{ matrix.os }}
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
java: [ '8', '11', '17', '18', '21']
14+
os: [ ubuntu-latest, windows-latest ]
15+
runs-on: ${{ matrix.os }}
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Setup Java
21+
uses: actions/setup-java@v4
22+
with:
23+
distribution: 'temurin'
24+
java-version: ${{ matrix.java }}
25+
26+
- name: Show Versions
27+
run: mvn -version
28+
29+
- name: Cache Maven packages
30+
uses: actions/cache@v4
31+
with:
32+
path: ~/.m2/repository
33+
key: ${{ runner.os }}-m2-${{ matrix.java }}
34+
restore-keys: ${{ runner.os }}-m2-
35+
36+
- name: Build/Test
37+
run: mvn -B clean package
38+
39+
publish:
40+
name: Publish Release
41+
needs: [ build-test ]
42+
runs-on: ubuntu-latest
43+
44+
steps:
45+
- uses: actions/checkout@v4
46+
- name: Set up Apache Maven Central
47+
uses: actions/setup-java@v4
48+
with:
49+
distribution: 'temurin'
50+
java-version: '11'
51+
server-id: ossrh
52+
server-username: OSSRH_USERNAME
53+
server-password: OSSRH_TOKEN
54+
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
55+
gpg-passphrase: MAVEN_GPG_PASSPHRASE
56+
57+
- name: Publish to Apache Maven Central
58+
run: mvn deploy -DskipTests -Psign
59+
env:
60+
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
61+
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
62+
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}

.github/workflows/staging.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ jobs:
3838
uses: actions/cache@v4
3939
with:
4040
path: ~/.m2/repository
41-
key: ${{ runner.os }}-m2
42-
restore-keys: ${{ runner.os }}-m2
41+
key: ${{ runner.os }}-m2-${{ matrix.java }}
42+
restore-keys: ${{ runner.os }}-m2-
4343

4444
- name: Build/Test
4545
run: mvn -B clean package

pom.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<groupId>com.github.switcherapi</groupId>
99
<artifactId>switcher-client</artifactId>
1010
<packaging>jar</packaging>
11-
<version>1.6.3-SNAPSHOT</version>
11+
<version>1.6.3</version>
1212

1313
<name>Switcher Client</name>
1414
<description>Switcher Client SDK for working with Switcher API</description>
@@ -52,10 +52,10 @@
5252
<argLine />
5353

5454
<!-- rest/json libs -->
55-
<jersey-client.version>2.46</jersey-client.version>
56-
<jersey-hk2.version>2.46</jersey-hk2.version>
57-
<jersey-media-json-jackson.version>2.46</jersey-media-json-jackson.version>
58-
<gson.version>2.12.1</gson.version>
55+
<jersey-client.version>2.47</jersey-client.version>
56+
<jersey-hk2.version>2.47</jersey-hk2.version>
57+
<jersey-media-json-jackson.version>2.47</jersey-media-json-jackson.version>
58+
<gson.version>2.13.1</gson.version>
5959

6060
<!-- utils -->
6161
<commons-lang3.version>3.17.0</commons-lang3.version>
@@ -75,7 +75,7 @@
7575
<maven-surefire-plugin.version>3.5.2</maven-surefire-plugin.version>
7676
<maven-gpg-plugin.version>3.2.7</maven-gpg-plugin.version>
7777
<sonar-maven-plugin.version>3.11.0.3922</sonar-maven-plugin.version>
78-
<jacoco-maven-plugin.version>0.8.12</jacoco-maven-plugin.version>
78+
<jacoco-maven-plugin.version>0.8.13</jacoco-maven-plugin.version>
7979

8080
<!-- Sonar -->
8181
<sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>

0 commit comments

Comments
 (0)